@Override
    public void deserialize(Buffer buf) {
        super.deserialize(buf);
        deathState = buf.readByte();
        if (deathState < 0)
            throw new RuntimeException("Forbidden value on deathState = " + deathState + ", it doesn't respect the following condition : deathState < 0");
        deathCount = buf.readShort();
        if (deathCount < 0)
            throw new RuntimeException("Forbidden value on deathCount = " + deathCount + ", it doesn't respect the following condition : deathCount < 0");
        deathMaxLevel = buf.readUByte();
        if (deathMaxLevel < 1 || deathMaxLevel > 200)
            throw new RuntimeException("Forbidden value on deathMaxLevel = " + deathMaxLevel + ", it doesn't respect the following condition : deathMaxLevel < 1 || deathMaxLevel > 200");
    }