diff --git a/Source/MaterialDef.cs b/Source/MaterialDef.cs index 18e5e9c..3ac5e1f 100644 --- a/Source/MaterialDef.cs +++ b/Source/MaterialDef.cs @@ -65,11 +65,11 @@ public class MaterialDef [Persistent] public bool preserveRenderQueue = false; - public Dictionary keywords; - public Dictionary floats; - public Dictionary colors; - public Dictionary vectors; - public Dictionary textureNames; + public readonly Dictionary keywords; + public readonly Dictionary floats; + public readonly Dictionary colors; + public readonly Dictionary vectors; + public readonly Dictionary textureNames; readonly Dictionary textures = new Dictionary(); diff --git a/Source/MaterialReplacement.cs b/Source/MaterialReplacement.cs index 2cd7614..897087c 100644 --- a/Source/MaterialReplacement.cs +++ b/Source/MaterialReplacement.cs @@ -26,7 +26,7 @@ namespace Shabby public class MaterialReplacement : ModelFilter { - public MaterialDef materialDef = null; + public readonly MaterialDef materialDef = null; readonly Dictionary replacedMaterials = new Dictionary(); public MaterialReplacement(ConfigNode node) : base(node) diff --git a/Source/ModelFilter.cs b/Source/ModelFilter.cs index da79653..02f28ae 100644 --- a/Source/ModelFilter.cs +++ b/Source/ModelFilter.cs @@ -24,11 +24,11 @@ namespace Shabby { public class ModelFilter { - public HashSet targetMaterials; - public HashSet targetTransforms; - public bool blanketApply; + public readonly HashSet targetMaterials; + public readonly HashSet targetTransforms; + public readonly bool blanketApply; - public HashSet ignoredMeshes; + public readonly HashSet ignoredMeshes; public ModelFilter(ConfigNode node) {