Example #1
0
 public void Read(GamePacketReader reader)
 {
     Vector = new Vector3(
         reader.ReadSingle(),
         reader.ReadSingle(),
         reader.ReadSingle());
 }
 public void Read(GamePacketReader reader)
 {
     Identity.Read(reader);
     DecorId          = reader.ReadULong();
     DecorType        = reader.ReadEnum <DecorType>(32u);
     DecorData        = reader.ReadUInt();
     HookBagIndex     = reader.ReadUInt();
     HookIndex        = reader.ReadUInt();
     PlotIndex        = reader.ReadUInt();
     Scale            = reader.ReadSingle();
     Position         = new Vector3(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
     Rotation         = new Quaternion(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
     DecorInfoId      = reader.ReadUInt();
     ActivePropUnitId = reader.ReadUInt();
     ParentDecorId    = reader.ReadULong();
     ColourShiftId    = reader.ReadUShort(14u);
 }
        public void Read(GamePacketReader reader)
        {
            CharacterCreationId = reader.ReadUInt();
            Name = reader.ReadWideString();
            Path = reader.ReadByte(3);

            uint customisationCount = reader.ReadUInt();

            for (uint i = 0u; i < customisationCount; i++)
            {
                Labels.Add(reader.ReadUInt());
            }
            for (uint i = 0u; i < customisationCount; i++)
            {
                Values.Add(reader.ReadUInt());
            }

            uint boneCount = reader.ReadUInt();

            for (uint i = 0u; i < boneCount; i++)
            {
                Bones.Add(reader.ReadSingle());
            }
        }