@Override
    public void deserialize(Buffer buf) {
        fightId = buf.readInt();
        fightType = buf.readByte();
        if (fightType < 0)
            throw new RuntimeException("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0");
        fightStart = buf.readInt();
        if (fightStart < 0)
            throw new RuntimeException("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0");
        fightSpectatorLocked = buf.readBoolean();
        fightTeams = new FightTeamLightInformations[2];
        for (int i = 0; i < 2; i++) {
            fightTeams[i] = new FightTeamLightInformations();
            fightTeams[i].deserialize(buf);
        }
        fightTeamsOptions = new FightOptionsInformations[2];
        for (int i = 0; i < 2; i++) {
            fightTeamsOptions[i] = new FightOptionsInformations();
            fightTeamsOptions[i].deserialize(buf);
        }
    }