var Class = require('../utils/Class'); var GameObject = new Class({ initialize: function GameObject(state){ this.state = state; this.id = 0; this.name = ''; this.parent; this.renderMask = 15; this.renderFlags = 15; } , preUpdate: function (){ } , destroy: function (){ this.parent.remove(this); this.state = undefined; } } ); module.exports = GameObject;