mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
19 lines
312 B
JavaScript
19 lines
312 B
JavaScript
GameSettings.prototype.Attributes.GameName = class GameName extends GameSetting
|
|
{
|
|
init()
|
|
{
|
|
this.value = "";
|
|
}
|
|
|
|
toInitAttributes(attribs)
|
|
{
|
|
if (this.value)
|
|
attribs.gameName = this.value;
|
|
}
|
|
|
|
fromInitAttributes(attribs)
|
|
{
|
|
if (attribs.gameName !== undefined)
|
|
this.value = attribs.gameName;
|
|
}
|
|
};
|