WIP added an event to become a server. changed xml file.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef Events_BecomeServer_h__
|
||||
#define Events_BecomeServer_h__
|
||||
|
||||
#include "Core/EventBroker.h"
|
||||
|
||||
namespace Events
|
||||
{
|
||||
|
||||
struct BecomeServer : public Event { };
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
@@ -70,6 +70,8 @@ private:
|
||||
bool m_IsServer = false;
|
||||
|
||||
int parseArgs(int argc, char* argv[]);
|
||||
EventRelay<Game, Events::BecomeServer> m_EBecomeServer;
|
||||
bool OnBecomeServer(const Events::BecomeServer& e);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "Input/EInputCommand.h"
|
||||
#include "Network/ESearchForServers.h"
|
||||
#include "Network/EConnectRequest.h"
|
||||
#include "Network/EBecomeServer.h"
|
||||
|
||||
|
||||
class MainMenuSystem : public ImpureSystem
|
||||
|
||||
Reference in New Issue
Block a user