refactor: move events and service locator into core project
This commit is contained in:
36
L2BotCore/Domain/Events/SkillUsedEvent.h
Normal file
36
L2BotCore/Domain/Events/SkillUsedEvent.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include "Event.h"
|
||||
|
||||
namespace L2Bot::Domain::Events
|
||||
{
|
||||
class SkillUsedEvent : public Event
|
||||
{
|
||||
public:
|
||||
static constexpr const char* name = "skillUsed";
|
||||
|
||||
const std::string GetName() const
|
||||
{
|
||||
return std::string(name);
|
||||
}
|
||||
|
||||
const std::vector<int32_t>& GetSkillInfo() const
|
||||
{
|
||||
return m_SkillInfo;
|
||||
}
|
||||
|
||||
SkillUsedEvent(const std::vector<int32_t> skillInfo) :
|
||||
m_SkillInfo(skillInfo)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
SkillUsedEvent() = delete;
|
||||
virtual ~SkillUsedEvent() = default;
|
||||
|
||||
private:
|
||||
const std::vector<int32_t> m_SkillInfo;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user