galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
LuaFlags.cpp
Go to the documentation of this file.
1
7
8#include <entt/locator/locator.hpp>
9#include <entt_sol/registry.hpp>
10
13
14namespace galaxy
15{
16 namespace lua
17 {
19 {
20 auto& lua = entt::locator<sol::state>::value();
21
22 lua.new_usertype<flags::NotSerializable>("NotSerializable", sol::constructors<flags::NotSerializable()>(), "type_id", &entt::type_hash<flags::NotSerializable>::value);
23 lua.new_usertype<flags::Disabled>("Disabled", sol::constructors<flags::Disabled()>(), "type_id", &entt::type_hash<flags::Disabled>::value);
24
25 entt_sol::register_meta_component<flags::NotSerializable>();
26 entt_sol::register_meta_component<flags::Disabled>();
27 }
28 } // namespace lua
29} // namespace galaxy
Used to stop an entity from being updated/rendered.
Definition Disabled.hpp:21
Used to stop an entity from being updated/rendered.
void inject_flags()
Injects galaxy flag components into Lua.
Definition LuaFlags.cpp:18
Timer.hpp galaxy.
Definition Async.hpp:17