forked from phisko/kengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Log.hpp
42 lines (35 loc) · 981 Bytes
/
Log.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <string>
#include "putils/reflection/Reflectible.hpp"
namespace kengine
{
namespace packets
{
struct Log
{
std::string msg;
Log(std::string_view msg = "") : msg(msg) {}
/*
* Reflectible
*/
static const auto get_class_name() { return pmeta_nameof(Log); }
static const auto &get_attributes()
{
static const auto table = pmeta::make_table(
pmeta_reflectible_attribute(&Log::msg)
);
return table;
}
static const auto &get_methods()
{
static const auto table = pmeta::make_table();
return table;
}
static const auto &get_parents()
{
static const auto table = pmeta::make_table();
return table;
}
};
}
}