Differential D3821 Diff 17010 ps/trunk/binaries/data/mods/public/simulation/components/Foundation.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/Foundation.js
Show First 20 Lines • Show All 403 Lines • ▼ Show 20 Lines | Foundation.prototype.CreateConstructionPreview = function() | ||||
let cmpPreviewVisual = Engine.QueryInterface(this.previewEntity, IID_Visual); | let cmpPreviewVisual = Engine.QueryInterface(this.previewEntity, IID_Visual); | ||||
if (cmpPreviewVisual && cmpFoundationVisual) | if (cmpPreviewVisual && cmpFoundationVisual) | ||||
{ | { | ||||
cmpPreviewVisual.SetActorSeed(cmpFoundationVisual.GetActorSeed()); | cmpPreviewVisual.SetActorSeed(cmpFoundationVisual.GetActorSeed()); | ||||
cmpPreviewVisual.SelectAnimation("scaffold", false, 1.0); | cmpPreviewVisual.SelectAnimation("scaffold", false, 1.0); | ||||
} | } | ||||
}; | }; | ||||
Foundation.prototype.OnEntityRenamed = function(msg) | |||||
{ | |||||
let cmpFoundationNew = Engine.QueryInterface(msg.newentity, IID_Foundation); | |||||
if (cmpFoundationNew) | |||||
cmpFoundationNew.AddBuilders(this.GetBuilders()); | |||||
}; | |||||
function FoundationMirage() {} | function FoundationMirage() {} | ||||
FoundationMirage.prototype.Init = function(cmpFoundation) | FoundationMirage.prototype.Init = function(cmpFoundation) | ||||
{ | { | ||||
this.numBuilders = cmpFoundation.GetNumBuilders(); | this.numBuilders = cmpFoundation.GetNumBuilders(); | ||||
this.buildTime = cmpFoundation.GetBuildTime(); | this.buildTime = cmpFoundation.GetBuildTime(); | ||||
}; | }; | ||||
FoundationMirage.prototype.GetNumBuilders = function() { return this.numBuilders; }; | FoundationMirage.prototype.GetNumBuilders = function() { return this.numBuilders; }; | ||||
Show All 12 Lines |
Wildfire Games · Phabricator