mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:49:56 +00:00
9ab77cb123
New Callback: OnGUIAction
40 lines
901 B
C++
40 lines
901 B
C++
#include <apps/openmw/mwworld/ptr.hpp>
|
|
#include "Networking.hpp"
|
|
#include "LocalPlayer.hpp"
|
|
#include "GUIController.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;
|
|
GUIController *getGUIConroller() 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;
|
|
|
|
GUIController *mGUIController;
|
|
|
|
std::string server;
|
|
unsigned short port;
|
|
};
|
|
}
|