Create placeholder WorldController class

pull/112/merge
David Cernat 8 years ago
parent 8d2793401e
commit 3dcb8738c1

@ -96,7 +96,7 @@ add_openmw_dir (mwbase
inputmanager windowmanager statemanager
)
add_openmw_dir (mwmp DedicatedPlayer LocalPlayer Networking Main GUIChat GUILogin GUIController PlayerMarkerCollection GUIDialogList)
add_openmw_dir (mwmp DedicatedPlayer LocalPlayer Networking Main GUIChat GUILogin GUIController PlayerMarkerCollection GUIDialogList WorldController)
# Main executable

@ -64,6 +64,7 @@ Main::Main()
mNetworking = new Networking();
mLocalPlayer = new LocalPlayer();
mGUIController = new GUIController();
mWorldController = new WorldController();
//mLocalPlayer->CharGen(0, 4);
server = "mp.tes3mp.com";
@ -215,6 +216,11 @@ GUIController *Main::getGUIController() const
return mGUIController;
}
WorldController *Main::getWorldController() const
{
return mWorldController;
}
void Main::PressedKey(int key)
{
if (pMain == nullptr) return;

@ -3,6 +3,7 @@
#include "Networking.hpp"
#include "LocalPlayer.hpp"
#include "GUIController.hpp"
#include "WorldController.hpp"
namespace mwmp
{
@ -26,6 +27,7 @@ namespace mwmp
Networking *getNetworking() const;
LocalPlayer *getLocalPlayer() const;
GUIController *getGUIController() const;
WorldController *getWorldController() const;
void UpdateWorld(float dt) const;
@ -40,6 +42,7 @@ namespace mwmp
LocalPlayer *mLocalPlayer;
GUIController *mGUIController;
WorldController *mWorldController;
std::string server;
unsigned short port;
};

@ -0,0 +1,18 @@
#include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwworld/worldimp.hpp>
#include <components/openmw-mp/Log.hpp>
#include "WorldController.hpp"
#include "Main.hpp"
mwmp::WorldController::WorldController()
{
}
mwmp::WorldController::~WorldController()
{
}

@ -0,0 +1,15 @@
#ifndef OPENMW_WORLDCONTROLLER_HPP
#define OPENMW_WORLDCONTROLLER_HPP
namespace mwmp
{
class WorldController
{
public:
WorldController();
~WorldController();
};
}
#endif //OPENMW_WORLDCONTROLLER_HPP
Loading…
Cancel
Save