public override void Deserialize(ICustomDataReader reader)
        {
            this.CollectorId = reader.ReadDouble();
            int AllyCharactersInformationsLen = reader.ReadShort();

            AllyCharactersInformations = new CharacterMinimalPlusLookInformations[AllyCharactersInformationsLen];
            for (int i = 0; i < AllyCharactersInformationsLen; i++)
            {
                this.AllyCharactersInformations[i] = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadShort());
                this.AllyCharactersInformations[i].Deserialize(reader);
            }
            int EnemyCharactersInformationsLen = reader.ReadShort();

            EnemyCharactersInformations = new CharacterMinimalPlusLookInformations[EnemyCharactersInformationsLen];
            for (int i = 0; i < EnemyCharactersInformationsLen; i++)
            {
                this.EnemyCharactersInformations[i] = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadShort());
                this.EnemyCharactersInformations[i].Deserialize(reader);
            }
        }
Exemplo n.º 2
0
        public override void Deserialize(ICustomDataReader reader)
        {
            this.SubAreaId          = reader.ReadVarShort();
            this.WaitingForHelpInfo = new ProtectedEntityWaitingForHelpInfo();
            this.WaitingForHelpInfo.Deserialize(reader);
            int AllyCharactersInformationsLen = reader.ReadShort();

            AllyCharactersInformations = new CharacterMinimalPlusLookInformations[AllyCharactersInformationsLen];
            for (int i = 0; i < AllyCharactersInformationsLen; i++)
            {
                this.AllyCharactersInformations[i] = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadShort());
                this.AllyCharactersInformations[i].Deserialize(reader);
            }
            int EnemyCharactersInformationsLen = reader.ReadShort();

            EnemyCharactersInformations = new CharacterMinimalPlusLookInformations[EnemyCharactersInformationsLen];
            for (int i = 0; i < EnemyCharactersInformationsLen; i++)
            {
                this.EnemyCharactersInformations[i] = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadShort());
                this.EnemyCharactersInformations[i].Deserialize(reader);
            }
        }
 public override void Deserialize(ICustomDataReader reader)
 {
     this.FightId    = reader.ReadDouble();
     this.PlayerInfo = new CharacterMinimalPlusLookInformations();
     this.PlayerInfo.Deserialize(reader);
 }
 public GuildFightPlayersHelpersJoinMessage InitGuildFightPlayersHelpersJoinMessage(double FightId, CharacterMinimalPlusLookInformations PlayerInfo)
 {
     this.FightId    = FightId;
     this.PlayerInfo = PlayerInfo;
     return(this);
 }