blob: 26509e07f247693e44c8a4fb0d224864b09f076f (
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
|
#include "EditorScripting.h"
#include "Runtime/Debug/Log.h"
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_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_Editor(lua_State* L); // GameLab.Editor
extern int luaopen_GameLab_Editor_GUI(lua_State* L); // GameLab.Editor.GUI
extern int luaopen_GameLab_Editor_GUILayout(lua_State* L); // GameLab.Editor.GUILayout
extern int luaopen_GameLab_Editor_IMGUI(lua_State* L); // GameLab.Editor.IMGUI
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("Scripting", "SetupGameLabEditorScripting()");
openlib(luaopen_GameLab_Debug);
openlib(luaopen_GameLab_Path);
openlib(luaopen_GameLab_Editor);
openlib(luaopen_GameLab_Editor_GUI);
return true;
}
|