mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-08 11:47:45 +00:00
39 lines
652 B
C
39 lines
652 B
C
![]() |
#ifndef _EVENTACTION_H_
|
||
|
#define _EVENTACTION_H_
|
||
|
|
||
|
#include <Common.h>
|
||
|
|
||
|
#include "ForwardsZone.h"
|
||
|
#include "Action.h"
|
||
|
|
||
|
namespace Sapphire::Action
|
||
|
{
|
||
|
|
||
|
class EventAction : public Action
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
virtual ~EventAction();
|
||
|
|
||
|
EventAction( Entity::CharaPtr pActor, uint32_t eventId, uint16_t action,
|
||
|
ActionCallback finishRef, ActionCallback interruptRef, uint64_t additional, FrameworkPtr pFw );
|
||
|
|
||
|
void castStart() override;
|
||
|
|
||
|
void castFinish() override;
|
||
|
|
||
|
void castInterrupt() override;
|
||
|
|
||
|
private:
|
||
|
uint32_t m_eventId;
|
||
|
uint64_t m_additional;
|
||
|
|
||
|
ActionCallback m_onActionFinishClb;
|
||
|
ActionCallback m_onActionInterruptClb;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|