mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-08 03:37:45 +00:00
35 lines
No EOL
586 B
C++
35 lines
No EOL
586 B
C++
#pragma once
|
|
|
|
#include <Common.h>
|
|
|
|
#include "ForwardsZone.h"
|
|
#include "Action.h"
|
|
|
|
namespace Sapphire::World::Action
|
|
{
|
|
|
|
class EventAction : public Action
|
|
{
|
|
|
|
public:
|
|
virtual ~EventAction();
|
|
|
|
EventAction( Entity::CharaPtr pActor, uint32_t eventId, uint16_t action,
|
|
ActionCallback finishRef, ActionCallback interruptRef, uint64_t additional );
|
|
|
|
void start() override;
|
|
|
|
void execute() override;
|
|
|
|
void interrupt() override;
|
|
|
|
private:
|
|
uint32_t m_eventId;
|
|
uint64_t m_additional;
|
|
|
|
ActionCallback m_onActionFinishClb;
|
|
ActionCallback m_onActionInterruptClb;
|
|
|
|
};
|
|
|
|
} |