Example #1
0
 public void Deserialize(IDataReader reader)
 {
     FightId              = reader.ReadInt();
     FightType            = reader.ReadByte();
     FightStart           = (UInt32)reader.ReadInt();
     FightSpectatorLocked = reader.ReadBoolean();
     FightTeams           = new FightTeamLightInformations[2];
     for (var i = 0; i < FightTeams.Length; i++)
     {
         (FightTeams[i] = new FightTeamLightInformations()).Deserialize(reader);
     }
     FightTeamsOptions = new FightOptionsInformations[2];
     for (var i = 0; i < FightTeamsOptions.Length; i++)
     {
         (FightTeamsOptions[i] = new FightOptionsInformations()).Deserialize(reader);
     }
 }
Example #2
0
 public void Deserialize(IDataReader reader)
 {
     FightId    = reader.ReadInt();
     FightType  = reader.ReadByte();
     FightTeams = new FightTeamInformations[reader.ReadShort()];
     for (var i = 0; i < FightTeams.Length; i++)
     {
         (FightTeams[i] = new FightTeamInformations()).Deserialize(reader);
     }
     FightTeamsPositions = new UInt16[reader.ReadShort()];
     for (var i = 0; i < FightTeamsPositions.Length; i++)
     {
         FightTeamsPositions[i] = (UInt16)reader.ReadVarShort();
     }
     FightTeamsOptions = new FightOptionsInformations[reader.ReadShort()];
     for (var i = 0; i < FightTeamsOptions.Length; i++)
     {
         (FightTeamsOptions[i] = new FightOptionsInformations()).Deserialize(reader);
     }
 }