Example #1
0
 public FightCommonInformations(int fightId, sbyte fightType, FightTeamInformations[] fightTeams, short[] fightTeamsPositions, FightOptionsInformations[] fightTeamsOptions)
 {
     FightId = fightId;
     FightType = fightType;
     FightTeams = fightTeams;
     FightTeamsPositions = fightTeamsPositions;
     FightTeamsOptions = fightTeamsOptions;
 }
 public FightExternalInformations(int fightId, sbyte fightType, int fightStart, bool fightSpectatorLocked, FightTeamLightInformations[] fightTeams, FightOptionsInformations[] fightTeamsOptions)
 {
     FightId = fightId;
     FightType = fightType;
     FightStart = fightStart;
     FightSpectatorLocked = fightSpectatorLocked;
     FightTeams = fightTeams;
     FightTeamsOptions = fightTeamsOptions;
 }
Example #3
0
 public virtual void Deserialize(BigEndianReader reader)
 {
     FightId = reader.ReadInt();
     FightType = reader.ReadSByte();
     var limit = reader.ReadUShort();
     FightTeams = new FightTeamInformations[limit];
     for (int i = 0; i < limit; i++)
     {
         FightTeams[i] = new FightTeamInformations();
         FightTeams[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     FightTeamsPositions = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         FightTeamsPositions[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     FightTeamsOptions = new FightOptionsInformations[limit];
     for (int i = 0; i < limit; i++)
     {
         FightTeamsOptions[i] = new FightOptionsInformations();
         FightTeamsOptions[i].Deserialize(reader);
     }
 }
 public virtual void Deserialize(BigEndianReader reader)
 {
     FightId = reader.ReadInt();
     FightType = reader.ReadSByte();
     FightStart = reader.ReadInt();
     FightSpectatorLocked = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     FightTeams = new FightTeamLightInformations[limit];
     for (int i = 0; i < limit; i++)
     {
         FightTeams[i] = new FightTeamLightInformations();
         FightTeams[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     FightTeamsOptions = new FightOptionsInformations[limit];
     for (int i = 0; i < limit; i++)
     {
         FightTeamsOptions[i] = new FightOptionsInformations();
         FightTeamsOptions[i].Deserialize(reader);
     }
 }