Make ShroudInfo fields readonly.

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

View File

@@ -18,28 +18,28 @@ namespace OpenRA.Traits
public class ShroudInfo : ITraitInfo, ILobbyOptions
{
[Desc("Default value of the fog checkbox in the lobby.")]
public bool FogEnabled = true;
public readonly bool FogEnabled = true;
[Desc("Prevent the fog enabled state from being changed in the lobby.")]
public bool FogLocked = false;
public readonly bool FogLocked = false;
[Desc("Whether to display the fog checkbox in the lobby.")]
public bool FogVisible = true;
public readonly bool FogVisible = true;
[Desc("Display order for the fog checkbox in the lobby.")]
public int FogDisplayOrder = 0;
public readonly int FogDisplayOrder = 0;
[Desc("Default value of the explore map checkbox in the lobby.")]
public bool ExploredMapEnabled = false;
public readonly bool ExploredMapEnabled = false;
[Desc("Prevent the explore map enabled state from being changed in the lobby.")]
public bool ExploredMapLocked = false;
public readonly bool ExploredMapLocked = false;
[Desc("Whether to display the explore map checkbox in the lobby.")]
public bool ExploredMapVisible = true;
public readonly bool ExploredMapVisible = true;
[Desc("Display order for the explore map checkbox in the lobby.")]
public int ExploredMapDisplayOrder = 0;
public readonly int ExploredMapDisplayOrder = 0;
IEnumerable<LobbyOption> ILobbyOptions.LobbyOptions(Ruleset rules)
{