Ejemplo n.º 1
0
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Time            = reader.ReadUInt32();
     this.VelocityX       = reader.ReadInt16();
     this.VelocityY       = reader.ReadInt16();
     this.VelocityZ       = reader.ReadInt16();
     this.RightX          = (sbyte)reader.ReadByte();
     this.RightY          = (sbyte)reader.ReadByte();
     this.RightZ          = (sbyte)reader.ReadByte();
     this.TopX            = (sbyte)reader.ReadByte();
     this.TopY            = (sbyte)reader.ReadByte();
     this.TopZ            = (sbyte)reader.ReadByte();
     this.SteeringAngle   = reader.ReadByte();
     this.GasPedalPower   = reader.ReadByte();
     this.BrakePedalPower = reader.ReadByte();
     this.HandbrakeUsed   = reader.ReadByte();
     this.PositionX       = reader.ReadSingle();
     this.PositionY       = reader.ReadSingle();
     this.PositionZ       = reader.ReadSingle();
 }
Ejemplo n.º 2
0
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            ContentFlags         = (NavMeshFlags)reader.ReadUInt32();
            VersionUnk1          = reader.ReadUInt32();
            Unused_018h          = reader.ReadUInt32();
            Unused_01Ch          = reader.ReadUInt32();
            Transform            = reader.ReadMatrix();
            AABBSize             = reader.ReadVector3();
            AABBUnk              = reader.ReadSingle();
            VerticesPointer      = reader.ReadUInt64();
            Unused_078h          = reader.ReadUInt32();
            Unused_07Ch          = reader.ReadUInt32();
            IndicesPointer       = reader.ReadUInt64();
            AdjPolysPointer      = reader.ReadUInt64();
            AdjPolysIndicesCount = reader.ReadUInt32();
            AdjAreaIDs           = reader.ReadStruct <NavMeshUintArray>();
            PolysPointer         = reader.ReadUInt64();
            SectorTreePointer    = reader.ReadUInt64();
            PortalsPointer       = reader.ReadUInt64();
            PortalLinksPointer   = reader.ReadUInt64();
            VerticesCount        = reader.ReadUInt32();
            PolysCount           = reader.ReadUInt32();
            AreaID           = reader.ReadUInt32();
            TotalBytes       = reader.ReadUInt32();
            SectorUnkCount   = reader.ReadUInt32();
            PortalsCount     = reader.ReadUInt32();
            PortalLinksCount = reader.ReadUInt32();
            Unused_154h      = reader.ReadUInt32();
            Unused_158h      = reader.ReadUInt32();
            Unused_15Ch      = reader.ReadUInt32();
            VersionUnk2      = reader.ReadUInt32();
            Unused_164h      = reader.ReadUInt32();
            Unused_168h      = reader.ReadUInt32();
            Unused_16Ch      = reader.ReadUInt32();



            Vertices    = reader.ReadBlockAt <NavMeshList <NavMeshVertex> >(VerticesPointer);
            Indices     = reader.ReadBlockAt <NavMeshList <ushort> >(IndicesPointer);
            AdjPolys    = reader.ReadBlockAt <NavMeshList <NavMeshAdjPoly> >(AdjPolysPointer);
            Polys       = reader.ReadBlockAt <NavMeshList <NavMeshPoly> >(PolysPointer);
            SectorTree  = reader.ReadBlockAt <NavMeshSector>(SectorTreePointer);
            Portals     = reader.ReadStructsAt <NavMeshPortal>(PortalsPointer, PortalsCount);
            PortalLinks = reader.ReadUshortsAt(PortalLinksPointer, PortalLinksCount);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Unknown_0h  = reader.ReadSingle();
     this.Unknown_4h  = reader.ReadSingle();
     this.Unknown_8h  = reader.ReadSingle();
     this.Unknown_Ch  = reader.ReadUInt32();
     this.Unknown_10h = reader.ReadSingle();
     this.Unknown_14h = reader.ReadSingle();
     this.Unknown_18h = reader.ReadSingle();
     this.Unknown_1Ch = reader.ReadUInt32();
     this.Unknown_20h = reader.ReadSingle();
     this.Unknown_24h = reader.ReadSingle();
     this.Unknown_28h = reader.ReadSingle();
     this.Unknown_2Ch = reader.ReadUInt32();
     this.Unknown_30h = reader.ReadSingle();
     this.Unknown_34h = reader.ReadSingle();
     this.Unknown_38h = reader.ReadSingle();
     this.Unknown_3Ch = reader.ReadUInt32();
     this.Unknown_40h = reader.ReadSingle();
     this.Unknown_44h = reader.ReadSingle();
     this.Unknown_48h = reader.ReadSingle();
     this.Unknown_4Ch = reader.ReadUInt32();
     this.Unknown_50h = reader.ReadSingle();
     this.Unknown_54h = reader.ReadSingle();
     this.Unknown_58h = reader.ReadSingle();
     this.Unknown_5Ch = reader.ReadUInt32();
     this.Unknown_60h = reader.ReadSingle();
     this.Unknown_64h = reader.ReadSingle();
     this.Unknown_68h = reader.ReadSingle();
     this.Unknown_6Ch = reader.ReadUInt32();
     this.Unknown_70h = reader.ReadSingle();
     this.Unknown_74h = reader.ReadSingle();
     this.Unknown_78h = reader.ReadSingle();
     this.Unknown_7Ch = reader.ReadUInt32();
     this.Unknown_80h = reader.ReadSingle();
     this.Unknown_84h = reader.ReadSingle();
     this.Unknown_88h = reader.ReadSingle();
     this.Unknown_8Ch = reader.ReadUInt32();
     this.Unknown_90h = reader.ReadSingle();
     this.Unknown_94h = reader.ReadSingle();
     this.Unknown_98h = reader.ReadSingle();
     this.Unknown_9Ch = reader.ReadUInt32();
 }