add Heightmap class & rename bytearray to Bytearray

This commit is contained in:
MihailRis
2024-08-13 03:09:52 +03:00
parent 1a50e69769
commit da4b8bd7d4
6 changed files with 122 additions and 19 deletions
+3 -1
View File
@@ -37,6 +37,7 @@ static void create_libs(lua::State* L) {
openlib(L, "gui", guilib);
openlib(L, "input", inputlib);
openlib(L, "inventory", inventorylib);
openlib(L, "generation", generationlib);
openlib(L, "item", itemlib);
openlib(L, "json", jsonlib);
openlib(L, "mat4", mat4lib);
@@ -95,7 +96,8 @@ void lua::initialize() {
initialize_libs_extends(L);
newusertype<Bytearray, Bytearray::createMetatable>(L, "bytearray");
newusertype<Bytearray, Bytearray::createMetatable>(L, "Bytearray");
newusertype<Heightmap, Heightmap::createMetatable>(L, "Heightmap");
}
void lua::finalize() {