コード例 #1
0
ファイル: Wall.cs プロジェクト: trigger-segfault/RCT2Tools
        //=========== READING ============
        #region Reading

        /** <summary> Reads the object header. </summary> */
        internal override void Read(BinaryReader reader)
        {
            this.Reserved0 = reader.ReadUInt16();
            this.Reserved1 = reader.ReadUInt32();
            this.Cursor    = reader.ReadByte();
            this.Flags     = (WallFlags)reader.ReadByte();
            this.Clearance = reader.ReadByte();
            this.Effects   = reader.ReadByte();
            this.BuildCost = reader.ReadUInt16();
            this.Reserved2 = reader.ReadByte();
            this.Scrolling = reader.ReadByte();
        }
コード例 #2
0
        //=========== READING ============
        #region Reading

        /**<summary>Reads the object header.</summary>*/
        internal override void Read(BinaryReader reader)
        {
            Reserved0 = reader.ReadUInt16();
            Reserved1 = reader.ReadUInt32();
            Cursor    = reader.ReadByte();
            Flags     = (WallFlags)reader.ReadByte();
            Clearance = reader.ReadByte();
            Effects   = reader.ReadByte();
            BuildCost = reader.ReadUInt16();
            Reserved2 = reader.ReadByte();
            Scrolling = reader.ReadByte();
        }
コード例 #3
0
ファイル: Wall.cs プロジェクト: trigger-segfault/RCT2Tools
        //========= CONSTRUCTORS =========
        #region Constructors

        /** <summary> Constructs the default object header. </summary> */
        public WallHeader()
        {
            this.Reserved0 = 0;
            this.Reserved1 = 0;
            this.Cursor    = 0;
            this.Flags     = WallFlags.None;
            this.Clearance = 32;
            this.Effects   = 0;
            this.BuildCost = 1;
            this.Reserved2 = 0;
            this.Scrolling = 0xFF;
        }
コード例 #4
0
        //========= CONSTRUCTORS =========
        #region Constructors

        /**<summary>Constructs the default object header.</summary>*/
        public WallHeader()
        {
            Reserved0 = 0;
            Reserved1 = 0;
            Cursor    = 0;
            Flags     = WallFlags.None;
            Clearance = 32;
            Effects   = 0;
            BuildCost = 1;
            Reserved2 = 0;
            Scrolling = 0xFF;
        }