1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 12:36:42 +00:00

Create placeholder WorldController class

This commit is contained in:
David Cernat 2016-11-15 18:42:52 +02:00
parent 8d2793401e
commit 3dcb8738c1
5 changed files with 43 additions and 1 deletions

View file

@ -96,7 +96,7 @@ add_openmw_dir (mwbase
inputmanager windowmanager statemanager 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 # Main executable

View file

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

View file

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

View file

@ -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()
{
}

View file

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