예제 #1
0
void PacketJoinGame::write(PacketBuffer &buffer) {
    buffer.putInt(entityId);
    buffer.putUByte(gameMode);
    buffer.putByte(dimension);
    buffer.putUByte(difficulty);
    buffer.putUByte(maxPlayers);
    buffer.putString(levelType);
    buffer.putBool(reducedDebugInfo);
}
예제 #2
0
void PacketAnimation::write(PacketBuffer &buffer) {
    buffer.putVarInt(entityId);
    buffer.putUByte(animationId);
}