From 2c17780b944c61049e62bd67a1e5256d1b013748 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 14 Nov 2017 17:56:27 +0000 Subject: [PATCH] Make ShroudInfo fields readonly. --- OpenRA.Game/Traits/Player/Shroud.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OpenRA.Game/Traits/Player/Shroud.cs b/OpenRA.Game/Traits/Player/Shroud.cs index db49c54372..2f52435eae 100644 --- a/OpenRA.Game/Traits/Player/Shroud.cs +++ b/OpenRA.Game/Traits/Player/Shroud.cs @@ -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 ILobbyOptions.LobbyOptions(Ruleset rules) {