mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
Properly use new classes... at least let this compile
This commit is contained in:
parent
51a292415e
commit
89dbbab066
5 changed files with 10 additions and 9 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "Math/CalcBattle.h"
|
||||
#include "Chara.h"
|
||||
#include "Player.h"
|
||||
#include "BNpc.h"
|
||||
#include "Zone/TerritoryMgr.h"
|
||||
#include "Framework.h"
|
||||
#include "Common.h"
|
||||
|
@ -35,9 +36,8 @@ using namespace Core::Network::Packets;
|
|||
using namespace Core::Network::Packets::Server;
|
||||
using namespace Core::Network::ActorControl;
|
||||
|
||||
Core::Entity::BNpc::BNpc( ObjKind type ) :
|
||||
Npc( ObjKind::BattleNpc ),
|
||||
m_targetId( INVALID_GAME_OBJECT_ID )
|
||||
Core::Entity::BNpc::BNpc() :
|
||||
Npc( ObjKind::BattleNpc )
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "Forwards.h"
|
||||
#include "Chara.h"
|
||||
#include "Npc.h"
|
||||
#include <set>
|
||||
#include <map>
|
||||
#include <queue>
|
||||
|
@ -14,8 +15,8 @@ namespace Core {
|
|||
namespace Entity {
|
||||
|
||||
/*!
|
||||
\class Npc
|
||||
\brief Base class for all Npcs
|
||||
\class BNpc
|
||||
\brief Base class for all BNpcs
|
||||
|
||||
*/
|
||||
class BNpc :
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "Math/CalcBattle.h"
|
||||
#include "Chara.h"
|
||||
#include "Player.h"
|
||||
#include "Npc.h"
|
||||
#include "Zone/TerritoryMgr.h"
|
||||
#include "Framework.h"
|
||||
#include "Common.h"
|
||||
|
@ -36,8 +37,7 @@ using namespace Core::Network::Packets::Server;
|
|||
using namespace Core::Network::ActorControl;
|
||||
|
||||
Core::Entity::Npc::Npc( ObjKind type ) :
|
||||
Chara( type ),
|
||||
m_targetId( INVALID_GAME_OBJECT_ID )
|
||||
Chara( type )
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class Npc :
|
|||
{
|
||||
|
||||
public:
|
||||
Npc( ObjKind type );
|
||||
Npc( Common::ObjKind type );
|
||||
|
||||
virtual ~Npc() override;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class EffectPacket :
|
|||
{
|
||||
public:
|
||||
EffectPacket( uint64_t sourceId, uint32_t targetId, uint32_t actionId ) :
|
||||
ZoneChannelPacket< FFXIVIpcEffect >( sourceId, targetId )
|
||||
ZoneChannelPacket< FFXIVIpcEffect >( static_cast< uint32_t >( sourceId ), targetId )
|
||||
{
|
||||
m_data.header.actionId = actionId;
|
||||
m_data.header.actionAnimationId = static_cast< uint16_t >( actionId );
|
||||
|
|
Loading…
Add table
Reference in a new issue