MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Register

Class Register

ogsr_engine/COMMON_AI/script_engine_export.cpp:17–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template <typename TList>
17struct Register
18{
19 static void _Register(lua_State* L)
20 {
21 imdexlib::ts_apply<imdexlib::ts_reverse_t<TList>>([&](const auto type) { registerOne(L, type); });
22 }
23
24private:
25 template <typename T>
26 static void registerOne(lua_State* L, imdexlib::identity<T>)
27 {
28#ifdef DEBUG
29 Msg("Exporting [%s]", typeid(T).name());
30#endif
31 T::script_register(L);
32 }
33};
34
35void export_classes(lua_State* L) { Register<script_type_list>::_Register(L); }

Callers 15

RegisterMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
AddQuestionMethod · 0.85
CUIQuestionItemMethod · 0.85
CUIDragDropListExMethod · 0.85
SetItemMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
AddMapToRenderMethod · 0.85
InitControlsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected