2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _EVENTITEMACTION_H_
|
|
|
|
#define _EVENTITEMACTION_H_
|
|
|
|
|
2017-08-18 17:16:15 +02:00
|
|
|
#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
|