Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Foundation.js
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | Foundation.prototype.InitialiseConstruction = function(template) | ||||
this.costs = cmpCost.GetResourceCosts(); | this.costs = cmpCost.GetResourceCosts(); | ||||
this.maxProgress = 0; | this.maxProgress = 0; | ||||
this.initialised = true; | this.initialised = true; | ||||
}; | }; | ||||
Foundation.prototype.FinalTemplateName = function() | |||||
{ | |||||
return this.finalTemplateName; | |||||
}; | |||||
/** | /** | ||||
* Moving the revelation logic from Build to here makes the building sink if | * Moving the revelation logic from Build to here makes the building sink if | ||||
* it is attacked. | * it is attacked. | ||||
*/ | */ | ||||
Foundation.prototype.OnHealthChanged = function(msg) | Foundation.prototype.OnHealthChanged = function(msg) | ||||
{ | { | ||||
let cmpPosition = Engine.QueryInterface(this.previewEntity, IID_Position); | let cmpPosition = Engine.QueryInterface(this.previewEntity, IID_Position); | ||||
if (cmpPosition) | if (cmpPosition) | ||||
▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator