OSDN Git Service

indentation
[automap/automap.git] / Automap / Data / CommandData.cs
index 88ebe3a..2391c0a 100644 (file)
@@ -29,72 +29,74 @@ namespace Automap
                //Choose : Renderer(s)
 
 
-               public CommandData( RunState assumeState, bool[] theseDelegates)
+               public CommandData(RunState assumeState, bool[] theseDelegates)
                {
-               State = assumeState;
+                       State = assumeState;
 
-               DelegatesFlags = new List<DelegateState>(theseDelegates.Length);
-               foreach (var df in theseDelegates) {
-               DelegatesFlags.Add(new DelegateState( ) {
+                       DelegatesFlags = new List<DelegateState>(theseDelegates.Length);
+                       foreach (var df in theseDelegates)
+                       {
+                               DelegatesFlags.Add(new DelegateState()
+                               {
                                        Enabled = df,
                                        AlternateColor = null,
-               });
+                               });
 
-               }
+                       }
 
                }
 
                public CommandData(RunState assumeState)
                {
-               State = assumeState;//Never RUN.
+                       State = assumeState;//Never RUN.
 
-               DelegatesFlags = new List<DelegateState>();             
+                       DelegatesFlags = new List<DelegateState>();
                }
 
 
                public void FromBytes(BinaryReader stream)
                {
-               var temp = ProtoBuf.Serializer.Deserialize<CommandData>(stream.BaseStream);
-               this.State = temp.State;
-               this.DelegatesFlags = temp.DelegatesFlags;
+                       var temp = ProtoBuf.Serializer.Deserialize<CommandData>(stream.BaseStream);
+                       this.State = temp.State;
+                       this.DelegatesFlags = temp.DelegatesFlags;
 
                }
 
                public void ToBytes(BinaryWriter stream)
                {
-               ProtoBuf.Serializer.Serialize<CommandData>(stream.BaseStream, this);
-               
+                       ProtoBuf.Serializer.Serialize<CommandData>(stream.BaseStream, this);
+
 
                }
 
 
 
-               public int GetAttributeId( )
+               public int GetAttributeId()
                {
-               return 12346;
+                       return 12346;
                }
 
-               public object GetValue( )
+               public object GetValue()
                {
-               return this;
+                       return this;
                }
 
 
-               public string ToJsonToken( )
+               public string ToJsonToken()
                {
                        return $"New-State:{State}, Delegates# {DelegatesFlags.Count} ";
                }
 
                public bool Equals(IWorldAccessor worldForResolve, IAttribute attr)
                {
-               var other = attr.GetValue( ) as CommandData;
+                       var other = attr.GetValue() as CommandData;
 
-                       if (this.State == other.State )
-                       {
-                       return true;
+                       if (this.State == other.State)
+                       {
+                               return true;
                        }
 
-               return false;
+                       return false;
                }
        }