Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/_petrabot.js
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | if (this.isDeserialized) | ||||
} | } | ||||
this.Config.Deserialize(this.data.config); | this.Config.Deserialize(this.data.config); | ||||
this.queueManager = new PETRA.QueueManager(this.Config, {}); | this.queueManager = new PETRA.QueueManager(this.Config, {}); | ||||
this.queueManager.Deserialize(gameState, this.data.queueManager); | this.queueManager.Deserialize(gameState, this.data.queueManager); | ||||
this.queues = this.queueManager.queues; | this.queues = this.queueManager.queues; | ||||
this.HQ = new PETRA.HQ(this.Config); | this.HQ = new PETRA.HQ(this.Config, true); | ||||
this.HQ.init(gameState, this.queues); | this.HQ.init(gameState, this.queues); | ||||
this.HQ.Deserialize(gameState, this.data.HQ); | this.HQ.Deserialize(gameState, this.data.HQ); | ||||
this.uniqueIDs = this.data.uniqueIDs; | this.uniqueIDs = this.data.uniqueIDs; | ||||
this.isDeserialized = false; | this.isDeserialized = false; | ||||
this.data = undefined; | this.data = undefined; | ||||
// initialisation needed after the completion of the deserialization | // initialisation needed after the completion of the deserialization | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator