ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/flatline/Flatline_Packet.c
Revision: 877
Committed: Sun Jun 2 11:25:34 2013 UTC (12 years, 4 months ago) by alloc
Content type: text/x-csrc
File size: 619 byte(s)
Log Message:
Daodan: Moved flatline to subfolder, flatline enabled through patch "flatline"

File Contents

# Content
1 #include "Flatline_Packet.h"
2
3
4 //Always keep this mirrored with the PFlags
5 uint8_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
21 uint16_t FLpData_PartSize( uint8_t e)
22 {
23 if( e >= PFlag_Max ) return 0;
24 return sizes[e];
25 }