public override void Encode(ChecksumEncoder encoder) { ByteStreamHelper.WriteDataReference(encoder, this.m_newUnitData); ByteStreamHelper.WriteDataReference(encoder, this.m_oldUnitData); base.Encode(encoder); }
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); }
public override void Encode(ByteStream stream) { stream.WriteVInt((int)this.StateType); switch (this.StateType) { case GameStateType.HOME: stream.WriteVInt(this.LayoutId); stream.WriteVInt(this.MapId); break; case GameStateType.NPC_ATTACK: case GameStateType.NPC_DUEL: ByteStreamHelper.WriteDataReference(stream, this.NpcData); break; case GameStateType.VISIT: stream.WriteLong(this.HomeId); stream.WriteVInt(this.VisitType); break; case GameStateType.CHALLENGE_ATTACK: stream.WriteLong(this.ChallengeHomeId); stream.WriteLong(this.ChallengeStreamId); stream.WriteLong(this.ChallengeAllianceId); stream.WriteBytes(this.ChallengeHomeJSON, this.ChallengeHomeJSON.Length); stream.WriteVInt(this.ChallengeMapId); break; } }
public override void Encode() { base.Encode(); this.m_stream.WriteLong(this.m_accountId); this.m_stream.WriteString(this.m_passToken); this.m_stream.WriteInt(this.m_clientMajorVersion); this.m_stream.WriteInt(0); this.m_stream.WriteInt(this.m_clientBuildVersion); this.m_stream.WriteString(this.m_resourceSha); this.m_stream.WriteString(this.m_udid); this.m_stream.WriteString(this.m_openUDID); this.m_stream.WriteString(this.m_macAddress); this.m_stream.WriteString(this.m_device); ByteStreamHelper.WriteDataReference(this.m_stream, this.m_preferredLanguage); this.m_stream.WriteString(this.m_preferredDeviceLanguage); this.m_stream.WriteString(this.m_adid); this.m_stream.WriteString(this.m_osVersion); this.m_stream.WriteBoolean(this.m_androidClient); this.m_stream.WriteStringReference(this.m_imei); this.m_stream.WriteStringReference(this.m_androidId); this.m_stream.WriteStringReference(""); this.m_stream.WriteBoolean(false); this.m_stream.WriteString(""); this.m_stream.WriteInt(this.m_scramblerSeed); this.m_stream.WriteVInt(this.m_appStore); this.m_stream.WriteStringReference(string.Empty); this.m_stream.WriteStringReference(string.Empty); this.m_stream.WriteStringReference(this.m_appVersion); this.m_stream.WriteStringReference(this.m_kunlunSSO); this.m_stream.WriteStringReference(this.m_kunlunUserId); this.m_stream.WriteVInt(0); }
public override void Encode(ChecksumEncoder encoder) { ByteStreamHelper.WriteDataReference(encoder, this.m_buyResourceData); encoder.WriteVInt(this.m_buyResourceCount); base.Encode(encoder); }
public override void Encode(ChecksumEncoder encoder) { encoder.WriteLong(this.m_streamId); ByteStreamHelper.WriteDataReference(encoder, this.m_unitData); encoder.WriteBoolean(this.m_quickDonate); base.Encode(encoder); }
public override void Encode(ByteStream stream) { stream.WriteVInt(this.ScoreGain); stream.WriteBoolean(this.Attacker); ByteStreamHelper.WriteDataReference(stream, this.PrevLeagueData); ByteStreamHelper.WriteDataReference(stream, this.LeagueData); }
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); }
public override void Encode() { base.Encode(); this.m_stream.WriteInt(this.m_unitData.GetCombatItemType()); ByteStreamHelper.WriteDataReference(this.m_stream, this.m_unitData); this.m_stream.WriteBoolean(this.m_quickDonate); }
public override void Encode(ByteStream stream) { base.Encode(stream); stream.WriteInt(this.m_badgeId); stream.WriteInt(this.m_memberCount); ByteStreamHelper.WriteDataReference(stream, this.m_originData); stream.WriteInt(this.m_expLevel); }
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); }
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 void Encode(ByteStream stream) { stream.WriteLong(this.m_avatarId); stream.WriteInt(this.m_donationData.Size()); for (int i = 0; i < this.m_donationData.Size(); i++) { ByteStreamHelper.WriteDataReference(stream, this.m_donationData[i]); stream.WriteInt(this.m_donationLevel[i]); } }
public override void Encode(ChecksumEncoder encoder) { base.Encode(encoder); encoder.WriteVInt(this.m_offerId); encoder.WriteString(this.m_transactionId); this.m_deliverableBundle.Encode(encoder); ByteStreamHelper.WriteDataReference(encoder, this.m_billingPackageData); }
public override void Encode(ChecksumEncoder encoder) { for (int i = 0; i < this.m_removeType.Size(); i++) { encoder.WriteInt(this.m_removeType[i]); ByteStreamHelper.WriteDataReference(encoder, this.m_unitsData[i]); encoder.WriteInt(this.m_unitsCount[i]); encoder.WriteInt(this.m_unitsUpgLevel[i]); } base.Encode(encoder); }
public override void Encode(ByteStream stream) { stream.WriteLong(this.MemberId); stream.WriteLong(this.StreamId); ByteStreamHelper.WriteDataReference(stream, this.Data); stream.WriteVInt(this.UpgradeLevel); stream.WriteBoolean(this.QuickDonate); stream.WriteBoolean(this.Success); stream.WriteString(this.MemberName); }
public override void Encode(ByteStream stream) { stream.WriteString(this.AllianceName); stream.WriteString(this.AllianceDescription); stream.WriteVInt((int)this.AllianceType); stream.WriteVInt(this.AllianceBadgeId); stream.WriteVInt(this.RequiredScore); stream.WriteVInt(this.RequiredDuelScore); stream.WriteVInt(this.WarFrequency); stream.WriteBoolean(this.PublicWarLog); stream.WriteBoolean(this.ArrangedWarEnabled); ByteStreamHelper.WriteDataReference(stream, this.OriginData); }
public override void Encode(ByteStream stream) { if (this.AccountId != null) { stream.WriteBoolean(true); stream.WriteLong(this.AccountId); } else { stream.WriteBoolean(false); } ByteStreamHelper.WriteDataReference(stream, this.ArgData); }
public override void Encode() { base.Encode(); this.m_stream.WriteString(this.m_allianceName); this.m_stream.WriteString(this.m_allianceDescription); this.m_stream.WriteInt(this.m_allianceBadgeId); this.m_stream.WriteInt(this.m_allianceType); this.m_stream.WriteInt(this.m_requiredScore); this.m_stream.WriteInt(this.m_requiredDuelScore); this.m_stream.WriteInt(this.m_warFrequency); ByteStreamHelper.WriteDataReference(this.m_stream, this.m_originData); this.m_stream.WriteBoolean(this.m_publicWarLog); this.m_stream.WriteBoolean(this.m_amicalWarEnabled); }
public override void Encode(ChecksumEncoder encoder) { int count = LogicMath.Min(this.m_position.Size(), 10); encoder.WriteInt(count); for (int i = 0; i < count; i++) { encoder.WriteInt(this.m_position[i].m_x); encoder.WriteInt(this.m_position[i].m_y); } ByteStreamHelper.WriteDataReference(encoder, this.m_buildingData); base.Encode(encoder); }
public override void Encode() { base.Encode(); this.m_stream.WriteString(this.m_searchString); this.m_stream.WriteInt(this.m_warFrequency); ByteStreamHelper.WriteDataReference(this.m_stream, this.m_originData); this.m_stream.WriteInt(this.m_minMemberCount); this.m_stream.WriteInt(this.m_maxMemberCount); this.m_stream.WriteInt(this.m_requiredScore); this.m_stream.WriteInt(this.m_requiredDuelScore); this.m_stream.WriteBoolean(this.m_openOnly); this.m_stream.WriteInt(0); this.m_stream.WriteInt(0); this.m_stream.WriteInt(this.m_minExpLevel); }
public override void Encode(ChecksumEncoder encoder) { encoder.WriteInt(this.m_resourceCount); ByteStreamHelper.WriteDataReference(encoder, this.m_resourceData); encoder.WriteInt(this.m_resource2Count); if (this.m_resource2Count > 0) { ByteStreamHelper.WriteDataReference(encoder, this.m_resource2Data); } if (this.m_command != null) { encoder.WriteBoolean(true); LogicCommandManager.EncodeCommand(encoder, this.m_command); } else { encoder.WriteBoolean(false); } base.Encode(encoder); }
public void Encode(ByteStream stream) { stream.WriteLong(this.m_allianceId); stream.WriteString(this.m_allianceName); stream.WriteInt(this.m_allianceBadgeId); stream.WriteInt((int)this.m_allianceType); stream.WriteInt(this.m_memberCount); stream.WriteInt(this.m_score); stream.WriteInt(this.m_duelScore); stream.WriteInt(this.m_requiredScore); stream.WriteInt(this.m_requiredDuelScore); stream.WriteInt(this.m_winWarCount); stream.WriteInt(this.m_lostWarCount); stream.WriteInt(this.m_drawWarCount); ByteStreamHelper.WriteDataReference(stream, this.m_localeData); stream.WriteInt(this.m_warFrequency); ByteStreamHelper.WriteDataReference(stream, this.m_originData); stream.WriteInt(this.m_expPoints); stream.WriteInt(this.m_expLevel); stream.WriteInt(this.m_consecutiveWinWarCount); stream.WriteBoolean(this.m_publicWarLog); stream.WriteInt(0); stream.WriteBoolean(this.m_amicalWarEnabled); }
public void Encode(ChecksumEncoder encoder) { ByteStreamHelper.WriteDataReference(encoder, this.m_data); encoder.WriteInt(this.m_count); }
public override void Encode(ByteStream stream) { ByteStreamHelper.WriteDataReference(stream, this.Data); stream.WriteVInt(this.UpgradeLevel); }
public void Encode(ChecksumEncoder encoder) { ByteStreamHelper.WriteDataReference(encoder, this.m_npcData); }
public override void Encode() { base.Encode(); ByteStreamHelper.WriteDataReference(this.m_stream, this.m_npcData); }
public override void Encode(ChecksumEncoder encoder) { ByteStreamHelper.WriteDataReference(encoder, this.m_achievementData); base.Encode(encoder); }
public override void Encode(ByteStream stream) { stream.WriteVInt(this.Type); ByteStreamHelper.WriteDataReference(stream, this.Data); stream.WriteVInt(this.Count); }