Пример #1
0
 public override void Write()
 {
     _worldPacket.WritePackedGuid(CharGUID);
     _worldPacket.WriteUInt8(SexID);
     _worldPacket.WriteUInt8(SkinID);
     _worldPacket.WriteUInt8(HairColorID);
     _worldPacket.WriteUInt8(HairStyleID);
     _worldPacket.WriteUInt8(FacialHairStyleID);
     _worldPacket.WriteUInt8(FaceID);
     CustomDisplay.ForEach(id => _worldPacket.WriteUInt8(id));
     _worldPacket.WriteBits(CharName.GetByteCount(), 6);
     _worldPacket.FlushBits();
     _worldPacket.WriteString(CharName);
 }
Пример #2
0
        public override void Write()
        {
            _worldPacket.WritePackedGuid(CharGUID);
            _worldPacket.WriteUInt8(SexID);
            _worldPacket.WriteInt32(Customizations.Count);
            foreach (ChrCustomizationChoice customization in Customizations)
            {
                _worldPacket.WriteUInt32(customization.ChrCustomizationOptionID);
                _worldPacket.WriteUInt32(customization.ChrCustomizationChoiceID);
            }

            _worldPacket.WriteBits(CharName.GetByteCount(), 6);
            _worldPacket.FlushBits();
            _worldPacket.WriteString(CharName);
        }