source: Daodan/MSVC/Flatline_Packet.c@ 833

Last change on this file since 833 was 584, checked in by gumby, 14 years ago

Almost working rework

File size: 619 bytes
RevLine 
[584]1#include "Flatline_Packet.h"
2
3
4//Always keep this mirrored with the PFlags
5uint8_t sizes[] =
6{
7 0,
8 sizeof(PlayerInput), //PFlag_Input,
9 sizeof(PlayerFacing), //PFlag_Facing,
10 sizeof(PlayerHealth), //PFlag_Health,
11 sizeof(PlayerScore), //PFlag_Score,
12 sizeof(PlayerFP), //PFlag_FramePing,
13 sizeof(PlayerInventory),//PFlag_Inventory,
14 32, //PFlag_Class,
15 12, //PFlag_Position
16 32, //PFlag_Animation,
17 sizeof(PlayerThrowData),//PFlag_Throws,
18};
19
20//please oh please name this better
21uint16_t FLpData_PartSize( uint8_t e)
22{
23 if( e >= PFlag_Max ) return 0;
24 return sizes[e];
25}
Note: See TracBrowser for help on using the repository browser.