core library

This commit is contained in:
MihailRis
2024-03-20 22:19:24 +03:00
parent 124986199e
commit 0140fb8e3e
3 changed files with 42 additions and 15 deletions
+8 -7
View File
@@ -114,16 +114,17 @@ void lua::LuaState::remove(const std::string& name) {
}
void lua::LuaState::createLibs() {
openlib("pack", packlib, 0);
openlib("world", worldlib, 0);
openlib("player", playerlib, 0);
openlib("inventory", inventorylib, 0);
openlib("audio", audiolib, 0);
openlib("block", blocklib, 0);
openlib("item", itemlib, 0);
openlib("time", timelib, 0);
openlib("core", corelib, 0);
openlib("file", filelib, 0);
openlib("gui", guilib, 0);
openlib("audio", audiolib, 0);
openlib("inventory", inventorylib, 0);
openlib("item", itemlib, 0);
openlib("pack", packlib, 0);
openlib("player", playerlib, 0);
openlib("time", timelib, 0);
openlib("world", worldlib, 0);
addfunc("print", lua_wrap_errors<l_print>);
}