mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 23:27:45 +00:00
fix SkillHandler packet size and add AoESkillHandler packet
This commit is contained in:
parent
a55e4d91dc
commit
76172595a4
5 changed files with 46 additions and 0 deletions
|
@ -304,6 +304,7 @@ namespace Sapphire::Network::Packets
|
|||
SkillHandler = 0x013B, // updated 4.5
|
||||
GMCommand1 = 0x013C, // updated 4.5
|
||||
GMCommand2 = 0x013D, // updated 4.5
|
||||
AoESkillHandler = 0x13E, // updated 4.5
|
||||
|
||||
UpdatePositionHandler = 0x013F, // updated 4.5
|
||||
UpdatePositionInstance = 0x0183, // updated 4.3
|
||||
|
|
|
@ -70,6 +70,20 @@ struct FFXIVIpcSkillHandler :
|
|||
/* 0008 */ uint32_t useCount;
|
||||
/* 000C */ char pad_000C[4];
|
||||
/* 0010 */ uint64_t targetId;
|
||||
/* 0018 */ uint64_t unknown;
|
||||
};
|
||||
|
||||
struct FFXIVIpcAoESkillHandler :
|
||||
FFXIVIpcBasePacket< AoESkillHandler >
|
||||
{
|
||||
/* 0000 */ char pad_0000[1];
|
||||
/* 0001 */ uint8_t type;
|
||||
/* 0002 */ char pad_0002[2];
|
||||
/* 0004 */ uint32_t actionId;
|
||||
/* 0008 */ uint16_t useCount;
|
||||
/* 000A */ char pad_000C[6];
|
||||
/* 0010 */ Common::FFXIVARR_POSITION3 pos;
|
||||
/* 001C */ uint32_t unknown; // could almost be rotation + 16 bits more padding?
|
||||
};
|
||||
|
||||
struct FFXIVIpcZoneLineHandler :
|
||||
|
|
9
src/world/Manager/ActionMgr.cpp
Normal file
9
src/world/Manager/ActionMgr.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "ActionMgr.h"
|
||||
|
||||
using namespace Sapphire;
|
||||
|
||||
World::Manager::ActionMgr::ActionMgr( Sapphire::FrameworkPtr pFw ) :
|
||||
BaseManager( pFw )
|
||||
{
|
||||
|
||||
}
|
18
src/world/Manager/ActionMgr.h
Normal file
18
src/world/Manager/ActionMgr.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef SAPPHIRE_ACTIONMGR_H
|
||||
#define SAPPHIRE_ACTIONMGR_H
|
||||
|
||||
#include "BaseManager.h"
|
||||
|
||||
namespace Sapphire::World::Manager
|
||||
{
|
||||
class ActionMgr : public Manager::BaseManager
|
||||
{
|
||||
public:
|
||||
explicit ActionMgr( FrameworkPtr pFw );
|
||||
~ActionMgr() = default;
|
||||
|
||||
// void handlePlayerCast( Entity::Player& player)
|
||||
};
|
||||
}
|
||||
|
||||
#endif //SAPPHIRE_ACTIONMGR_H
|
|
@ -42,6 +42,7 @@
|
|||
#include "Manager/MarketMgr.h"
|
||||
#include "Manager/RNGMgr.h"
|
||||
#include "Manager/NaviMgr.h"
|
||||
#include "Manager/ActionMgr.h"
|
||||
|
||||
using namespace Sapphire::World::Manager;
|
||||
|
||||
|
@ -170,6 +171,9 @@ void Sapphire::World::ServerMgr::run( int32_t argc, char* argv[] )
|
|||
}
|
||||
framework()->set< Scripting::ScriptMgr >( pScript );
|
||||
|
||||
auto pActionMgr = std::make_shared< Manager::ActionMgr >( framework() );
|
||||
framework()->set< Manager::ActionMgr >( pActionMgr );
|
||||
|
||||
loadBNpcTemplates();
|
||||
|
||||
auto pNaviMgr = std::make_shared< Manager::NaviMgr >( framework() );
|
||||
|
|
Loading…
Add table
Reference in a new issue