1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 08:07:46 +00:00

Rearranged includes for potential speed increases

This commit is contained in:
Mordred Admin 2018-02-28 10:26:03 +01:00
parent fae163eafa
commit 72e8fa36e8
15 changed files with 30 additions and 17 deletions

View file

@ -39,6 +39,7 @@ namespace Entity {
CardStand = 0x0E,
};
protected:
/*! Position of the object */
Common::FFXIVARR_POSITION3 m_pos;

View file

@ -22,6 +22,7 @@
#include "Script/NativeScriptManager.h"
#include "Actor/Player.h"
#include "Actor/EventObject.h"
#include "Zone/Zone.h"
#include "Zone/InstanceContent.h"

View file

@ -4,6 +4,7 @@
#include <common/Logging/Logger.h>
#include <common/Network/PacketContainer.h>
#include <unordered_map>
#include <boost/format.hpp>
#include "Network/GameConnection.h"

View file

@ -7,6 +7,7 @@
#include <common/Database/DatabaseDef.h>
#include <boost/format.hpp>
#include <unordered_map>
#include "Network/GameConnection.h"

View file

@ -4,11 +4,7 @@
#include <string>
#include <typeinfo>
#include <typeindex>
#include <Actor/Chara.h>
#include <Actor/Player.h>
#include <StatusEffect/StatusEffect.h>
#include <Zone/InstanceContent.h>
#include "Forwards.h"
#ifdef _MSC_VER
#define EXPORT __declspec( dllexport )
@ -125,4 +121,4 @@ public:
virtual void onEnterTerritory( Entity::Player& player, uint32_t eventId, uint16_t param1, uint16_t param2 ) { }
};
#endif
#endif

View file

@ -1,4 +1,7 @@
#include "NativeScriptManager.h"
#include <boost/filesystem.hpp>
#include <common/Crypt/md5.h>
namespace Core {
namespace Scripting {

View file

@ -7,9 +7,6 @@
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/filesystem.hpp>
#include <common/Crypt/md5.h>
#include "ScriptLoader.h"

View file

@ -5,6 +5,7 @@
#include "NativeScriptManager.h"
#include "Zone/Zone.h"
#include "Zone/InstanceContent.h"
#include "Actor/Player.h"
#include "ServerZone.h"
#include "Event/EventHandler.h"

View file

@ -1,5 +1,6 @@
#include <ScriptObject.h>
#include <Zone/InstanceContent.h>
#include <Actor/EventObject.h>
class Sastasha : public InstanceContentScript
{
@ -81,4 +82,4 @@ public:
}
};
};

View file

@ -10,6 +10,7 @@
#include "Script/ScriptManager.h"
#include "Actor/Player.h"
#include "Actor/EventObject.h"
#include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h"

View file

@ -4,11 +4,13 @@
#include "Zone.h"
#include "Event/Director.h"
#include "Forwards.h"
#include <common/Exd/ExdDataGenerated.h>
namespace Core
{
namespace Data
{
struct InstanceContent;
}
class InstanceContent : public Event::Director, public Zone
{
public:
@ -40,7 +42,7 @@ public:
void setVar( uint8_t index, uint8_t value );
Core::Data::ExdDataGenerated::InstanceContentPtr getInstanceContentInfo() const;
boost::shared_ptr< Core::Data::InstanceContent > getInstanceContentInfo() const;
uint32_t getInstanceContentId() const;
@ -48,7 +50,7 @@ public:
private:
Event::DirectorPtr m_pDirector;
Core::Data::ExdDataGenerated::InstanceContentPtr m_instanceContentInfo;
boost::shared_ptr< Core::Data::InstanceContent > m_instanceContentInfo;
uint32_t m_instanceContentId;
InstanceContentState m_state;

View file

@ -4,6 +4,8 @@
#include <common/Database/DatabaseDef.h>
#include <common/Exd/ExdDataGenerated.h>
#include <unordered_map>
#include "Actor/Player.h"
#include "Zone.h"

View file

@ -1,9 +1,9 @@
#ifndef SAPPHIRE_TERRITORYMGR_H
#define SAPPHIRE_TERRITORYMGR_H
#include <common/Exd/ExdDataGenerated.h>
#include "Forwards.h"
#include <set>
#include <unordered_map>
namespace Core
{

View file

@ -19,6 +19,7 @@
#include "Session.h"
#include "Actor/Chara.h"
#include "Actor/Player.h"
#include "Actor/EventObject.h"
#include "Forwards.h"

View file

@ -6,16 +6,16 @@
#include "Cell.h"
#include "CellHandler.h"
#include "Actor/EventObject.h"
#include "Forwards.h"
#include <set>
#include <map>
#include <boost/enable_shared_from_this.hpp>
#include <stdio.h>
#include <string.h>
#include <common/Exd/ExdDataGenerated.h>
namespace Core {
class Session;
@ -23,6 +23,11 @@ class Session;
class ZonePosition;
using SessionSet = std::set< SessionPtr >;
namespace Data
{
struct InstanceContent;
struct TerritoryType;
}
class Zone : public CellHandler< Cell >, public boost::enable_shared_from_this< Zone >
{