Make SpawnMPUnitsInfo fields readonly.

This commit is contained in:
Paul Chote
2017-11-14 17:56:36 +00:00
committed by reaperrr
parent 2c17780b94
commit 2e24c14503

View File

@@ -24,13 +24,13 @@ namespace OpenRA.Mods.Common.Traits
public readonly string StartingUnitsClass = "none";
[Desc("Prevent the starting units option from being changed in the lobby.")]
public bool Locked = false;
public readonly bool Locked = false;
[Desc("Whether to display the starting units option in the lobby.")]
public bool Visible = true;
public readonly bool Visible = true;
[Desc("Display order for the starting units option in the lobby.")]
public int DisplayOrder = 0;
public readonly int DisplayOrder = 0;
IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(Ruleset rules)
{