mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:19:54 +00:00
1b259e2d33
Created Package system
46 lines
1,007 B
C++
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;
|
|
};
|
|
}
|