OSDN Git Service

replaced the static static map with dynamic static map :)
[automap/automap.git] / Automap / Data / EntityDesignator.cs
index 82b1e25..9939446 100644 (file)
@@ -17,7 +17,7 @@ namespace Automap
        /// </summary>
        public class EntityDesignator
        {
-               public Color OverwriteColor;
+               public Color Color;
                public EntityDesignatonAction SpecialAction;
                public AssetLocation Pattern;
                public EnumEntityState? StateCheck;//Needed?
@@ -28,27 +28,25 @@ namespace Automap
                        throw new NotSupportedException();
                }
 
-               public EntityDesignator(AssetLocation pattern, Color overwriteColor, EnumEntityState? state)
+               public EntityDesignator(AssetLocation pattern, Color color, EnumEntityState? state)
                {
-                       this.Pattern = pattern;
-                       this.OverwriteColor = overwriteColor;
-                       this.StateCheck = state;
-                       this.Enabled = true;
+                       Pattern = pattern;
+                       Color = color;
+                       StateCheck = state;
+                       Enabled = true;
                }
 
-               public EntityDesignator(AssetLocation pattern, Color overwriteColor, EnumEntityState? state, EntityDesignatonAction specialAct)
+               public EntityDesignator(AssetLocation pattern, Color color, EnumEntityState? state, EntityDesignatonAction specialAct)
                {
-                       this.Pattern = pattern;
-                       this.OverwriteColor = overwriteColor;
-                       this.StateCheck = state;
-                       this.SpecialAction = specialAct;
-                       this.Enabled = true;
+                       Pattern = pattern;
+                       Color = color;
+                       StateCheck = state;
+                       SpecialAction = specialAct;
+                       Enabled = true;
                }
 
                public override string ToString()
-               {
-                       return Pattern.ToShortString() + "|" + OverwriteColor.Name + "|" + StateCheck ?? "";
-               }
+                       => Pattern.ToShortString() + "|" + Color.Name + "|" + StateCheck ?? "";
        }
 }