blob: 12f591cfa1e25232e215bc8cecaa5bfd6ddeba39 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#include "EditorScripting.h"
#include "Runtime/Debug/Log.h"
extern int luaopen_GameLab(lua_State* L); // GameLab
extern int luaopen_GameLab_Debug(lua_State* L); // GameLab.Debug
extern int luaopen_GameLab_IO(lua_State* L); // GameLab.IO
extern int luaopen_GameLab_Path(lua_State* L); // GameLab.Path
extern int luaopen_GameLab_Events(lua_State* L); // GameLab.Events
extern int luaopen_GameLab_Engine(lua_State* L); // GameLab.Engine
extern int luaopen_GameLab_Engine_Rendering(lua_State* L); // GameLab.Engine.Rendering
extern int luaopen_GameLab_Engine_Event(lua_State* L); // GameLab.Engine.Event
extern int luaopen_GameLab_Engine_Networking(lua_State* L); // GameLab.Engine.Networking
extern int luaopen_GameLab_Engine_Animation(lua_State* L); // GameLab.Engine.Animation
extern int luaopen_GameLab_Engine_GL(lua_State* L);// GameLab.Engine.GL
extern int luaopen_GameLab_Engine_Resource(lua_State* L); // GameLab.Engine.Resource
extern int luaopen_GameLab_Engine_GUI(lua_State* L);
extern int luaopen_GameLab_Editor(lua_State* L); // GameLab.Editor
extern int luaopen_GameLab_Editor_Window(lua_State* L); // GameLab.Editor.Window
extern int luaopen_GameLab_Editor_Resource(lua_State* L); // GameLab.Editor.Resource
extern int luaopen_GameLab_Editor_Profiling(lua_State* L); // GameLab.Editor.Profiling
extern int luaopen_GameLab_Editor_Animation(lua_State* L); // GameLab.Editor.Animation
extern int luaopen_GameLab_Editor_Build(lua_State* L); // GameLab.Editor.Build
extern int luaopen_GameLab_Editor_Event(lua_State* L); // GameLab.Editor.Event
extern int luaopen_GameLab_Editor_NetWorking(lua_State* L); // GameLab.Editor.NetWorking
extern int luaopen_GameLab_Editor_Rendering(lua_State* L); // GameLab.Editor.Rendering
extern int luaopen_GameLab_Editor_Scripting(lua_State* L); // GameLab.Editor.Scripting
#define openlib(cfunc) \
lua_pushcfunction(L, cfunc);\
lua_call(L, 0, 0);
bool SetupGameLabEditorScripting(lua_State* L)
{
log_info_tag("Scripting", "SetupGameLabEditorScripting()");
openlib(luaopen_GameLab);
openlib(luaopen_GameLab_Debug);
openlib(luaopen_GameLab_Path);
openlib(luaopen_GameLab_IO);
openlib(luaopen_GameLab_Events);
openlib(luaopen_GameLab_Engine_Rendering);
openlib(luaopen_GameLab_Engine_GL);
openlib(luaopen_GameLab_Engine_Resource);
openlib(luaopen_GameLab_Engine_GUI);
openlib(luaopen_GameLab_Editor);
openlib(luaopen_GameLab_Editor_Window);
return true;
}
|