mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
More cleanup yet
This commit is contained in:
parent
911bf39af8
commit
738b09d5c5
29 changed files with 25 additions and 83 deletions
|
@ -9,7 +9,6 @@
|
||||||
#include "Actor/Player.h"
|
#include "Actor/Player.h"
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <boost/make_shared.hpp>
|
|
||||||
|
|
||||||
using namespace Core::Entity;
|
using namespace Core::Entity;
|
||||||
using namespace Core::Common;
|
using namespace Core::Common;
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
#define _ACTIONCOLLISION_H
|
#define _ACTIONCOLLISION_H
|
||||||
|
|
||||||
#include <Common.h>
|
#include <Common.h>
|
||||||
#include "Action.h"
|
#include "Forwards.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
namespace Data
|
namespace Data
|
||||||
{
|
{
|
||||||
struct Action;
|
struct Action;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Entity {
|
namespace Entity {
|
||||||
|
|
||||||
enum class TargetFilter
|
enum class TargetFilter
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef _ACTIONMOUNT_H_
|
#ifndef _ACTIONMOUNT_H_
|
||||||
#define _ACTIONMOUNT_H_
|
#define _ACTIONMOUNT_H_
|
||||||
|
|
||||||
#include "../Forwards.h"
|
#include "Forwards.h"
|
||||||
#include "Action.h"
|
#include "Action.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef _ACTIONTELEPORT_H_
|
#ifndef _ACTIONTELEPORT_H_
|
||||||
#define _ACTIONTELEPORT_H_
|
#define _ACTIONTELEPORT_H_
|
||||||
|
|
||||||
#include "../Forwards.h"
|
#include "Forwards.h"
|
||||||
#include "Action.h"
|
#include "Action.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include "Network/PacketWrappers/ActorControlPacket143.h"
|
#include "Network/PacketWrappers/ActorControlPacket143.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
#include "Actor/Player.h"
|
||||||
#include "Event/EventHandler.h"
|
|
||||||
|
|
||||||
#include "EventAction.h"
|
#include "EventAction.h"
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <Common.h>
|
#include <Common.h>
|
||||||
|
|
||||||
#include "../Forwards.h"
|
#include "Forwards.h"
|
||||||
#include "Action.h"
|
#include "Action.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef _EVENTITEMACTION_H_
|
#ifndef _EVENTITEMACTION_H_
|
||||||
#define _EVENTITEMACTION_H_
|
#define _EVENTITEMACTION_H_
|
||||||
|
|
||||||
#include "../Forwards.h"
|
#include "Forwards.h"
|
||||||
#include "Action.h"
|
#include "Action.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
#include "Actor.h"
|
#include "Actor.h"
|
||||||
|
|
||||||
#include <Network/PacketContainer.h>
|
#include <Network/PacketContainer.h>
|
||||||
#include <Network/GamePacket.h>
|
|
||||||
#include <Util/Util.h>
|
#include <Util/Util.h>
|
||||||
#include <Util/UtilMath.h>
|
#include <Util/UtilMath.h>
|
||||||
|
|
||||||
#include "Forwards.h"
|
|
||||||
#include "Action/Action.h"
|
#include "Action/Action.h"
|
||||||
#include "Action/ActionCollision.h"
|
#include "Action/ActionCollision.h"
|
||||||
|
|
||||||
|
@ -19,8 +18,6 @@
|
||||||
|
|
||||||
#include "ServerZone.h"
|
#include "ServerZone.h"
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
#include "Zone/Zone.h"
|
|
||||||
|
|
||||||
|
|
||||||
#include "Zone/TerritoryMgr.h"
|
#include "Zone/TerritoryMgr.h"
|
||||||
|
|
||||||
|
@ -28,11 +25,6 @@
|
||||||
|
|
||||||
#include "Math/CalcBattle.h"
|
#include "Math/CalcBattle.h"
|
||||||
|
|
||||||
#include "ServerZone.h"
|
|
||||||
#include "Session.h"
|
|
||||||
#include "Actor.h"
|
|
||||||
#include "Player.h"
|
|
||||||
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#include <Util/UtilMath.h>
|
#include <Util/UtilMath.h>
|
||||||
#include <Network/PacketContainer.h>
|
#include <Network/PacketContainer.h>
|
||||||
#include <Exd/ExdDataGenerated.h>
|
#include <Exd/ExdDataGenerated.h>
|
||||||
#include <Network/GamePacket.h>
|
|
||||||
|
|
||||||
#include "Forwards.h"
|
#include "Forwards.h"
|
||||||
#include "Action/Action.h"
|
#include "Action/Action.h"
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include <Logging/Logger.h>
|
#include <Logging/Logger.h>
|
||||||
#include <Network/GamePacket.h>
|
#include <Network/GamePacket.h>
|
||||||
#include <Network/GamePacketNew.h>
|
#include <Network/GamePacketNew.h>
|
||||||
#include <Network/CommonNetwork.h>
|
|
||||||
#include <Network/PacketDef/Zone/ServerZoneDef.h>
|
#include <Network/PacketDef/Zone/ServerZoneDef.h>
|
||||||
#include <Network/PacketContainer.h>
|
#include <Network/PacketContainer.h>
|
||||||
#include <Util/UtilMath.h>
|
#include <Util/UtilMath.h>
|
||||||
|
|
|
@ -10,10 +10,11 @@ namespace Entity
|
||||||
class EventObject : public Actor
|
class EventObject : public Actor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EventObject( uint32_t actorId, uint32_t objectId, uint32_t gimmickId, uint8_t initialState, Common::FFXIVARR_POSITION3 pos,
|
EventObject( uint32_t actorId, uint32_t objectId, uint32_t gimmickId, uint8_t initialState,
|
||||||
float rotation, const std::string& givenName = "none" );
|
Common::FFXIVARR_POSITION3 pos, float rotation, const std::string& givenName = "none" );
|
||||||
|
|
||||||
using OnTalkEventHandler = std::function< void( Entity::Player&, Entity::EventObjectPtr, InstanceContentPtr, uint64_t ) >;
|
using OnTalkEventHandler = std::function< void( Entity::Player&, Entity::EventObjectPtr,
|
||||||
|
InstanceContentPtr, uint64_t ) >;
|
||||||
|
|
||||||
uint32_t getGimmickId() const;
|
uint32_t getGimmickId() const;
|
||||||
void setGimmickId( uint32_t gimmickId );
|
void setGimmickId( uint32_t gimmickId );
|
||||||
|
|
|
@ -30,11 +30,6 @@
|
||||||
|
|
||||||
#include "Script/ScriptMgr.h"
|
#include "Script/ScriptMgr.h"
|
||||||
|
|
||||||
#include "Inventory/Item.h"
|
|
||||||
#include "Inventory/Inventory.h"
|
|
||||||
|
|
||||||
#include "Event/EventHandler.h"
|
|
||||||
|
|
||||||
#include "Action/Action.h"
|
#include "Action/Action.h"
|
||||||
#include "Action/ActionTeleport.h"
|
#include "Action/ActionTeleport.h"
|
||||||
#include "Action/EventAction.h"
|
#include "Action/EventAction.h"
|
||||||
|
|
|
@ -16,12 +16,7 @@
|
||||||
#include "Action/EventAction.h"
|
#include "Action/EventAction.h"
|
||||||
#include "Action/EventItemAction.h"
|
#include "Action/EventItemAction.h"
|
||||||
|
|
||||||
#include "Event/EventHandler.h"
|
|
||||||
|
|
||||||
#include "Zone/Zone.h"
|
#include "Zone/Zone.h"
|
||||||
|
|
||||||
#include "Player.h"
|
|
||||||
#include "Forwards.h"
|
|
||||||
#include "ServerZone.h"
|
#include "ServerZone.h"
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
#include "Network/PacketWrappers/QuestMessagePacket.h"
|
#include "Network/PacketWrappers/QuestMessagePacket.h"
|
||||||
|
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
#include "Inventory/Inventory.h"
|
|
||||||
#include "Player.h"
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <stdio.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include <Common.h>
|
#include <Common.h>
|
||||||
#include <Network/GamePacket.h>
|
#include <Network/GamePacket.h>
|
||||||
|
@ -19,11 +17,7 @@
|
||||||
#include "Zone/TerritoryMgr.h"
|
#include "Zone/TerritoryMgr.h"
|
||||||
#include "Zone/Zone.h"
|
#include "Zone/Zone.h"
|
||||||
|
|
||||||
#include "Inventory/Inventory.h"
|
|
||||||
|
|
||||||
#include "Player.h"
|
|
||||||
#include "ServerZone.h"
|
#include "ServerZone.h"
|
||||||
#include "Forwards.h"
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include <Common.h>
|
#include <Common.h>
|
||||||
#include <Version.h>
|
#include <Version.h>
|
||||||
#include <Network/GamePacketNew.h>
|
#include <Network/GamePacketNew.h>
|
||||||
#include <Network/CommonNetwork.h>
|
|
||||||
#include <Util/UtilMath.h>
|
#include <Util/UtilMath.h>
|
||||||
#include <Network/PacketContainer.h>
|
#include <Network/PacketContainer.h>
|
||||||
#include <Logging/Logger.h>
|
#include <Logging/Logger.h>
|
||||||
|
@ -25,7 +24,6 @@
|
||||||
#include "Script/ScriptMgr.h"
|
#include "Script/ScriptMgr.h"
|
||||||
#include "Script/NativeScriptMgr.h"
|
#include "Script/NativeScriptMgr.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
|
||||||
#include "Actor/EventObject.h"
|
#include "Actor/EventObject.h"
|
||||||
|
|
||||||
#include "Zone/Zone.h"
|
#include "Zone/Zone.h"
|
||||||
|
@ -34,7 +32,6 @@
|
||||||
|
|
||||||
#include "ServerZone.h"
|
#include "ServerZone.h"
|
||||||
|
|
||||||
#include "StatusEffect/StatusEffect.h"
|
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef _EVENT_H
|
#ifndef _EVENT_H
|
||||||
#define _EVENT_H
|
#define _EVENT_H
|
||||||
|
|
||||||
#include "../Forwards.h"
|
#include "Forwards.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
namespace Event {
|
namespace Event {
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
#include <Common.h>
|
#include <Common.h>
|
||||||
#include <Exd/ExdDataGenerated.h>
|
#include <Exd/ExdDataGenerated.h>
|
||||||
|
#include <boost/range/algorithm/remove_if.hpp>
|
||||||
|
#include <boost/algorithm/string/classification.hpp>
|
||||||
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
#include "EventHelper.h"
|
#include "EventHelper.h"
|
||||||
#include "EventHandler.h"
|
#include "EventHandler.h"
|
||||||
#include <boost/range/algorithm/remove_if.hpp>
|
|
||||||
#include <boost/algorithm/string/classification.hpp>
|
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define INVENTORY_H_
|
#define INVENTORY_H_
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <Common.h>
|
#include <Common.h>
|
||||||
#include "../Forwards.h"
|
#include "Forwards.h"
|
||||||
|
|
||||||
namespace Core
|
namespace Core
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include <Common.h>
|
#include <Common.h>
|
||||||
|
|
||||||
#include "../Forwards.h"
|
#include "Forwards.h"
|
||||||
|
|
||||||
namespace Core
|
namespace Core
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <Network/Acceptor.h>
|
#include <Network/Acceptor.h>
|
||||||
#include <Network/PacketContainer.h>
|
#include <Network/PacketContainer.h>
|
||||||
#include <Network/GamePacketParser.h>
|
#include <Network/GamePacketParser.h>
|
||||||
|
#include <Network/GamePacket.h>
|
||||||
|
|
||||||
#include "Zone/Zone.h"
|
#include "Zone/Zone.h"
|
||||||
|
|
||||||
|
@ -15,8 +16,6 @@
|
||||||
|
|
||||||
#include "DebugCommand/DebugCommandHandler.h"
|
#include "DebugCommand/DebugCommandHandler.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
|
||||||
|
|
||||||
#include "GameConnection.h"
|
#include "GameConnection.h"
|
||||||
#include "ServerZone.h"
|
#include "ServerZone.h"
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <Network/Connection.h>
|
#include <Network/Connection.h>
|
||||||
|
|
||||||
#include <Network/CommonNetwork.h>
|
#include <Network/CommonNetwork.h>
|
||||||
#include <Network/GamePacket.h>
|
//#include <Network/GamePacket.h>
|
||||||
#include <Util/LockedQueue.h>
|
#include <Util/LockedQueue.h>
|
||||||
|
|
||||||
#include "Forwards.h"
|
#include "Forwards.h"
|
||||||
|
@ -13,7 +13,9 @@
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
namespace Network {
|
namespace Network {
|
||||||
|
namespace Packets {
|
||||||
|
class GamePacket;
|
||||||
|
}
|
||||||
enum ConnectionType : uint8_t
|
enum ConnectionType : uint8_t
|
||||||
{
|
{
|
||||||
Zone = 1,
|
Zone = 1,
|
||||||
|
|
|
@ -25,10 +25,6 @@
|
||||||
|
|
||||||
#include "DebugCommand/DebugCommandHandler.h"
|
#include "DebugCommand/DebugCommandHandler.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
|
||||||
|
|
||||||
#include "Inventory/Inventory.h"
|
|
||||||
|
|
||||||
#include "Event/EventHelper.h"
|
#include "Event/EventHelper.h"
|
||||||
|
|
||||||
#include "Action/Action.h"
|
#include "Action/Action.h"
|
||||||
|
|
|
@ -15,9 +15,6 @@
|
||||||
#include "Network/PacketWrappers/ActorControlPacket144.h"
|
#include "Network/PacketWrappers/ActorControlPacket144.h"
|
||||||
#include "Network/PacketWrappers/PlayerStateFlagsPacket.h"
|
#include "Network/PacketWrappers/PlayerStateFlagsPacket.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
|
||||||
|
|
||||||
#include "Forwards.h"
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
|
|
||||||
|
|
|
@ -19,14 +19,12 @@
|
||||||
|
|
||||||
#include "Script/ScriptMgr.h"
|
#include "Script/ScriptMgr.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
|
||||||
|
|
||||||
#include "Event/EventHelper.h"
|
#include "Event/EventHelper.h"
|
||||||
|
|
||||||
#include "Zone/InstanceContent.h"
|
#include "Zone/InstanceContent.h"
|
||||||
|
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
#include "Forwards.h"
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#include "Zone/TerritoryMgr.h"
|
#include "Zone/TerritoryMgr.h"
|
||||||
#include "Zone/Zone.h"
|
#include "Zone/Zone.h"
|
||||||
#include "Zone/InstanceContent.h"
|
#include "Zone/InstanceContent.h"
|
||||||
#include "Zone/ZonePosition.h"
|
|
||||||
|
|
||||||
#include "Network/PacketWrappers/InitUIPacket.h"
|
#include "Network/PacketWrappers/InitUIPacket.h"
|
||||||
#include "Network/PacketWrappers/PingPacket.h"
|
#include "Network/PacketWrappers/PingPacket.h"
|
||||||
|
@ -29,15 +28,7 @@
|
||||||
#include "Network/PacketWrappers/EventFinishPacket.h"
|
#include "Network/PacketWrappers/EventFinishPacket.h"
|
||||||
#include "Network/PacketWrappers/PlayerStateFlagsPacket.h"
|
#include "Network/PacketWrappers/PlayerStateFlagsPacket.h"
|
||||||
|
|
||||||
#include "DebugCommand/DebugCommandHandler.h"
|
|
||||||
|
|
||||||
#include "Event/EventHelper.h"
|
|
||||||
|
|
||||||
#include "Action/Action.h"
|
|
||||||
#include "Action/ActionTeleport.h"
|
|
||||||
|
|
||||||
#include "ServerZone.h"
|
#include "ServerZone.h"
|
||||||
#include "Forwards.h"
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
|
|
||||||
#include "DebugCommand/DebugCommandHandler.h"
|
#include "DebugCommand/DebugCommandHandler.h"
|
||||||
#include "Actor/Player.h"
|
#include "Actor/Player.h"
|
||||||
#include "Inventory/Inventory.h"
|
|
||||||
|
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
#include "ServerZone.h"
|
#include "ServerZone.h"
|
||||||
#include "Forwards.h"
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
|
@ -7,10 +7,7 @@
|
||||||
#include <Network/PacketContainer.h>
|
#include <Network/PacketContainer.h>
|
||||||
#include <Network/PacketDef/Chat/ServerChatDef.h>
|
#include <Network/PacketDef/Chat/ServerChatDef.h>
|
||||||
#include <Database/DatabaseDef.h>
|
#include <Database/DatabaseDef.h>
|
||||||
#include <Database/DbWorkerPool.h>
|
|
||||||
#include <Database/CharaDbConnection.h>
|
|
||||||
|
|
||||||
#include <boost/format.hpp>
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "Network/GameConnection.h"
|
#include "Network/GameConnection.h"
|
||||||
|
|
||||||
|
@ -32,10 +29,6 @@
|
||||||
|
|
||||||
#include "DebugCommand/DebugCommandHandler.h"
|
#include "DebugCommand/DebugCommandHandler.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
|
||||||
|
|
||||||
#include "Inventory/Inventory.h"
|
|
||||||
|
|
||||||
#include "Event/EventHelper.h"
|
#include "Event/EventHelper.h"
|
||||||
|
|
||||||
#include "Action/Action.h"
|
#include "Action/Action.h"
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
#include "DebugCommand/DebugCommandHandler.h"
|
#include "DebugCommand/DebugCommandHandler.h"
|
||||||
|
|
||||||
#include "Actor/Player.h"
|
|
||||||
|
|
||||||
#include "Action/Action.h"
|
#include "Action/Action.h"
|
||||||
#include "Action/ActionCast.h"
|
#include "Action/ActionCast.h"
|
||||||
#include "Action/ActionMount.h"
|
#include "Action/ActionMount.h"
|
||||||
|
@ -27,7 +25,6 @@
|
||||||
#include "Script/ScriptMgr.h"
|
#include "Script/ScriptMgr.h"
|
||||||
|
|
||||||
#include "Session.h"
|
#include "Session.h"
|
||||||
#include "Forwards.h"
|
|
||||||
#include "Framework.h"
|
#include "Framework.h"
|
||||||
|
|
||||||
extern Core::Framework g_fw;
|
extern Core::Framework g_fw;
|
||||||
|
|
Loading…
Add table
Reference in a new issue