fix type id
This commit is contained in:
@@ -33,7 +33,7 @@ namespace VE
|
||||
template <typename TYPE, typename DATA>
|
||||
static void EMIT(TYPE t, DATA d, std::string id = hack::security::generate_uuid(), std::string msg = "")
|
||||
{
|
||||
event e{ t, d, id};
|
||||
event e{ t, d, id };
|
||||
if (msg != "") e.m_event_log_message = msg;
|
||||
event_manager::instance().emit(e);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace VE
|
||||
{
|
||||
struct event
|
||||
{
|
||||
event(std::any type, std::any data, std::size_t id) : m_type{ type }, m_data{ data }, m_id { id } {}
|
||||
event(std::any type, std::any data, std::string id) : m_type{ type }, m_data{ data }, m_id { id } {}
|
||||
~event() = default;
|
||||
|
||||
std::any m_type;
|
||||
|
||||
Reference in New Issue
Block a user