//=========== READING ============ #region Reading /** <summary> Reads the object header. </summary> */ internal override void Read(BinaryReader reader) { this.MessageRef = reader.ReadUInt16(); this.Fill1 = reader.ReadUInt32(); this.Flags = (SmallSceneryFlags)reader.ReadUInt32(); this.Height = reader.ReadByte(); this.Cursor = reader.ReadByte(); this.BuildCost = reader.ReadInt16(); this.RemoveCost = reader.ReadInt16(); this.GraphicsStart = reader.ReadUInt32(); this.Animation1 = reader.ReadUInt16(); this.Animation2 = reader.ReadUInt16(); this.Animation3 = reader.ReadUInt16(); this.BaseIndex = reader.ReadByte(); this.Fill2 = reader.ReadByte(); }
//=========== READING ============ #region Reading /**<summary>Reads the object header.</summary>*/ internal override void Read(BinaryReader reader) { MessageRef = reader.ReadUInt16(); Fill1 = reader.ReadUInt32(); Flags = (SmallSceneryFlags)reader.ReadUInt32(); Height = reader.ReadByte(); Cursor = reader.ReadByte(); BuildCost = reader.ReadInt16(); RemoveCost = reader.ReadInt16(); GraphicsStart = reader.ReadUInt32(); Animation1 = reader.ReadUInt16(); Animation2 = reader.ReadUInt16(); Animation3 = reader.ReadUInt16(); BaseIndex = reader.ReadByte(); Fill2 = reader.ReadByte(); }
//========= CONSTRUCTORS ========= #region Constructors /** <summary> Constructs the default object header. </summary> */ public SmallSceneryHeader() { this.MessageRef = 0; this.Fill1 = 0; this.Flags = SmallSceneryFlags.None; this.Height = 0; this.Cursor = 0; this.BuildCost = 0; this.RemoveCost = 0; this.GraphicsStart = 0; this.Animation1 = 0; this.Animation2 = 0; this.Animation3 = 0; this.BaseIndex = 0; this.Fill2 = 0; }
//========= CONSTRUCTORS ========= #region Constructors /**<summary>Constructs the default object header.</summary>*/ public SmallSceneryHeader() { MessageRef = 0; Fill1 = 0; Flags = SmallSceneryFlags.None; Height = 0; Cursor = 0; BuildCost = 0; RemoveCost = 0; GraphicsStart = 0; Animation1 = 0; Animation2 = 0; Animation3 = 0; BaseIndex = 0; Fill2 = 0; }