#include "Flatline_Packet.h" //Always keep this mirrored with the PFlags uint8_t sizes[] = { 0, sizeof(PlayerInput), //PFlag_Input, sizeof(PlayerFacing), //PFlag_Facing, sizeof(PlayerHealth), //PFlag_Health, sizeof(PlayerScore), //PFlag_Score, sizeof(PlayerFP), //PFlag_FramePing, sizeof(PlayerInventory),//PFlag_Inventory, 32, //PFlag_Class, 12, //PFlag_Position 32, //PFlag_Animation, sizeof(PlayerThrowData),//PFlag_Throws, }; //please oh please name this better uint16_t FLpData_PartSize( uint8_t e) { if( e >= PFlag_Max ) return 0; return sizes[e]; }