Esempio n. 1
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     UNK1 = bin.ReadInt32();
     UNK2 = bin.ReadInt32();
     UNK3 = bin.ReadInt32();
     UNK4 = bin.ReadInt32();
 }
Esempio n. 2
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     RegionIndex2 = bin.ReadInt32();
     SUx04        = bin.ReadInt32();
     SUx08        = bin.ReadInt32();
     SUx0C        = bin.ReadInt32();
 }
Esempio n. 3
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     NPCHostEntityID = bin.ReadInt32();
     EventFlagID     = bin.ReadInt32();
     i_SpawnPoint    = bin.ReadInt32();
     SUB_CONST_1     = bin.ReadInt32();
 }
Esempio n. 4
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     SUB_CONST_1 = bin.ReadInt32();
     SUB_CONST_2 = bin.ReadInt32();
     SUB_CONST_3 = bin.ReadInt32();
     SUB_CONST_4 = bin.ReadInt32();
 }
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     NPCHostEventEntityID  = bin.ReadInt32();
     InvasionEventEntityID = bin.ReadInt32();
     InvasionRegionIndex   = bin.ReadInt32();
     SUx0C = bin.ReadInt32();
 }
Esempio n. 6
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     SUB_CONST_1 = bin.ReadInt32();
     SUB_CONST_2 = bin.ReadInt32();
     Radius      = bin.ReadSingle();
     EntityID    = bin.ReadInt32();
 }
Esempio n. 7
0
        protected override void InternalRead(DSBinaryReader bin)
        {
            Name  = bin.ReadMsbString();
            Ux04  = bin.ReadInt32();
            Index = bin.ReadInt32();
            bin.AssertInt32((int)Type);

            PosX = bin.ReadSingle();
            PosY = bin.ReadSingle();
            PosZ = bin.ReadSingle();

            RotX = bin.ReadSingle();
            RotY = bin.ReadSingle();
            RotZ = bin.ReadSingle();

            int baseSubtypeDataOffset = bin.ReadInt32();

            bin.AssertInt32(OffsetDeltas.Item1 >= 0
                ? baseSubtypeDataOffset + OffsetDeltas.Item1 : 0);
            bin.AssertInt32(OffsetDeltas.Item2 >= 0
                ? baseSubtypeDataOffset + OffsetDeltas.Item2 : 0);
            bin.AssertInt32(OffsetDeltas.Item3 >= 0
                ? baseSubtypeDataOffset + OffsetDeltas.Item3 : 0);

            bin.StepInMSB(baseSubtypeDataOffset);
            {
                SubtypeRead(bin);
            }
            bin.StepOut();
        }
Esempio n. 8
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     UNK1          = bin.ReadInt32();
     UNK2          = bin.ReadInt32();
     Radius        = bin.ReadSingle();
     EventEntityID = bin.ReadInt32();
 }
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     ObjActEntityID     = bin.ReadInt32();
     i_ObjName          = bin.ReadInt32();
     ObjActParamEntryID = bin.ReadInt16();
     ObjActState        = (EventsObjActsObjActState)bin.ReadInt16();
     EventFlagID        = bin.ReadInt32();
 }
Esempio n. 10
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     ObjActEntityID = bin.ReadInt32();
     i_ObjName      = bin.ReadInt32();
     ParameterID    = bin.ReadInt16();
     SubUnk1        = bin.ReadInt16();
     EventFlagID    = bin.ReadInt32();
 }
Esempio n. 11
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     ObjActEntityID = bin.ReadInt32();
     PartIndex2     = bin.ReadInt32();
     ParameterID    = bin.ReadInt16();
     SUx0A          = bin.ReadInt16();
     EventFlagID    = bin.ReadInt32();
 }
Esempio n. 12
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     SUB_CONST_1 = bin.ReadInt32();
     SUB_CONST_2 = bin.ReadInt32();
     WidthX      = bin.ReadSingle();
     DepthZ      = bin.ReadSingle();
     HeightY     = bin.ReadSingle();
     EntityID    = bin.ReadInt32();
 }
Esempio n. 13
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     UNK1          = bin.ReadInt32();
     UNK2          = bin.ReadInt32();
     Length        = bin.ReadSingle();
     Width         = bin.ReadSingle();
     Height        = bin.ReadSingle();
     EventEntityID = bin.ReadInt32();
 }
Esempio n. 14
0
        protected override void InternalRead(DSBinaryReader bin)
        {
            Name       = bin.ReadMsbString();
            EventIndex = bin.ReadInt32();
            bin.AssertInt32((int)Type);
            Index = bin.ReadInt32();

            int baseDataOffset    = bin.ReadInt32();
            int subtypeDataOffset = bin.ReadInt32();

            BASE_CONST_1 = bin.ReadInt32();

            bin.StepInMSB(baseDataOffset);
            {
                i_Part       = bin.ReadInt32();
                i_Region     = bin.ReadInt32();
                EntityID     = bin.ReadInt32();
                BASE_CONST_2 = bin.ReadInt32();
            }
            bin.StepOut();

            bin.StepInMSB(subtypeDataOffset);
            {
                SubtypeRead(bin);
            }
            bin.StepOut();
        }
Esempio n. 15
0
 protected override void InternalRead(DSBinaryReader bin)
 {
     Name = bin.ReadMsbString();
     bin.AssertInt32((int)ModelType);
     Index            = bin.ReadInt32();
     PlaceholderModel = bin.ReadMsbString();
     InstanceCount    = bin.ReadInt32();
     Ux14             = bin.ReadInt32();
     Ux18             = bin.ReadInt32();
     Ux1C             = bin.ReadInt32();
 }
Esempio n. 16
0
        protected override void SubtypeRead(DSBinaryReader bin)
        {
            UNK1      = bin.ReadInt32();
            PartIndex = bin.ReadInt32();
            UNK2      = bin.ReadInt32();

            UNK3 = bin.ReadInt16();
            UNK4 = bin.ReadInt16();

            UNK5 = bin.ReadInt32();
            UNK6 = bin.ReadInt32();
        }
Esempio n. 17
0
        public static FlverVertexStructMember Read(DSBinaryReader bin)
        {
            var val = new FlverVertexStructMember();

            val.Unknown1     = bin.ReadInt32();
            val.StructOffset = bin.ReadInt32();
            val.ValueType    = (FlverVertexStructMemberValueType)bin.ReadInt32();
            val.Semantic     = (FlverVertexStructMemberSemantic)bin.ReadInt32();
            val.Index        = bin.ReadInt32();

            return(val);
        }
Esempio n. 18
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     if (bin.IsDeS)
     {
         SubtypeReadDeS(bin);
     }
     else
     {
         SoundType = (MsbSoundType)bin.ReadInt32();
         SoundID   = bin.ReadInt32();
     }
 }
        protected override void SubtypeRead(DSBinaryReader bin)
        {
            UNK1 = bin.ReadByte();
            UNK2 = bin.ReadByte();
            UNK3 = bin.ReadByte();
            UNK4 = bin.ReadByte();

            UNK5 = bin.ReadInt16();
            UNK6 = bin.ReadInt16();

            UNK7 = bin.ReadInt32();
            UNK8 = bin.ReadInt32();
        }
Esempio n. 20
0
        protected override void InternalRead(DSBinaryReader bin)
        {
            Name         = bin.ReadMsbString();
            BASE_CONST_1 = bin.ReadInt32();
            SolvedIndex  = bin.ReadInt32();
            bin.AssertInt32((int)Type);

            PosX = bin.ReadSingle();
            PosY = bin.ReadSingle();
            PosZ = bin.ReadSingle();

            RotX = bin.ReadSingle();
            RotY = bin.ReadSingle();
            RotZ = bin.ReadSingle();

            if (bin.LongOffsets)
            {
                bin.Jump(4);
            }

            int baseSubtypeDataOffset = bin.ReadInt32();

            if (bin.LongOffsets)
            {
                bin.Jump(4);
                bin.AssertInt32(OffsetDeltas64.Item1 >= 0
                    ? baseSubtypeDataOffset + OffsetDeltas64.Item1 : 0);
                bin.Jump(4);
                bin.AssertInt32(OffsetDeltas64.Item2 >= 0
                    ? baseSubtypeDataOffset + OffsetDeltas64.Item2 : 0);
                bin.Jump(4);
                bin.AssertInt32(OffsetDeltas64.Item3 >= 0
                    ? baseSubtypeDataOffset + OffsetDeltas64.Item3 : 0);
                bin.Jump(4);
            }
            else
            {
                bin.AssertInt32(OffsetDeltas.Item1 >= 0
                    ? baseSubtypeDataOffset + OffsetDeltas.Item1 : 0);
                bin.AssertInt32(OffsetDeltas.Item2 >= 0
                    ? baseSubtypeDataOffset + OffsetDeltas.Item2 : 0);
                bin.AssertInt32(OffsetDeltas.Item3 >= 0
                    ? baseSubtypeDataOffset + OffsetDeltas.Item3 : 0);
            }

            bin.StepInMSB(baseSubtypeDataOffset);
            {
                SubtypeRead(bin);
            }
            bin.StepOut();
        }
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     SUB_CONST_1 = bin.ReadInt32();
     if (bin.LongOffsets)
     {
         bin.Jump(4);
     }
     SUB_CONST_2 = bin.ReadInt32();
     if (bin.LongOffsets)
     {
         bin.Jump(4);
     }
     EntityID = bin.ReadInt32();
 }
