From 6b4e72cecd573d10b14169c00d296a08c00c5c72 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 7 Nov 2017 00:33:40 +0100 Subject: [PATCH] Initial Commit: CC - Entity Loaded - Moorcow (gr0qs6v7dd.js) --- gr0qs6v7dd.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gr0qs6v7dd.js diff --git a/gr0qs6v7dd.js b/gr0qs6v7dd.js new file mode 100644 index 0000000..6ea6f11 --- /dev/null +++ b/gr0qs6v7dd.js @@ -0,0 +1,16 @@ +if (this.parentEntity === data.entity) { + console.log('my entity loaded :)'); +} else { + return; +} + +this.enemies = []; + +/** + * Min and max spawn time is in seconds + */ +GameLib.D3.CustomCode.MIN_SPAWN_TIME = 1; +GameLib.D3.CustomCode.MAX_SPAWN_TIME = 4; + +this.beforeRender = GameLib.EntityManager.Instance.findComponentById('9l6o7974qx'); +this.beforeRender.entityLoaded = this;