mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +00:00
37 lines
725 B
C
37 lines
725 B
C
![]() |
#ifndef _EVENTACTION_H_
|
||
|
#define _EVENTACTION_H_
|
||
|
|
||
|
#include <Server_Common/Common.h>
|
||
|
|
||
|
#include "Forwards.h"
|
||
|
#include "Action.h"
|
||
|
|
||
|
namespace Core { namespace Action {
|
||
|
|
||
|
class EventAction : public Action
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
EventAction();
|
||
|
~EventAction();
|
||
|
|
||
|
EventAction( Entity::ActorPtr pActor, uint32_t eventId, uint16_t action,
|
||
|
ActionCallback finishRef, ActionCallback interruptRef, uint64_t additional );
|
||
|
|
||
|
void onStart() override;
|
||
|
void onFinish() override;
|
||
|
void onInterrupt() override;
|
||
|
|
||
|
private:
|
||
|
uint32_t m_eventId;
|
||
|
uint64_t m_additional;
|
||
|
|
||
|
ActionCallback m_onActionFinishClb;
|
||
|
ActionCallback m_onActionInterruptClb;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|