Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/queue.js
var PETRA = function(m) | (function(m) | ||||
{ | { | ||||
/** | /** | ||||
* Holds a list of wanted plans to train or construct | * Holds a list of wanted plans to train or construct | ||||
*/ | */ | ||||
m.Queue = function() | m.Queue = function() | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | else | ||||
API3.warn("Petra deserialization error: plan unknown " + uneval(dataPlan)); | API3.warn("Petra deserialization error: plan unknown " + uneval(dataPlan)); | ||||
continue; | continue; | ||||
} | } | ||||
plan.Deserialize(gameState, dataPlan); | plan.Deserialize(gameState, dataPlan); | ||||
this.plans.push(plan); | this.plans.push(plan); | ||||
} | } | ||||
}; | }; | ||||
return m; | }(PETRA)); | ||||
}(PETRA); |
Wildfire Games · Phabricator