#pragma once #include #define PID_SB_HS_LOGIN 0x00 #define PID_CB_LOGIN_DISCONNECT 0x00 #define PID_CB_LOGIN_CRYPT_RQ 0x01 #define PID_CB_LOGIN_SUCCESS 0x02 #define PID_CB_LOGIN_SET_COMPRESSION 0x03 #define PID_SB_LOGIN_START 0x00 #define PID_SB_LOGIN_CRYPT_RESPONSE 0x01 #define PID_CB_PLAY_SPAWN_PLAYER 0x05 #define PID_CB_PLAY_SERVER_DIFFICULTY 0x0D #define PID_CB_PLAY_PLUGIN_MESSAGE 0x18 #define PID_CB_PLAY_UNLOAD_CHUNK 0x1D #define PID_CB_PLAY_CHUNK_DATA 0x20 #define PID_CB_PLAY_JOIN_GAME 0x23 #define PID_CB_PLAY_RESOURCE_PACK_SEND 0x34 #define PID_CB_PLAY_RESPAWN 0x35 #define PID_CB_PLAY_ENTITY_METADATA 0x3C #define PID_SB_PLAY_PLUGIN_MESSAGE 0x09 #define PID_SB_PLAY_POS_AND_VIEW 0x0E #define PID_SB_PLAY_RESOURCE_PACK_STAT 0x18 //#define extern const value_string sbpackettypes_handshake[]; extern const value_string cbpackettypes_slp[], sbpackettypes_slp[]; extern const value_string cbpackettypes_login[], sbpackettypes_login[]; extern const value_string cbpackettypes[], sbpackettypes[]; extern const value_string states[], difficulty_levels[], resourcepack_status[]; extern const value_string metadata_types[], direction[];