Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Formation.js
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | Formation.prototype.Init = function(deserialized = false) | ||||
if (deserialized) | if (deserialized) | ||||
return; | return; | ||||
Engine.QueryInterface(SYSTEM_ENTITY, IID_Timer) | Engine.QueryInterface(SYSTEM_ENTITY, IID_Timer) | ||||
.SetInterval(this.entity, IID_Formation, "ShapeUpdate", 1000, 1000, null); | .SetInterval(this.entity, IID_Formation, "ShapeUpdate", 1000, 1000, null); | ||||
}; | }; | ||||
Formation.prototype.Update = function(newTemplate) | |||||
{ | |||||
warn("Updating Formation is not supported"); | |||||
}; | |||||
Formation.prototype.Serialize = function() | Formation.prototype.Serialize = function() | ||||
{ | { | ||||
let result = {}; | let result = {}; | ||||
for (let key of this.variablesToSerialize) | for (let key of this.variablesToSerialize) | ||||
result[key] = this[key]; | result[key] = this[key]; | ||||
return result; | return result; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 882 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator