1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 16:17: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, CardStand = 0x0E,
}; };
protected: protected:
/*! Position of the object */ /*! Position of the object */
Common::FFXIVARR_POSITION3 m_pos; Common::FFXIVARR_POSITION3 m_pos;

View file

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

View file

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

View file

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

View file

@ -4,11 +4,7 @@
#include <string> #include <string>
#include <typeinfo> #include <typeinfo>
#include <typeindex> #include <typeindex>
#include "Forwards.h"
#include <Actor/Chara.h>
#include <Actor/Player.h>
#include <StatusEffect/StatusEffect.h>
#include <Zone/InstanceContent.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#define EXPORT __declspec( dllexport ) #define EXPORT __declspec( dllexport )

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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