ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSVC/Flatline_Packet.c
Revision: 584
Committed: Mon Jan 24 06:45:07 2011 UTC (14 years, 8 months ago) by gumby
Content type: text/x-csrc
File size: 619 byte(s)
Log Message:
Almost working rework

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 }