Ejemplo n.º 1
0
 public override void Encode(ChecksumEncoder encoder)
 {
     encoder.WriteInt(this.m_x);
     encoder.WriteInt(this.m_y);
     ByteStreamHelper.WriteDataReference(encoder, this.m_buildingData);
     base.Encode(encoder);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Encodes this instance.
 /// </summary>
 public override void Encode(ChecksumEncoder encoder)
 {
     encoder.WriteInt(this._x);
     encoder.WriteInt(this._y);
     encoder.WriteDataReference(this._buildingData);
     base.Encode(encoder);
 }
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._gameObjectId);
            encoder.WriteInt(this._villageType);

            base.Encode(encoder);
        }
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._gameObject1);
            encoder.WriteInt(this._gameObject2);

            base.Encode(encoder);
        }
Ejemplo n.º 5
0
        public override void Encode(ChecksumEncoder encoder)
        {
            base.Encode(encoder);

            encoder.WriteInt(this.m_offerId);
            encoder.WriteInt(this.m_offerState);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_lastLeagueRank);
            encoder.WriteInt(this.m_lastSeasonSeen);

            base.Encode(encoder);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_gameObjectId);
            encoder.WriteInt(this.m_mode);

            base.Encode(encoder);
        }
Ejemplo n.º 8
0
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_layoutId);
            encoder.WriteInt(this.m_layoutType);

            base.Encode(encoder);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            base.Encode(encoder);

            encoder.WriteInt(this.m_inputLayoutId);
            encoder.WriteInt(this.m_outputLayoutId);
        }
        /// <summary>
        /// Encodes in the specified stream.
        /// </summary>
        /// <param name="Stream">The stream.</param>
        public void Encode(ChecksumEncoder Stream)
        {
            Stream.WriteInt(this.HighId);
            Stream.WriteInt(this.LowId);
            Stream.WriteString(this.Name);
            Stream.EncodeData(this.Badge);

            Stream.WriteVInt(this.Type);
            Stream.WriteVInt(this.MembersCount);
            Stream.WriteVInt(this.Score);
            Stream.WriteVInt(this.RequiredScore);

            Stream.WriteVInt(0);
            Stream.WriteVInt(0);
            Stream.WriteVInt(0);
            Stream.WriteVInt(50);
            Stream.WriteVInt(this.Donations);
            Stream.WriteVInt(2);

            Stream.EncodeData(this.Locale);
            Stream.EncodeData(this.Region);

            Stream.WriteBoolean(false);

            if (false)
            {
                // TODO : Encode the clan event.
            }
        }
Ejemplo n.º 11
0
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_gameObjectId);
            encoder.WriteInt(this.m_unitType);
            ByteStreamHelper.WriteDataReference(encoder, this.m_unitData);

            base.Encode(encoder);
        }
Ejemplo n.º 12
0
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_layoutId);
            encoder.WriteInt(this.m_state);
            encoder.WriteBoolean(this.m_updateListener);

            base.Encode(encoder);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteBoolean(this.m_spellProduction);
            encoder.WriteInt(this.m_slotIdx);
            encoder.WriteInt(this.m_dragIdx);

            base.Encode(encoder);
        }
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._newShopItemsIndex);
            encoder.WriteInt(this._newShopItemsType);
            encoder.WriteInt(this._newShopItemsCount);

            base.Encode(encoder);
        }
Ejemplo n.º 15
0
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_gameObjectId);
            encoder.WriteInt(this.m_layout);
            encoder.WriteBoolean(this.m_draftMode);
            encoder.WriteBoolean(this.m_updateListener);

            base.Encode(encoder);
        }
Ejemplo n.º 16
0
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteString(this.m_senderName);
            encoder.WriteInt(this.m_unitData.GetCombatItemType());
            ByteStreamHelper.WriteDataReference(encoder, this.m_unitData);
            encoder.WriteInt(this.m_upgLevel);

            base.Encode(encoder);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_x);
            encoder.WriteInt(this.m_y);
            ByteStreamHelper.WriteDataReference(encoder, this.m_gameObjectData);
            encoder.WriteInt(this.m_upgradeLevel);

            base.Encode(encoder);
        }
