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

41 lines
688 B
C
Raw Normal View History

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
#include "ForwardsZone.h"
#include "Action.h"
2017-08-08 13:53:47 +02:00
namespace Sapphire::Action
{
2018-10-28 21:53:21 +01:00
class EventAction : public Action
{
2018-10-28 21:53:21 +01:00
public:
EventAction();
2018-10-28 21:53:21 +01:00
~EventAction();
2018-10-28 21:53:21 +01:00
EventAction( Entity::CharaPtr pActor, uint32_t eventId, uint16_t action,
ActionCallback finishRef, ActionCallback interruptRef, uint64_t additional, FrameworkPtr pFw );
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