source: Daodan/MSVC/Flatline_Packet.h@ 712

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

Almost working rework

File size: 1.3 KB
Line 
1#ifndef FLATLINE_PACKET_H
2#define FLATLINE_PACKET_H
3
4
5#include "bool.h"
6
7
8uint16_t FLpData_PartSize( uint8_t e);
9void FLsSendPlayerData();
10//void FLcReadPlayerData( flatline_packet* Packet, int16_t Size );
11
12typedef struct
13{
14 uint16_t ID;
15 uint16_t Size;
16 uint16_t UpdateFlags;
17 uint8_t data[255];
18} PlayerData;
19
20
21typedef struct {
22 uint32_t Actions1;
23 uint32_t Actions2;
24 float MouseDeltaX;
25 float MouseDeltaY;
26} PlayerInput;
27
28typedef struct {
29 float Facing;
30 float DesiredFacing;
31} PlayerFacing;
32
33typedef struct {
34 uint16_t Health;
35 uint16_t MaxHealth;
36} PlayerHealth;
37
38typedef struct {
39 uint16_t Score;
40 uint16_t Deaths;
41} PlayerScore;
42
43//Change this later to be misc info
44typedef struct {
45 uint16_t Frame;
46 uint16_t Ping;
47} PlayerFP;
48
49typedef struct {
50 uint8_t Ammo;
51 uint8_t Cells;
52 uint8_t Hypo;
53 uint8_t pad;
54 uint16_t Invis;
55 uint16_t Shield;
56} PlayerInventory;
57
58typedef struct {
59 uint16_t throwing;
60 uint16_t throwFrame;
61 char throwName[32];
62} PlayerThrowData;
63
64enum
65{
66 PFlag_None,
67 PFlag_Input,
68 PFlag_Facing,
69 PFlag_Health,
70 PFlag_Score, //TODO
71 PFlag_FramePing,
72 PFlag_Inventory, //TODO
73 PFlag_Class,
74 PFlag_Position,
75 PFlag_Animation,
76 PFlag_Throws,
77 PFlag_Max,
78 PFlag_AnimationWait,//Clients only!
79};
80
81
82
83#endif
Note: See TracBrowser for help on using the repository browser.