1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:19:55 +00:00
openmw-tes3mp/apps/openmw/mwmp/Main.hpp

47 lines
1.2 KiB
C++
Raw Normal View History

#include <apps/openmw/mwworld/ptr.hpp>
2016-08-24 08:15:34 +00:00
#include <boost/program_options.hpp>
#include "Networking.hpp"
#include "LocalPlayer.hpp"
#include "GUIController.hpp"
namespace mwmp
{
class Main
{
public:
Main();
~Main();
2016-08-24 08:15:34 +00:00
static void OptionsDesc(boost::program_options::options_description *desc);
static void Configure(const boost::program_options::variables_map &variables);
2016-09-18 03:54:45 +00:00
static void Init(std::vector<std::string> &content);
static void PostInit();
static void Destroy();
static const Main &get();
static void Frame(float dt);
static void PressedKey(int key);
static bool isValidPacketScript(std::string script);
Networking *getNetworking() const;
LocalPlayer *getLocalPlayer() const;
GUIController *getGUIController() const;
void UpdateWorld(float dt) const;
private:
2016-08-24 08:15:34 +00:00
static std::string addr;
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;
};
}