forked from phisko/kengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLuaComponent.hpp
More file actions
29 lines (23 loc) · 769 Bytes
/
Copy pathLuaComponent.hpp
File metadata and controls
29 lines (23 loc) · 769 Bytes
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
#pragma once
#ifndef KENGINE_MAX_LUA_SCRIPT_PATH
# define KENGINE_MAX_LUA_SCRIPT_PATH 64
#endif
#ifndef KENGINE_MAX_LUA_SCRIPTS
# define KENGINE_MAX_LUA_SCRIPTS 8
#endif
#include "string.hpp"
#include "vector.hpp"
#include "reflection.hpp"
namespace kengine {
struct LuaComponent {
static constexpr char stringName[] = "LuaComponentString";
using script = putils::string<KENGINE_MAX_LUA_SCRIPT_PATH, stringName>;
static constexpr char vectorName[] = "LuaComponentVector";
using script_vector = putils::vector<script, KENGINE_MAX_LUA_SCRIPTS>;
script_vector scripts;
putils_reflection_class_name(LuaComponent);
putils_reflection_attributes(
putils_reflection_attribute(&LuaComponent::scripts)
);
};
}