[Server] Use consistent order for includes

new-script-api
David Cernat 7 years ago
parent 1ee460bba8
commit 07d75abdf8

@ -3,9 +3,11 @@
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Actors.hpp"
#include "Script/LuaState.hpp"
#include "Networking.hpp"
#include "Actors.hpp"
#include "Cell.hpp"
#include "CellController.hpp"
#include "Player.hpp"

@ -2,13 +2,14 @@
// Created by koncord on 15.08.17.
//
#include "Books.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Script/LuaState.hpp"
#include "Player.hpp"
#include "Networking.hpp"
#include "Books.hpp"
#include "Player.hpp"
void Books::Init(LuaState &lua)
{
lua.getState()->new_usertype<Books>("Books",

@ -2,15 +2,15 @@
// Created by koncord on 18.02.17.
//
#include "Cell.hpp"
#include <iostream>
#include <components/openmw-mp/NetworkMessages.hpp>
#include <iostream>
#include "Script/EventController.hpp"
#include "Player.hpp"
#include "Networking.hpp"
#include "Cell.hpp"
#include "Player.hpp"
using namespace std;
Cell::Cell(ESM::Cell cell) : cell(cell)

@ -1,10 +1,11 @@
#include "CellController.hpp"
#include <iostream>
#include <apps/openmw-mp/Script/EventController.hpp>
#include "Networking.hpp"
#include "CellController.hpp"
#include "Cell.hpp"
#include "Player.hpp"
#include "Networking.hpp"
using namespace std;

@ -2,10 +2,10 @@
// Created by koncord on 25.08.17.
//
#include "CellState.hpp"
#include "Script/LuaState.hpp"
#include "CellState.hpp"
void CellState::Init(LuaState &lua)
{
lua.getState()->new_usertype<CellState>("CellState",

@ -2,13 +2,14 @@
// Created by koncord on 25.08.17.
//
#include "Cells.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Script/LuaState.hpp"
#include "NetActor.hpp"
#include "Networking.hpp"
#include "Cells.hpp"
#include "NetActor.hpp"
using namespace std;
void Cells::Init(LuaState &lua)

@ -2,13 +2,14 @@
// Created by koncord on 12.08.17.
//
#include "CharClass.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include <apps/openmw-mp/Script/LuaState.hpp>
#include "Player.hpp"
#include "Script/LuaState.hpp"
#include "Networking.hpp"
#include "CharClass.hpp"
#include "Player.hpp"
using namespace std;
void CharClass::Init(LuaState &lua)

@ -2,13 +2,14 @@
// Created by koncord on 15.08.17.
//
#include "Dialogue.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Script/LuaState.hpp"
#include "Player.hpp"
#include "Networking.hpp"
#include "Dialogue.hpp"
#include "Player.hpp"
void Dialogue::Init(LuaState &lua)
{
lua.getState()->new_usertype<Dialogue>("Dialogue",

@ -3,12 +3,13 @@
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Factions.hpp"
#include "Player.hpp"
#include "Script/LuaState.hpp"
#include "Networking.hpp"
#include "Factions.hpp"
#include "Player.hpp"
void Factions::Init(LuaState &lua)
{
lua.getState()->new_usertype<Factions>("Factions",

@ -3,9 +3,11 @@
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Networking.hpp"
#include "GUI.hpp"
#include "Player.hpp"
#include "Networking.hpp"
void GUI::Init(LuaState &lua)
{

@ -2,14 +2,17 @@
// Created by koncord on 12.08.17.
//
#include "Inventory.hpp"
#include <components/misc/stringops.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
#include <apps/openmw-mp/Script/LuaState.hpp>
#include <apps/openmw/mwworld/inventorystore.hpp>
#include <components/misc/stringops.hpp>
#include "NetActor.hpp"
#include "Script/LuaState.hpp"
#include "Networking.hpp"
#include "Inventory.hpp"
#include "NetActor.hpp"
using namespace std;
void Inventory::Init(LuaState &lua)

@ -2,17 +2,21 @@
// Created by koncord on 14.08.16.
//
#include <RakSleep.h>
#include <Getche.h>
#include <sstream>
#include <iostream>
#include <sstream>
#include <thread>
#include <Getche.h>
#include <RakPeerInterface.h>
#include "MasterClient.hpp"
#include <RakSleep.h>
#include <components/openmw-mp/Log.hpp>
#include <components/openmw-mp/Version.hpp>
#include <components/openmw-mp/Master/PacketMasterAnnounce.hpp>
#include "MasterClient.hpp"
#include "Networking.hpp"
#include "Players.hpp"
using namespace std;

@ -2,13 +2,13 @@
// Created by koncord on 25.08.17.
//
#include "NetActor.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/openmw-mp/Base/BaseNetCreature.hpp>
#include "Script/LuaState.hpp"
//#include "Player.hpp"
#include "Networking.hpp"
#include <components/openmw-mp/Base/BaseNetCreature.hpp>
#include "NetActor.hpp"
using namespace std;

@ -2,11 +2,12 @@
// Created by koncord on 12.01.16.
//
#include "Players.hpp"
#include <Script/EventController.hpp>
#include "processors/ProcessorInitializer.hpp"
#include <RakPeer.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <Kbhit.h>
#include <RakPeer.h>
#include <components/misc/stringops.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
@ -14,18 +15,18 @@
#include <components/openmw-mp/Version.hpp>
#include <components/openmw-mp/Packets/PacketPreInit.hpp>
#include <iostream>
//#include <Script/API/TimerAPI.hpp>
#include <chrono>
#include <thread>
#include <Script/EventController.hpp>
#include "processors/ProcessorInitializer.hpp"
#include "processors/PlayerProcessor.hpp"
#include "processors/ActorProcessor.hpp"
#include "processors/WorldProcessor.hpp"
#include "Networking.hpp"
#include "MasterClient.hpp"
#include "Cell.hpp"
#include "CellController.hpp"
#include "processors/PlayerProcessor.hpp"
#include "processors/ActorProcessor.hpp"
#include "processors/WorldProcessor.hpp"
#include "Players.hpp"
using namespace mwmp;
using namespace std;
@ -34,8 +35,6 @@ Networking *Networking::sThis = nullptr;
static int currentMpNum = 0;
Networking::Networking(RakNet::RakPeerInterface *peer) : mclient(nullptr)
{
sThis = this;

@ -3,9 +3,11 @@
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Networking.hpp"
#include "Object.hpp"
#include "Player.hpp"
#include "Networking.hpp"
using namespace std;

@ -3,8 +3,10 @@
//
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Player.hpp"
#include "Networking.hpp"
#include "Player.hpp"
#include "Inventory.hpp"
#include "Settings.hpp"
@ -490,6 +492,7 @@ std::tuple<int, int, float> Player::getSkill(unsigned short id) const
return make_tuple(0, 0, 0.0f);
const auto &skill = npcStats.mSkills[id];
return make_tuple(skill.mBase, skill.mCurrent, skill.mProgress);
}

@ -2,13 +2,14 @@
// Created by koncord on 25.08.17.
//
#include "Quests.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Script/LuaState.hpp"
#include "Player.hpp"
#include "Networking.hpp"
#include "Quests.hpp"
#include "Player.hpp"
void JournalItem::Init(LuaState &lua)
{
lua.getState()->new_usertype<JournalItem>("JournalItem",

@ -4,31 +4,36 @@
#include <iostream>
#include <cstdlib>
#include <boost/filesystem.hpp>
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
#include <components/misc/stringops.hpp>
#include <apps/openmw/mwworld/inventorystore.hpp>
#include <apps/openmw-mp/Networking.hpp>
#include <components/openmw-mp/Version.hpp>
#include <apps/openmw-mp/GUI.hpp>
#include <apps/openmw-mp/Dialogue.hpp>
#include <apps/openmw-mp/Factions.hpp>
#include <apps/openmw-mp/Quests.hpp>
#include <apps/openmw-mp/Spells.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/tokenizer.hpp>
#include <components/misc/stringops.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/openmw-mp/Version.hpp>
#include <apps/openmw/mwworld/inventorystore.hpp>
#include "LuaState.hpp"
#include "EventController.hpp"
#include "luaUtils.hpp"
#include "EventController.hpp"
#include "CommandController.hpp"
#include "../Inventory.hpp"
#include "../Settings.hpp"
#include "../Players.hpp"
#include "../Networking.hpp"
#include "../MasterClient.hpp"
#include "../Dialogue.hpp"
#include "../Factions.hpp"
#include "../GUI.hpp"
#include "../Inventory.hpp"
#include "../Players.hpp"
#include "../Quests.hpp"
#include "../Settings.hpp"
#include "../Spells.hpp"
using namespace std;

@ -2,12 +2,13 @@
// Created by koncord on 12.08.17.
//
#include "Settings.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Player.hpp"
#include "Script/LuaState.hpp"
#include "Networking.hpp"
#include "Settings.hpp"
#include "Player.hpp"
void GameSettings::Init(LuaState &lua)
{

@ -2,13 +2,14 @@
// Created by koncord on 25.08.17.
//
#include "Spells.hpp"
#include <components/openmw-mp/NetworkMessages.hpp>
#include "Script/LuaState.hpp"
#include "Player.hpp"
#include "Networking.hpp"
#include "Spells.hpp"
#include "Player.hpp"
void Effect::Init(LuaState &lua)
{
lua.getState()->new_usertype<Effect>("Effect",

@ -4,10 +4,11 @@
#include <chrono>
#include <memory>
#include "Timer.hpp"
#include "Script/LuaState.hpp"
#include "Timer.hpp"
using namespace std;
void Timer::Init(LuaState &lua)

Loading…
Cancel
Save