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