Reverted some of the changes, stable

This commit is contained in:
Kayne Ruse
2014-04-15 23:21:28 +10:00
parent 9bacfb1424
commit 6d32d44fa3
9 changed files with 84 additions and 187 deletions
+4 -1
View File
@@ -31,7 +31,7 @@
#pragma pack(push, 0)
//TODO: update the code here to match the entity code
//TODO: rename to serial packet
union NetworkPacket {
//types of packets
enum class Type {
@@ -85,6 +85,7 @@ union NetworkPacket {
}serverInfo;
//information about the client
//TODO: login credentials
struct ClientInformation {
Metadata meta;
int index;
@@ -95,6 +96,8 @@ union NetworkPacket {
Metadata meta;
int clientIndex;
int playerIndex;
//TODO: should probably move these into the client info
//TODO: these might actually do better during the login system
char handle[PACKET_STRING_SIZE];
char avatar[PACKET_STRING_SIZE];
Vector2 position;