Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Player.js
Show All 30 Lines | for (let key in this) | ||||
if (this.hasOwnProperty(key)) | if (this.hasOwnProperty(key)) | ||||
state[key] = this[key]; | state[key] = this[key]; | ||||
state.diplomacyColor = undefined; | state.diplomacyColor = undefined; | ||||
state.displayDiplomacyColor = false; | state.displayDiplomacyColor = false; | ||||
return state; | return state; | ||||
}; | }; | ||||
Player.prototype.Deserialize = function(state) | |||||
{ | |||||
for (let prop in state) | |||||
this[prop] = state[prop]; | |||||
}; | |||||
/** | /** | ||||
* Which units will be shown with special icons at the top. | * Which units will be shown with special icons at the top. | ||||
*/ | */ | ||||
var panelEntityClasses = "Hero Relic"; | var panelEntityClasses = "Hero Relic"; | ||||
Player.prototype.Init = function() | Player.prototype.Init = function() | ||||
{ | { | ||||
this.playerID = undefined; | this.playerID = undefined; | ||||
▲ Show 20 Lines • Show All 924 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator