Beispiel #1
0
        public override void Load(BinaryReader reader, int size)
        {
            Pos     = new Pos(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
            RotX    = reader.ReadUInt16();
            COMRotX = reader.ReadUInt16();
            RotY    = reader.ReadUInt16();
            COMRotY = reader.ReadUInt16();
            RotZ    = reader.ReadUInt16();
            COMRotZ = reader.ReadUInt16();

            var n = reader.ReadInt32();

            n        = reader.ReadInt32();
            SomeNum1 = reader.ReadInt32();
            InstanceIDs.Clear();
            for (int i = 0; i < n; ++i)
            {
                InstanceIDs.Add(reader.ReadUInt16());
            }
            n        = reader.ReadInt32();
            n        = reader.ReadInt32();
            SomeNum2 = reader.ReadInt32();
            PositionIDs.Clear();
            for (int i = 0; i < n; ++i)
            {
                PositionIDs.Add(reader.ReadUInt16());
            }
            n        = reader.ReadInt32();
            n        = reader.ReadInt32();
            SomeNum3 = reader.ReadInt32();
            PathIDs.Clear();
            for (int i = 0; i < n; ++i)
            {
                PathIDs.Add(reader.ReadUInt16());
            }
            ObjectID = reader.ReadUInt16();
            AfterOID = reader.ReadUInt32();
            PHeader  = reader.ReadUInt32();
            UnkI32   = reader.ReadUInt32();
            n        = reader.ReadInt32();
            UnkI321.Clear();
            for (int i = 0; i < n; ++i)
            {
                UnkI321.Add(reader.ReadUInt32());
            }
            n = reader.ReadInt32();
            UnkI322.Clear();
            for (int i = 0; i < n; ++i)
            {
                UnkI322.Add(reader.ReadSingle());
            }
            n = reader.ReadInt32();
            UnkI323.Clear();
            for (int i = 0; i < n; ++i)
            {
                UnkI323.Add(reader.ReadUInt32());
            }
        }
Beispiel #2
0
        public override void Load(BinaryReader reader, int size)
        {
            Pos     = new Pos(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
            RotX    = reader.ReadUInt16();
            COMRotX = reader.ReadUInt16();
            RotY    = reader.ReadUInt16();
            COMRotY = reader.ReadUInt16();
            RotZ    = reader.ReadUInt16();
            COMRotZ = reader.ReadUInt16();

            var n = reader.ReadInt32();

            n        = reader.ReadInt32();
            SomeNum1 = reader.ReadInt32();
            InstanceIDs.Clear();
            for (int i = 0; i < n; ++i)
            {
                InstanceIDs.Add(reader.ReadUInt16());
            }
            n        = reader.ReadInt32();
            n        = reader.ReadInt32();
            SomeNum2 = reader.ReadInt32();
            PositionIDs.Clear();
            for (int i = 0; i < n; ++i)
            {
                PositionIDs.Add(reader.ReadUInt16());
            }
            n        = reader.ReadInt32();
            n        = reader.ReadInt32();
            SomeNum3 = reader.ReadInt32();
            PathIDs.Clear();
            for (int i = 0; i < n; ++i)
            {
                PathIDs.Add(reader.ReadUInt16());
            }
            ObjectID = reader.ReadUInt16();
            AfterOID = reader.ReadUInt32();
            //PHeader = reader.ReadUInt32();

            //reader.BaseStream.Position -= 4;
            var Count_Flags  = reader.ReadByte();
            var Count_Floats = reader.ReadByte();
            var Count_Ints   = reader.ReadByte();

            reader.ReadByte();

            Flags = reader.ReadUInt32();
            UnkI321.Clear();
            for (int i = 0; i < Count_Flags; ++i)
            {
                UnkI321.Add(reader.ReadUInt32());
            }
            UnkI322.Clear();
            for (int i = 0; i < Count_Floats; ++i)
            {
                UnkI322.Add(reader.ReadSingle());
            }
            UnkI323.Clear();
            for (int i = 0; i < Count_Ints; ++i)
            {
                UnkI323.Add(reader.ReadUInt32());
            }
        }
Beispiel #3
0
        public override void Load(BinaryReader reader, int size)
        {
            long start_pos = reader.BaseStream.Position;

            int n;

            InstanceIDs.Clear();
            PositionIDs.Clear();
            PathIDs.Clear();
            UnkI321.Clear();
            UnkI322.Clear();
            UnkI323.Clear();

            Pos     = new Pos(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
            RotX    = reader.ReadUInt16();
            COMRotX = reader.ReadUInt16();
            RotY    = reader.ReadUInt16();
            COMRotY = reader.ReadUInt16();
            RotZ    = reader.ReadUInt16();
            COMRotZ = reader.ReadUInt16();

            n        = reader.ReadInt32();
            n        = reader.ReadInt32();
            SomeNum1 = reader.ReadInt32();
            for (int i = 0; i < n; ++i)
            {
                InstanceIDs.Add(reader.ReadUInt16());
            }
            n        = reader.ReadInt32();
            n        = reader.ReadInt32();
            SomeNum2 = reader.ReadInt32();
            for (int i = 0; i < n; ++i)
            {
                PositionIDs.Add(reader.ReadUInt16());
            }
            n        = reader.ReadInt32();
            n        = reader.ReadInt32();
            SomeNum3 = reader.ReadInt32();
            for (int i = 0; i < n; ++i)
            {
                PathIDs.Add(reader.ReadUInt16());
            }
            ObjectID = reader.ReadUInt16();
            RefList  = reader.ReadInt16();
            ScriptID = reader.ReadInt16();

            Remain = reader.ReadBytes((int)((start_pos + size) - reader.BaseStream.Position));

            /*
             *
             * PHeader = reader.ReadUInt32();
             * Flags = reader.ReadUInt32();
             * n = reader.ReadInt32();
             * for (int i = 0; i < n; ++i)
             *  UnkI321.Add(reader.ReadUInt32());
             * n = reader.ReadInt32();
             * for (int i = 0; i < n; ++i)
             *  UnkI322.Add(reader.ReadSingle());
             * n = reader.ReadInt32();
             * for (int i = 0; i < n; ++i)
             *  UnkI323.Add(reader.ReadUInt32());
             */
        }