Exemplo n.º 1
0
        internal override void Read1(IBitReader reader)
        {
            base.Read1(reader);
            var hasWaypoint = reader.ReadBoolean();

            if (hasWaypoint == true)
            {
                this._CurrentWaypoint = reader.ReadVector3();
            }
        }
Exemplo n.º 2
0
 public void Read(IBitReader reader, uint baseVersion)
 {
     this._Unknown1 = reader.ReadVector3();
     this._Unknown2 = reader.ReadVector3();
     this._Unknown3 = reader.ReadVector3();
     this._Unknown4 = reader.ReadVector3();
     this._Unknown5 = reader.ReadBoolean();
     if (this._Unknown5 == true)
     {
         this._Unknown6 = reader.ReadUInt32();
         this._Unknown7 = reader.ReadUInt32();
     }
     if (baseVersion > 9)
     {
         var vehicleCount = reader.ReadUInt32();
         this._Vehicles.Clear();
         for (uint i = 0; i < vehicleCount; i++)
         {
             var vehicle = new Data.PartyMemberVehicleData();
             vehicle.Read(reader);
             this._Vehicles.Add(vehicle);
         }
     }
 }
Exemplo n.º 3
0
        public override void Read(IBitReader reader, ushort version)
        {
            base.Read(reader, version);

            this._Unknown1 = reader.ReadGuid();
            this._Unknown2 = reader.ReadGuid();

            var sliderCount = reader.ReadUInt32();
            var sliderGuids = new Guid[sliderCount];

            for (uint i = 0; i < sliderCount; i++)
            {
                sliderGuids[i] = reader.ReadGuid();
            }
            var sliderValues = new float[sliderCount];

            for (uint i = 0; i < sliderCount; i++)
            {
                sliderValues[i] = reader.ReadFloat32();
            }
            this._SliderValues.Clear();
            for (uint i = 0; i < sliderCount; i++)
            {
                var instance = new SliderData();
                instance.Guid  = sliderGuids[i];
                instance.Value = sliderValues[i];
                this._SliderValues.Add(instance);
            }

            this._Unknown4      = reader.ReadUInt8();
            this._HeadTextureId = version < 4 ? 0 : reader.ReadUInt32();

            var unknown5Count = reader.ReadUInt32();

            this._Unknown5.Clear();
            for (uint i = 0; i < unknown5Count; i++)
            {
                this._Unknown5.Add(reader.ReadUInt32());
            }

            var unknown6Count = reader.ReadUInt32();

            this._Unknown6.Clear();
            for (uint i = 0; i < unknown6Count; i++)
            {
                this._Unknown6.Add(reader.ReadUInt32());
            }

            var unknown7Count = reader.ReadUInt32();

            this._Unknown7.Clear();
            for (uint i = 0; i < unknown7Count; i++)
            {
                this._Unknown7.Add(reader.ReadVector3());
            }

            var boneCount = reader.ReadUInt32();

            this._Bones.Clear();
            for (uint i = 0; i < boneCount; i++)
            {
                this._Bones.Add(reader.ReadBytes(12));
            }
        }