Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Pack.js
Show All 18 Lines | |||||
Pack.prototype.Init = function() | Pack.prototype.Init = function() | ||||
{ | { | ||||
this.packed = this.template.State == "packed"; | this.packed = this.template.State == "packed"; | ||||
this.packing = false; | this.packing = false; | ||||
this.elapsedTime = 0; | this.elapsedTime = 0; | ||||
this.timer = undefined; | this.timer = undefined; | ||||
}; | }; | ||||
Pack.prototype.Update = function(newTemplate) | |||||
{ | |||||
this.template = newTemplate; | |||||
warn("Pack.Update: not implemented"); | |||||
}; | |||||
Pack.prototype.OnDestroy = function() | Pack.prototype.OnDestroy = function() | ||||
{ | { | ||||
this.CancelTimer(); | this.CancelTimer(); | ||||
}; | }; | ||||
Pack.prototype.CancelTimer = function() | Pack.prototype.CancelTimer = function() | ||||
{ | { | ||||
if (this.timer) | if (this.timer) | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator