4 using Vintagestory.API.Common;
5 using Vintagestory.API.Datastructures;
9 public class CommandData : IAttribute
11 public RunState State { get; set; }//Run , Stop, SingleSnapshot -> Stop
13 //POI Delegate list {enabled/Disable}
14 //Other params...? Tick rate?
15 //Choose : Renderer(s)
18 public CommandData( RunState assumeState)
26 public void FromBytes(BinaryReader stream)
28 State = ( RunState )stream.ReadByte( );
33 public int GetAttributeId( )
38 public object GetValue( )
43 public void ToBytes(BinaryWriter stream)
45 stream.Write(( byte )State);
49 public string ToJsonToken( )
51 return $"New-State:{State}, ";
54 public bool Equals(IWorldAccessor worldForResolve, IAttribute attr)
56 var other = attr.GetValue( ) as CommandData;
58 if (this.State == other.State )