Example #1
0
        public override void OnRebuild(VoidPtr address, int length, bool force)
        {
            GDOREntry *header = (GDOREntry *)address;

            *header = new GDOREntry();

            header->DoorID     = _doorID;
            header->_doorIndex = (byte)_doorIndex;
            header->_xOverride = _xOverride;
            header->_yOverride = _yOverride;
            header->_zOverride = _zOverride;
            header->_unkFloat0 = _unkFloat0;
            header->_unkFloat1 = _unkFloat1;
            header->_unkInt    = _unkInt;
            header->_unk7      = (byte)_unk;
            header->_unk0      = (byte)_unk0;
            header->_unk1      = (byte)_unk1;
            header->_unk2      = (byte)_unk2;
            header->_unk3      = (byte)_unk3;
            header->_unk4      = (byte)_unk4;
            header->_unk5      = (byte)_unk5;
            header->_unk6      = (byte)_unk6;
            header->_unk8      = header->_unk9 = header->_unk10 = 0;
            header->_nulls     = 0xFFFFFFFF;
            header->_mdlIndex  = (byte)_mdlIndex;
            header->Trigger0   = _trigger0;
            header->Trigger1   = _trigger1;
            header->Trigger2   = _trigger2;
            header->_pad0      = 1.0f;
            header->_pad1      = header->Pad2 = 0;

            header->Pad4 = 1.0f;
        }
Example #2
0
        public override void OnRebuild(VoidPtr address, int length, bool force)
        {
            GDOREntry *header = (GDOREntry *)address;

            Memory.Move(header, entries.Address, (uint)entries.Length);
        }