migrate from perforce
This commit is contained in:
18
dist/GameData/GdRoot.js
vendored
Normal file
18
dist/GameData/GdRoot.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { GdEnemy, GdImage, GdLevel, GdSimulation, GdTower } from "./index.js";
|
||||
export class GdRoot {
|
||||
images = {};
|
||||
enemies = [];
|
||||
towers = [];
|
||||
levels = [];
|
||||
simulation = new GdSimulation();
|
||||
async loadAsync() {
|
||||
GdEnemy.addEnemies(this);
|
||||
GdLevel.addLevels(this);
|
||||
GdTower.addTowers(this);
|
||||
await GdImage.addImagesAsync(this);
|
||||
}
|
||||
image(name) {
|
||||
return this.images[name];
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=GdRoot.js.map
|
||||
Reference in New Issue
Block a user