Some old code removed; enable inclusion from outside UQM.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2489 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -44,6 +44,7 @@ typedef enum PacketType {
|
|||||||
} PacketType;
|
} PacketType;
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef PACKET_H_STANDALONE
|
||||||
#include "netconnection.h"
|
#include "netconnection.h"
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
@@ -65,6 +66,7 @@ typedef struct {
|
|||||||
} PacketTypeData;
|
} PacketTypeData;
|
||||||
|
|
||||||
extern PacketTypeData packetTypeData[];
|
extern PacketTypeData packetTypeData[];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// When adding new packets, be sure to have all the fields properly aligned,
|
// When adding new packets, be sure to have all the fields properly aligned,
|
||||||
@@ -207,16 +209,6 @@ typedef struct {
|
|||||||
uint16 padding;
|
uint16 padding;
|
||||||
} Packet_SelectShip;
|
} Packet_SelectShip;
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
PK_THRUST,
|
|
||||||
PK_LEFT,
|
|
||||||
PK_RIGHT,
|
|
||||||
PK_FIRE,
|
|
||||||
PK_SPECIAL,
|
|
||||||
|
|
||||||
PK_NUM
|
|
||||||
} PacketKey;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PacketHeader header;
|
PacketHeader header;
|
||||||
uint8 state; /* Actually BATTLE_INPUT_STATE */
|
uint8 state; /* Actually BATTLE_INPUT_STATE */
|
||||||
@@ -236,6 +228,7 @@ typedef struct {
|
|||||||
} Packet_Checksum;
|
} Packet_Checksum;
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef PACKET_H_STANDALONE
|
||||||
void Packet_delete(Packet *packet);
|
void Packet_delete(Packet *packet);
|
||||||
Packet_Init *Packet_Init_create(void);
|
Packet_Init *Packet_Init_create(void);
|
||||||
Packet_Ping *Packet_Ping_create(uint32 id);
|
Packet_Ping *Packet_Ping_create(uint32 id);
|
||||||
@@ -255,6 +248,7 @@ Packet_SelectShip *Packet_SelectShip_create(uint16 ship);
|
|||||||
Packet_BattleInput *Packet_BattleInput_create(uint8 state);
|
Packet_BattleInput *Packet_BattleInput_create(uint8 state);
|
||||||
Packet_FrameCount *Packet_FrameCount_create(uint32 frameCount);
|
Packet_FrameCount *Packet_FrameCount_create(uint32 frameCount);
|
||||||
Packet_Checksum *Packet_Checksum_create(uint32 frameNr, uint32 checksum);
|
Packet_Checksum *Packet_Checksum_create(uint32 frameNr, uint32 checksum);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* _PACKET_H */
|
#endif /* _PACKET_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user