示例#1
0
        /// <summary>
        /// Write data of the character into the stream for display him
        /// </summary>
        /// <param name="bigEndianWriter">Stream</param>
        public void EncodeToCharactersList(IO.BigEndianWriter buffer)
        {
            buffer.MarkShort(this.ID);
            {
                buffer.WriteByte(4);//Block type

                buffer.WriteLong(this.ID);
                buffer.WriteByte(0);
                buffer.WriteLong(this.Account);

                buffer.WriteBigString(this.Nickname);
                buffer.WriteShort((short)this.Breed);

                buffer.WriteByte((byte)this.Sex);
                buffer.WriteByte((byte)this.SkinColor);
                buffer.WriteByte((byte)this.HairColor);
                buffer.WriteByte((byte)this.PupilColor);
                buffer.WriteByte((byte)this.SkinColorFactor);
                buffer.WriteByte((byte)this.HairColorFactor);
                buffer.WriteByte((byte)this.Cloth);
                buffer.WriteByte((byte)this.Face);
                buffer.WriteShort((short)this.Title);

                buffer.WriteByte(0);//Stuff

                buffer.WriteByte(1);

                buffer.WriteLong(this.Experience);
                buffer.WriteShort(0);//Freepoints
                buffer.WriteShort(0);
                buffer.WriteShort(0);
                buffer.WriteInt(0);

                buffer.WriteInt(1);//Nation
            }
            buffer.EndMarkShort(this.ID, -2);
        }