Example #1
0
        //========= CONSTRUCTORS =========
        #region Constructors

        /**<summary>Constructs the default object header.</summary>*/
        public PathAdditionHeader()
        {
            Reserved0 = 0;
            Reserved1 = 0;
            Flags     = PathAdditionFlags.None;
            Subtype   = PathAdditionSubtypes.Lamp;
            Cursor    = 0;
            BuildCost = 0;
            Reserved2 = 0;
            Reserved3 = 0;
        }
Example #2
0
        //=========== READING ============
        #region Reading

        /**<summary>Reads the object header.</summary>*/
        internal override void Read(BinaryReader reader)
        {
            Reserved0 = reader.ReadUInt16();
            Reserved1 = reader.ReadUInt32();
            Flags     = (PathAdditionFlags)reader.ReadUInt16();
            Subtype   = (PathAdditionSubtypes)reader.ReadByte();
            Cursor    = reader.ReadByte();
            BuildCost = reader.ReadUInt16();
            Reserved2 = reader.ReadByte();
            Reserved3 = reader.ReadByte();
        }
Example #3
0
        //========= CONSTRUCTORS =========
        #region Constructors

        /** <summary> Constructs the default object header. </summary> */
        public PathAdditionHeader()
        {
            this.Reserved0 = 0;
            this.Reserved1 = 0;
            this.Flags     = PathAdditionFlags.None;
            this.Subtype   = PathAdditionSubtypes.Lamp;
            this.Cursor    = 0;
            this.BuildCost = 0;
            this.Reserved2 = 0;
            this.Reserved3 = 0;
        }