2017-11-09 10:13:49 +01:00
|
|
|
if (this.parentEntity === data.entity) {
|
|
|
|
console.log('my entity loaded :)');
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.enemies = [];
|
|
|
|
|
|
|
|
var particle = GameLib.EntityManager.Instance.findComponentById('ks1yk4yi1n');
|
|
|
|
particle.instance.visible = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Min and max spawn time is in seconds
|
|
|
|
*/
|
|
|
|
GameLib.D3.CustomCode.MIN_SPAWN_TIME = 1;
|
|
|
|
GameLib.D3.CustomCode.MAX_SPAWN_TIME = 4;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tell all our custom code components that we loaded
|
|
|
|
*/
|
|
|
|
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('oh07330eg6');
|
|
|
|
this.beforeRender.entityLoaded = this;
|
|
|
|
|
|
|
|
this.mouseUp = GameLib.EntityManager.Instance.findComponentById('jujvqjffqw');
|
|
|
|
this.mouseUp.entityLoaded = this;
|
|
|
|
|
|
|
|
this.mouseDown = GameLib.EntityManager.Instance.findComponentById('56if6ltmvm');
|
|
|
|
this.mouseDown.entityLoaded = this;
|
|
|
|
|
|
|
|
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('0krv8dcow2');
|
|
|
|
this.mouseMove.entityLoaded = this;
|
|
|
|
|
|
|
|
/**
|
2017-11-09 11:06:32 +01:00
|
|
|
* Don't plant any trees for Olcayto
|
2017-11-09 10:13:49 +01:00
|
|
|
*/
|
2017-11-10 09:24:17 +01:00
|
|
|
this.stone1 = GameLib.EntityManager.Instance.findComponentById('tpwbl3omia');
|
|
|
|
this.stone2 = GameLib.EntityManager.Instance.findComponentById('2oma4vgtbp');
|
2017-11-09 10:13:49 +01:00
|
|
|
|
2017-11-10 09:24:17 +01:00
|
|
|
for (var i = 0; i < 20; i++) {
|
|
|
|
this.stone1.clone();
|
|
|
|
this.stone2.clone();
|
|
|
|
}
|
2017-11-09 10:13:49 +01:00
|
|
|
|
|
|
|
//@ sourceURL=entityLoaded.js
|