/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
App/include/script/LuaLibrary.h
31 строка
759 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#pragma once #include "Lua/LuaBridge.h" namespace RBX { namespace Lua { class Library { std::string libraryName; public: Library(std::string libraryName) :libraryName(libraryName) {}; const std::string& getLibraryName() const { return libraryName; } bool operator ==(const Library& other) const { return this->libraryName == other.libraryName; } }; // Represents a Reflection::EnumDescriptor::Item in Lua class LibraryBridge : public Bridge<Library> { public: static void registerClassLibrary (lua_State *L); static int find(lua_State *L, const std::string& libraryName); static void push(lua_State *L, const Library& item); static void saveLibraryResult(lua_State *L, int results, std::string libraryName); }; } }