L2Bot2.0/L2BotDll/Events/ItemDeletedEvent.h
2023-01-24 17:23:53 +04:00

34 lines
521 B
C++

#pragma once
#include <cstdint>
#include <vector>
#include "Event.h"
#include "../DTO/ItemData.h"
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;
};