[Client] Delineate tes3mp-only code more clearly, part 2

0.6.1
David Cernat 8 years ago
parent 44476248b7
commit a82646a130

@ -3,11 +3,19 @@
#include <MyGUI_InputManager.h>
#include <MyGUI_Button.h>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include <components/openmw-mp/Log.hpp>
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
#include "../mwmp/CellController.hpp"
/*
End of tes3mp addition
*/
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"

@ -1,10 +1,18 @@
#include "hud.hpp"
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
#include "../mwmp/LocalPlayer.hpp"
#include "../mwworld/cellstore.hpp"
/*
End of tes3mp addition
*/
#include <MyGUI_RenderManager.h>
#include <MyGUI_ProgressBar.h>

@ -16,11 +16,19 @@
#include <components/settings/settings.hpp>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
#include "../mwmp/LocalPlayer.hpp"
#include "../mwworld/cellstore.hpp"
/*
End of tes3mp addition
*/
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"

@ -211,8 +211,14 @@ namespace MWGui
if (state==MWBase::StateManager::State_Running)
buttons.push_back("return");
/* Disabled by tes3mp
/*
Start of tes3mp change (major)
In multiplayer, the main menu should not have options for starting, loading or saving the game,
so they have been removed
*/
/*
buttons.push_back("newgame");
if (state==MWBase::StateManager::State_Running &&
@ -225,6 +231,10 @@ namespace MWGui
buttons.push_back("loadgame");
*/
/*
End of tes3mp change (major)
*/
buttons.push_back("options");
if (state==MWBase::StateManager::State_NoGame)

@ -4,6 +4,17 @@
#include <MyGUI_Button.h>
#include <MyGUI_ScrollView.h>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/LocalPlayer.hpp"
/*
End of tes3mp addition
*/
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/soundmanager.hpp"
@ -17,9 +28,6 @@
#include "../mwmechanics/creaturestats.hpp"
#include "../mwmechanics/actorutil.hpp"
#include "../mwmp/Main.hpp"
#include "../mwmp/LocalPlayer.hpp"
namespace MWGui
{
const int SpellBuyingWindow::sLineHeight = 18;

@ -6,8 +6,16 @@
#include <components/esm/records.hpp>
#include <components/widgets/list.hpp>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/LocalPlayer.hpp"
/*
End of tes3mp addition
*/
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/soundmanager.hpp"

@ -6,6 +6,17 @@
#include <components/settings/settings.hpp>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include"../mwmp/Main.hpp"
#include"../mwmp/LocalPlayer.hpp"
/*
End of tes3mp addition
*/
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
@ -24,9 +35,6 @@
#include "confirmationdialog.hpp"
#include "spellview.hpp"
#include"../mwmp/Main.hpp"
#include"../mwmp/LocalPlayer.hpp"
namespace MWGui
{

@ -910,17 +910,37 @@ namespace MWInput
}
void InputManager::quickLoad() {
/* Disabled by tes3mp
/*
Start of tes3mp change (major)
It should not be possible to quickload the game in multiplayer, so it has been disabled
*/
/*
if (!MyGUI::InputManager::getInstance().isModalAny())
MWBase::Environment::get().getStateManager()->quickLoad();
*/
/*
End of tes3mp change (major)
*/
}
void InputManager::quickSave() {
/* Disabled by tes3mp
/*
Start of tes3mp change (major)
It should not be possible to quicksave the game in multiplayer, so it has been disabled
*/
/*
if (!MyGUI::InputManager::getInstance().isModalAny())
MWBase::Environment::get().getStateManager()->quickSave();
*/
/*
End of tes3mp change (major)
*/
}
void InputManager::toggleSpell()
{

@ -1,8 +1,16 @@
#include "security.hpp"
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
/*
End of tes3mp addition
*/
#include "../mwworld/cellstore.hpp"

@ -3,9 +3,17 @@
#include <stdexcept>
#include <limits>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
/*
End of tes3mp addition
*/
#include "../mwworld/cellstore.hpp"
#include "../mwworld/class.hpp"

@ -6,8 +6,16 @@
#include <MyGUI_LanguageManager.h>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/LocalPlayer.hpp"
/*
End of tes3mp addition
*/
#include <components/compiler/extensions.hpp>
#include <components/compiler/opcodes.hpp>

@ -1,7 +1,15 @@
#include "dialogueextensions.hpp"
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/LocalPlayer.hpp"
/*
End of tes3mp addition
*/
#include <components/compiler/extensions.hpp>
#include <components/compiler/opcodes.hpp>

@ -10,10 +10,18 @@
#include <components/esm/cellid.hpp>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include <components/openmw-mp/Log.hpp>
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
/*
End of tes3mp addition
*/
#include "../mwworld/esmstore.hpp"

@ -2,9 +2,17 @@
#include <cstdlib>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
/*
End of tes3mp addition
*/
#include <components/compiler/extensions.hpp>
#include <components/compiler/opcodes.hpp>

@ -1,8 +1,16 @@
#include "extensions.hpp"
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
/*
End of tes3mp addition
*/
#include <components/compiler/extensions.hpp>
#include <components/compiler/opcodes.hpp>

@ -1,8 +1,17 @@
#include <iostream>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include <components/openmw-mp/Log.hpp>
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
/*
End of tes3mp addition
*/
#include <components/sceneutil/positionattitudetransform.hpp>
@ -14,7 +23,6 @@
#include <components/interpreter/interpreter.hpp>
#include <components/interpreter/runtime.hpp>
#include <components/interpreter/opcodes.hpp>
#include <components/openmw-mp/Log.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"

@ -1,11 +1,19 @@
#include "actiontake.hpp"
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include <components/openmw-mp/Log.hpp>
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/WorldEvent.hpp"
#include "../mwmp/LocalPlayer.hpp"
#include "../mwworld/cellstore.hpp"
/*
End of tes3mp addition
*/
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"

@ -3,8 +3,16 @@
#include <limits>
#include <iostream>
/*
Start of tes3mp addition
Include additional headers for multiplayer purposes
*/
#include "../mwmp/Main.hpp"
#include "../mwmp/LocalPlayer.hpp"
/*
End of tes3mp addition
*/
#include <components/loadinglistener/loadinglistener.hpp>
#include <components/misc/resourcehelpers.hpp>

@ -10,6 +10,7 @@
Include additional headers for multiplayer purposes
*/
#include <components/openmw-mp/Log.hpp>
#include "../mwmp/Main.hpp"
#include "../mwmp/Networking.hpp"
#include "../mwmp/DedicatedPlayer.hpp"
@ -33,7 +34,6 @@
#include <components/resource/resourcesystem.hpp>
#include <components/sceneutil/positionattitudetransform.hpp>
#include <components/openmw-mp/Log.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/soundmanager.hpp"

Loading…
Cancel
Save