Example #1
0
        public override void Serialize(ICustomDataOutput writer)
        {
            writer.WriteShort(((short)(m_alliances.Count)));
            int alliancesIndex;

            for (alliancesIndex = 0; (alliancesIndex < m_alliances.Count); alliancesIndex = (alliancesIndex + 1))
            {
                AllianceInformations objectToSend = m_alliances[alliancesIndex];
                objectToSend.Serialize(writer);
            }
            writer.WriteShort(((short)(m_allianceNbMembers.Count)));
            int allianceNbMembersIndex;

            for (allianceNbMembersIndex = 0; (allianceNbMembersIndex < m_allianceNbMembers.Count); allianceNbMembersIndex = (allianceNbMembersIndex + 1))
            {
                writer.WriteVarUhShort(m_allianceNbMembers[allianceNbMembersIndex]);
            }
            writer.WriteShort(((short)(m_allianceRoundWeigth.Count)));
            int allianceRoundWeigthIndex;

            for (allianceRoundWeigthIndex = 0; (allianceRoundWeigthIndex < m_allianceRoundWeigth.Count); allianceRoundWeigthIndex = (allianceRoundWeigthIndex + 1))
            {
                writer.WriteVarUhInt(m_allianceRoundWeigth[allianceRoundWeigthIndex]);
            }
            writer.WriteShort(((short)(m_allianceMatchScore.Count)));
            int allianceMatchScoreIndex;

            for (allianceMatchScoreIndex = 0; (allianceMatchScoreIndex < m_allianceMatchScore.Count); allianceMatchScoreIndex = (allianceMatchScoreIndex + 1))
            {
                writer.WriteByte(m_allianceMatchScore[allianceMatchScoreIndex]);
            }
            m_allianceMapWinner.Serialize(writer);
            writer.WriteVarUhInt(m_allianceMapWinnerScore);
            writer.WriteVarUhInt(m_allianceMapMyAllianceScore);
            writer.WriteDouble(m_nextTickTime);
        }
 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     m_allianceInfos.Serialize(writer);
 }
 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     m_allianceInfos.Serialize(writer);
 }