17 lines
203 B
JavaScript
17 lines
203 B
JavaScript
|
const Event = require('./r3-event');
|
||
|
|
||
|
class R3Object extends Event {
|
||
|
|
||
|
constructor() {
|
||
|
|
||
|
super();
|
||
|
|
||
|
console.log('Object created');
|
||
|
|
||
|
this.emit(Event.OBJECT_CREATED);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = R3Object;
|