Ejemplo n.º 18
0
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_x);
            encoder.WriteInt(this.m_y);
            ByteStreamHelper.WriteDataReference(encoder, this.m_data);
            encoder.WriteBoolean(this.m_allianceSpell);
            encoder.WriteInt(this.m_upgLevel);

            base.Encode(encoder);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(0);
            encoder.WriteInt(0);

            encoder.WriteInt(this.m_allianceExpLevel);
            encoder.WriteBoolean(this.m_callListener);

            base.Encode(encoder);
        }
Ejemplo n.º 20
0
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._x);
            encoder.WriteInt(this._y);
            encoder.WriteDataReference(this._data);
            encoder.WriteBoolean(this._allianceSpell);
            encoder.WriteInt(this._upgLevel);

            base.Encode(encoder);
        }
Ejemplo n.º 21
0
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteLong(this.m_allianceId);
            encoder.WriteString(this.m_allianceName);
            encoder.WriteInt(this.m_allianceBadgeId);
            encoder.WriteBoolean(this.m_allianceCreate);
            encoder.WriteInt(this.m_allianceExpLevel);

            base.Encode(encoder);
        }
        /// <summary>
        ///     Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this._gameObjectId);
            encoder.WriteInt(this._unitType);
            encoder.WriteDataReference(this._unitData);
            encoder.WriteInt(this._unitCount);
            encoder.WriteInt(this._slotId);

            base.Encode(encoder);
        }
        /// <summary>
        /// Encodes this instance.
        /// </summary>
        public override void Encode(ChecksumEncoder Stream)
        {
            Stream.WriteInt(this.HighId);
            Stream.WriteInt(this.LowId);
            Stream.WriteString(this.Name);
            Stream.EncodeData(this.BadgeData);
            Stream.WriteBoolean(this.Creation);

            base.Encode(Stream);
        }
        public void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteLong(this.m_accountId);
            encoder.WriteString(this.m_name);
            encoder.WriteInt(this.m_order);
            encoder.WriteInt(this.m_score);
            encoder.WriteInt(this.m_previousOrder);
            encoder.WriteInt(0);
            encoder.WriteInt(this.m_attackWinCount);
            encoder.WriteInt(this.m_attackLoseCount);
            encoder.WriteInt(this.m_defenseWinCount);
            encoder.WriteInt(this.m_defenseLoseCount);
            encoder.WriteLong(this.m_avatarId);
            encoder.WriteLong(this.m_homeId);

            if (this.m_allianceId != null)
            {
                encoder.WriteBoolean(true);
                encoder.WriteLong(this.m_allianceId);
                encoder.WriteString(this.m_allianceName);
                encoder.WriteInt(this.m_allianceBadgeId);
            }
            else
            {
                encoder.WriteBoolean(false);
            }

            encoder.WriteLong(new LogicLong(0, 0));
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_goldCount);
            encoder.WriteInt(this.m_elixirCount);
            encoder.WriteInt(this.m_bonusGoldCount);
            encoder.WriteInt(this.m_bonusElixirCount);
            encoder.WriteInt(0);
            encoder.WriteLong(this.m_matchId);

            base.Encode(encoder);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_gameObjectIds.Size());

            for (int i = 0; i < this.m_gameObjectIds.Size(); i++)
            {
                encoder.WriteInt(this.m_gameObjectIds[i]);
            }

            base.Encode(encoder);
        }
Ejemplo n.º 27
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 override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteBoolean(this._freeDiamonds);
            encoder.WriteInt(this._diamondsCount);
            encoder.WriteInt(this._billingPackageId);
            encoder.WriteBoolean(this._bundlePackage);
            encoder.WriteInt(this._source);
            encoder.WriteString(this._transactionId);

            base.Encode(encoder);
        }
        public override void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteInt(this.m_presetId);
            encoder.WriteInt(this.m_slots.Size());

            for (int i = 0; i < this.m_slots.Size(); i++)
            {
                this.m_slots[i].Encode(encoder);
            }

            base.Encode(encoder);
        }
Ejemplo n.º 30
0
        public virtual void Encode(ChecksumEncoder encoder)
        {
            encoder.WriteLong(this.m_homeId);

            encoder.WriteInt(this.m_shieldDurationSeconds);
            encoder.WriteInt(this.m_guardDurationSeconds);
            encoder.WriteInt(this.m_personalBreakSeconds);

            this.m_compressibleHomeJson.Encode(encoder);
            this.m_compressibleCalendarJson.Encode(encoder);
            this.m_compressibleGlobalJson.Encode(encoder);
        }