var CubeEntity = include('entities/CubeEntity.js'); function TestChunk001(x, y, z) { MapChunk.call(this, x, y, z); this.cube = new CubeEntity(); this.cube.position.position = new Vec3(0, 0, 16); } TestChunk001.prototype = Object.create(MapChunk.prototype); TestChunk001.prototype.constructor = TestChunk001; TestChunk001.prototype.dispose = function() { this.cube.dispose(); }; module = TestChunk001;