示例#1
0
        /// <summary>
        /// Encodes this instance.
        /// </summary>
        internal void Encode(ByteWriter Packet)
        {
            Packet.AddInt(this.HighID);
            Packet.AddInt(this.LowID);

            Packet.AddInt(0); // Shield
            Packet.AddInt(0); // Guard
            Packet.AddInt(365 * 86400);

            Packet.AddCompressableString(this.HomeJSON.ToString());
            Packet.AddCompressableString("{}");
            Packet.AddCompressableString("{}");
        }
示例#2
0
        /// <summary>
        /// Encodes this instance.
        /// </summary>
        /// <param name="Packet">The byte stream.</param>
        internal void Encode(ByteWriter Packet)
        {
            Packet.AddLong(this.HighID, this.LowID);

            Packet.AddString(this.HomeBaseLevel);
            Packet.AddString(this.LevelAuthorName);

            Packet.AddCompressableString(this.Save().ToString(Formatting.None));
        }