1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 01:37:47 +00:00
sapphire/src/servers/sapphire_zone/Action/EventItemAction.h

39 lines
673 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _EVENTITEMACTION_H_
#define _EVENTITEMACTION_H_
#include "ForwardsZone.h"
#include "Action.h"
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
namespace Core::Action
{
2018-10-28 21:53:21 +01:00
class EventItemAction : public Action
{
2018-10-28 21:53:21 +01:00
public:
EventItemAction();
2018-10-28 21:53:21 +01:00
~EventItemAction();
2018-10-28 21:53:21 +01:00
EventItemAction( Entity::CharaPtr pActor, uint32_t eventId, uint16_t action,
ActionCallback finishRef, ActionCallback interruptRef, uint64_t additional );
2018-10-28 21:53:21 +01:00
void onStart() override;
2018-10-28 21:53:21 +01:00
void onFinish() override;
2018-10-28 21:53:21 +01:00
void onInterrupt() override;
2018-10-28 21:53:21 +01:00
private:
uint32_t m_eventId;
uint64_t m_additional;
2018-10-28 21:53:21 +01:00
ActionCallback m_onActionFinishClb;
ActionCallback m_onActionInterruptClb;
};
2017-08-08 13:53:47 +02:00
}
#endif