Beispiel #1
0
        public void Encode(ChecksumEncoder encoder)
        {
            this.m_clientAvatar.Encode(encoder);

            encoder.WriteBytes(this.m_compressedHomeJSON, this.m_compressedHomeJSON.Length);
            encoder.WriteInt(this.m_donations);
            encoder.WriteInt(this.m_donationsReceived);
            encoder.WriteInt(this.m_remainingSecsForWar);
            encoder.WriteBoolean(true);
            encoder.WriteInt(0);
        }
 /// <summary>
 ///     Encodes this instance.
 /// </summary>
 public void Encode(ChecksumEncoder encoder)
 {
     if (this._compressedData != null)
     {
         encoder.WriteBoolean(true);
         encoder.WriteBytes(this._compressedData, this._compressedData.Length);
     }
     else
     {
         encoder.WriteBoolean(false);
         encoder.WriteString(this._stringValue);
     }
 }
        public override void Encode(ChecksumEncoder encoder)
        {
            if (this.m_compressedHomeJSON != null)
            {
                encoder.WriteBoolean(true);
                encoder.WriteBytes(this.m_compressedHomeJSON, this.m_compressedHomeJSON.Length);
            }
            else
            {
                encoder.WriteBoolean(false);
            }

            base.Encode(encoder);
        }