ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Flatline_Packet.c
Revision: 876
Committed: Sat Jun 1 20:29:59 2013 UTC (12 years, 4 months ago) by gumby
Content type: text/x-csrc
File size: 619 byte(s)
Log Message:
Daodan pass 1

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 }