Ejemplo n.º 1
0
        public override void Deserialize(ICustomDataReader reader)
        {
            this.FightId   = reader.ReadVarShort();
            this.FightType = reader.ReadByte();
            int FightTeamsLen = reader.ReadShort();

            FightTeams = new FightTeamInformations[FightTeamsLen];
            for (int i = 0; i < FightTeamsLen; i++)
            {
                this.FightTeams[i] = ProtocolTypeManager.GetInstance <FightTeamInformations>(reader.ReadShort());
                this.FightTeams[i].Deserialize(reader);
            }
            int FightTeamsPositionsLen = reader.ReadShort();

            FightTeamsPositions = new short[FightTeamsPositionsLen];
            for (int i = 0; i < FightTeamsPositionsLen; i++)
            {
                this.FightTeamsPositions[i] = reader.ReadVarShort();
            }
            int FightTeamsOptionsLen = reader.ReadShort();

            FightTeamsOptions = new FightOptionsInformations[FightTeamsOptionsLen];
            for (int i = 0; i < FightTeamsOptionsLen; i++)
            {
                this.FightTeamsOptions[i] = new FightOptionsInformations();
                this.FightTeamsOptions[i].Deserialize(reader);
            }
        }
Ejemplo n.º 2
0
 public override void Deserialize(ICustomDataReader reader)
 {
     this.FightId = reader.ReadVarShort();
     this.Team    = new FightTeamInformations();
     this.Team.Deserialize(reader);
 }
Ejemplo n.º 3
0
 public GameFightUpdateTeamMessage InitGameFightUpdateTeamMessage(short FightId, FightTeamInformations Team)
 {
     this.FightId = FightId;
     this.Team    = Team;
     return(this);
 }