@Override
    public void deserialize(Buffer buf) {
        rank = buf.readShort();
        if (rank < 0 || rank > 2300)
            throw new RuntimeException("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0 || rank > 2300");
        bestDailyRank = buf.readShort();
        if (bestDailyRank < 0 || bestDailyRank > 2300)
            throw new RuntimeException("Forbidden value on bestDailyRank = " + bestDailyRank + ", it doesn't respect the following condition : bestDailyRank < 0 || bestDailyRank > 2300");
        bestRank = buf.readShort();
        if (bestRank < 0 || bestRank > 2300)
            throw new RuntimeException("Forbidden value on bestRank = " + bestRank + ", it doesn't respect the following condition : bestRank < 0 || bestRank > 2300");
        victoryCount = buf.readShort();
        if (victoryCount < 0)
            throw new RuntimeException("Forbidden value on victoryCount = " + victoryCount + ", it doesn't respect the following condition : victoryCount < 0");
        arenaFightcount = buf.readShort();
        if (arenaFightcount < 0)
            throw new RuntimeException("Forbidden value on arenaFightcount = " + arenaFightcount + ", it doesn't respect the following condition : arenaFightcount < 0");
    }