1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 22:19:54 +00:00
openmw-tes3mp/apps/openmw/mwmp/Main.hpp
2016-07-07 23:50:48 +08:00

46 lines
1,007 B
C++

#include <apps/openmw/mwworld/ptr.hpp>
#include "Networking.hpp"
#include "LocalPlayer.hpp"
#include "GUIChat.hpp"
#include "GUILogin.hpp"
namespace mwmp
{
class Main
{
public:
Main();
~Main();
static void Create();
static void Destroy();
static const Main &get();
static void Frame(float dt);
static void PressedKey(int key);
Networking *getNetworking() const;
LocalPlayer *getLocalPlayer() const;
GUIChat *getChatBox() const;
GUILogin *getGUILogin() const;
void UpdateWorld(float dt) const;
private:
Main (const Main&);
///< not implemented
Main& operator= (const Main&);
///< not implemented
static Main *pMain;
Networking *mNetworking;
LocalPlayer *mLocalPlayer;
GUIChat *mChat;
GUILogin *mGUILogin;
std::string server;
unsigned short port;
int keySay;
int keyChatMode;
};
}