Added console server app. First try. Depends on qt for locale-specific stuff. Cannot start a game yet, only join is possible. Cannot run multiple games yet.
Not yet as service/daemon, because testing is easier with a simple console app.
This commit is contained in:
+9
-7
@@ -120,7 +120,6 @@ public:
|
||||
{
|
||||
int versionMajor;
|
||||
int versionMinor;
|
||||
PlayerType ptype;
|
||||
std::string playerName;
|
||||
std::string password;
|
||||
};
|
||||
@@ -145,9 +144,11 @@ class NetPacketJoinGameAck : public NetPacket
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
u_int32_t sessionId;
|
||||
u_int16_t yourPlayerUniqueId;
|
||||
GameData gameData;
|
||||
u_int32_t sessionId;
|
||||
u_int16_t yourPlayerUniqueId;
|
||||
PlayerType ptype;
|
||||
PlayerRights prights;
|
||||
GameData gameData;
|
||||
};
|
||||
|
||||
NetPacketJoinGameAck();
|
||||
@@ -170,9 +171,10 @@ class NetPacketPlayerJoined : public NetPacket
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
u_int16_t playerId;
|
||||
PlayerType ptype;
|
||||
std::string playerName;
|
||||
u_int16_t playerId;
|
||||
PlayerType ptype;
|
||||
PlayerRights prights;
|
||||
std::string playerName;
|
||||
};
|
||||
|
||||
NetPacketPlayerJoined();
|
||||
|
||||
Reference in New Issue
Block a user