Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/Trainer.js
Show First 20 Lines • Show All 685 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
const item = this.queue.get(id); | const item = this.queue.get(id); | ||||
const usedTime = item.Progress(allocatedTime); | const usedTime = item.Progress(allocatedTime); | ||||
if (item.finished) | if (item.finished) | ||||
this.queue.delete(id); | this.queue.delete(id); | ||||
return usedTime; | return usedTime; | ||||
}; | }; | ||||
Trainer.prototype.OnCivChanged = function() | |||||
{ | |||||
this.CalculateEntitiesMap(); | |||||
}; | |||||
Trainer.prototype.OnOwnershipChanged = function(msg) | Trainer.prototype.OnOwnershipChanged = function(msg) | ||||
{ | { | ||||
if (msg.to != INVALID_PLAYER) | if (msg.to != INVALID_PLAYER) | ||||
this.CalculateEntitiesMap(); | this.CalculateEntitiesMap(); | ||||
}; | }; | ||||
Trainer.prototype.OnValueModification = function(msg) | Trainer.prototype.OnValueModification = function(msg) | ||||
{ | { | ||||
Show All 27 Lines |
Wildfire Games · Phabricator