Last change
on this file since 878 was 877, checked in by alloc, 11 years ago |
Daodan: Moved flatline to subfolder, flatline enabled through patch "flatline"
|
File size:
619 bytes
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.