2021-06-18 02:10:32 +02:00
|
|
|
const Event = require('./r3-event');
|
|
|
|
|
2021-06-18 13:54:08 +02:00
|
|
|
class R3Object extends Event {
|
2020-04-21 11:54:13 +02:00
|
|
|
|
2021-06-19 11:27:32 +02:00
|
|
|
constructor(options) {
|
2021-06-18 02:10:32 +02:00
|
|
|
|
2021-06-19 11:27:32 +02:00
|
|
|
super(options);
|
2021-06-18 02:10:32 +02:00
|
|
|
|
2020-04-21 11:54:13 +02:00
|
|
|
console.log('Object created');
|
2021-06-18 02:10:32 +02:00
|
|
|
|
|
|
|
this.emit(Event.OBJECT_CREATED);
|
|
|
|
|
2020-04-21 11:54:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-06-18 13:54:08 +02:00
|
|
|
module.exports = R3Object;
|