Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/buildManager.js
var PETRA = function(m) | (function(m) | ||||
{ | { | ||||
/** | /** | ||||
* One task of this manager is to cache the list of structures we have builders for, | * One task of this manager is to cache the list of structures we have builders for, | ||||
* to avoid having to loop on all entities each time. | * to avoid having to loop on all entities each time. | ||||
* It also takes care of the structures we can't currently build and should not try to build endlessly. | * It also takes care of the structures we can't currently build and should not try to build endlessly. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
m.BuildManager.prototype.Deserialize = function(data) | m.BuildManager.prototype.Deserialize = function(data) | ||||
{ | { | ||||
for (let key in data) | for (let key in data) | ||||
this[key] = data[key]; | this[key] = data[key]; | ||||
}; | }; | ||||
return m; | }(PETRA)); | ||||
}(PETRA); |
Wildfire Games · Phabricator