Esempio n. 22
0
        protected override void SubtypeRead(DSBinaryReader bin)
        {
            if (bin.IsDeS)
            {
                PlayerSubUnk = bin.ReadByte();
                bin.Jump(3);
            }
            else
            {
                SUB_CONST_1 = bin.ReadInt32();
            }

            SUB_CONST_2 = bin.ReadInt32();
            SUB_CONST_3 = bin.ReadInt32();
            SUB_CONST_4 = bin.ReadInt32();
        }
Esempio n. 23
0
        protected override void SubtypeRead(DSBinaryReader bin)
        {
            SUB_CONST_1 = bin.ReadInt32();
            i_PartName  = bin.ReadInt32();

            SubUnk1     = bin.ReadByte();
            SubUnk2     = bin.ReadByte();
            SUB_CONST_2 = bin.ReadByte();
            SUB_CONST_3 = bin.ReadByte();

            SubUnk3 = bin.ReadInt16();
            SubUnk4 = bin.ReadInt16();

            SubUnk5     = bin.ReadInt32();
            SUB_CONST_4 = bin.ReadInt32();
        }
Esempio n. 24
0
        protected override void SubtypeRead(DSBinaryReader bin)
        {
            NaviMeshGroup1 = bin.ReadInt32();
            NaviMeshGroup2 = bin.ReadInt32();
            NaviMeshGroup3 = bin.ReadInt32();
            NaviMeshGroup4 = bin.ReadInt32();

            UNK1 = bin.ReadInt32();
            UNK2 = bin.ReadInt32();
            UNK3 = bin.ReadInt32();
            UNK4 = bin.ReadInt32();
        }
Esempio n. 25
0
        protected override void SubtypeRead(DSBinaryReader bin)
        {
            NaviMeshGroup1 = bin.ReadInt32();
            NaviMeshGroup2 = bin.ReadInt32();
            NaviMeshGroup3 = bin.ReadInt32();
            NaviMeshGroup4 = bin.ReadInt32();

            SUB_CONST_1 = bin.ReadInt32();
            SUB_CONST_2 = bin.ReadInt32();
            SUB_CONST_3 = bin.ReadInt32();
            SUB_CONST_4 = bin.ReadInt32();
        }
Esempio n. 26
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     SubUnk1     = bin.ReadInt32();
     SubUnk2     = bin.ReadSingle();
     SubUnk3     = bin.ReadSingle();
     SubUnk4     = bin.ReadSingle();
     SubUnk5     = bin.ReadSingle();
     SubUnk6     = bin.ReadSingle();
     SUB_CONST_1 = bin.ReadSingle();
     SUB_CONST_2 = bin.ReadSingle();
 }
Esempio n. 27
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     if (bin.IsDeS)
     {
         SubtypeReadDeS(bin);
     }
     else
     {
         SfxID = bin.ReadInt32();
     }
 }
Esempio n. 28
0
 protected override void SubtypeRead(DSBinaryReader bin)
 {
     SUx00 = bin.ReadInt32();
     SUx04 = bin.ReadSingle();
     SUx08 = bin.ReadSingle();
     SUx0C = bin.ReadSingle();
     SUx10 = bin.ReadSingle();
     SUx14 = bin.ReadSingle();
     SUx18 = bin.ReadSingle();
     SUx1C = bin.ReadSingle();
 }
Esempio n. 29
0
        public static FlverVertexStructLayout Read(DSBinaryReader bin)
        {
            var val = new FlverVertexStructLayout();

            int memberCount = bin.ReadInt32();

            val.Unknown1 = bin.ReadInt32();
            val.Unknown2 = bin.ReadInt32();

            int startOffset = bin.ReadInt32();

            bin.StepIn(startOffset);
            {
                val.Members = new List <FlverVertexStructMember>();
                for (int i = 0; i < memberCount; i++)
                {
                    val.Members.Add(FlverVertexStructMember.Read(bin));
                }
            }

            return(val);
        }
Esempio n. 30
0
        protected override void InternalRead(DSBinaryReader bin)
        {
            Name       = bin.ReadMsbString();
            EventIndex = bin.ReadInt32();
            bin.AssertInt32((int)Type);
            Index = bin.ReadInt32();

            if (bin.LongOffsets)
            {
                bin.Jump(4);
            }

            long baseDataOffset;
            long subtypeDataOffset;

            if (bin.LongOffsets)
            {
                baseDataOffset    = bin.ReadInt64();
                subtypeDataOffset = bin.ReadInt64();
            }
            else
            {
                baseDataOffset    = bin.ReadInt32();
                subtypeDataOffset = bin.ReadInt32();
            }

            BASE_CONST_1 = bin.ReadInt32();

            bin.StepInMSB(baseDataOffset);
            {
                i_Part       = bin.ReadInt32();
                i_Region     = bin.ReadInt32();
                EntityID     = bin.ReadInt32();
                BASE_CONST_2 = bin.ReadInt32();
            }
            bin.StepOut();

            bin.StepInMSB(subtypeDataOffset);
            {
                SubtypeRead(bin);
            }
            bin.StepOut();
        }