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