1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-01 08:27:46 +00:00
sapphire/src/servers/Server_Zone/Action/EventItemAction.h

35 lines
773 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _EVENTITEMACTION_H_
#define _EVENTITEMACTION_H_
#include "src/servers/Server_Zone/Forwards.h"
#include "src/servers/Server_Zone/Action/Action.h"
2017-08-08 13:53:47 +02:00
namespace Core { namespace Action {
class EventItemAction : public Action
{
public:
EventItemAction();
~EventItemAction();
2017-11-28 17:43:00 +01:00
EventItemAction( Entity::ActorPtr pActor, uint32_t eventId, uint16_t action,
2017-08-08 13:53:47 +02:00
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