2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _EVENTACTION_H_
|
|
|
|
#define _EVENTACTION_H_
|
|
|
|
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Common.h>
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-06-02 15:52:35 +02:00
|
|
|
#include "Forwards.h"
|
2017-12-08 15:38:25 +01:00
|
|
|
#include "Action.h"
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2017-12-08 15:38:25 +01:00
|
|
|
namespace Core {
|
|
|
|
namespace Action {
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
class EventAction :
|
|
|
|
public Action
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
EventAction();
|
|
|
|
|
|
|
|
~EventAction();
|
|
|
|
|
|
|
|
EventAction( Entity::CharaPtr 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;
|
|
|
|
|
|
|
|
};
|
2017-08-08 13:53:47 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-08 15:38:25 +01:00
|
|
|
#endif
|