Ejemplo n.º 1
0
        public static int Open(IntPtr L)
        {
            var reg = new Api.luaL_Reg[]
            {
                new Api.luaL_Reg("LoadBytes", LoadBytes_Lua),
                new Api.luaL_Reg("LoadText", LoadText_Lua),
                new Api.luaL_Reg("LoadObject", LoadObject_Lua),
                new Api.luaL_Reg("LoadObjects", LoadObjects_Lua),
                new Api.luaL_Reg("LoadSprite", LoadSprite_Lua),
                new Api.luaL_Reg("LoadSprites", LoadSprites_Lua),
                new Api.luaL_Reg("LoadTexture2D", LoadTexture2D_Lua),
                new Api.luaL_Reg("Load", Load_Lua),
                new Api.luaL_Reg("LoadAll", LoadAll_Lua),
                new Api.luaL_Reg("LoadAsync", LoadAsync_Lua),
                new Api.luaL_Reg("LoadCustomText", LoadCustomText_Lua),
                new Api.luaL_Reg("LoadCustomBytes", LoadCustomBytes_Lua),
                new Api.luaL_Reg("LoadCustom", LoadCustom_Lua),
                new Api.luaL_Reg("LoadCustomObject", LoadCustomObject_Lua),
                new Api.luaL_Reg("LoadCustomObjects", LoadCustomObjects_Lua),
                new Api.luaL_Reg("SetCryptoKey", SetCryptoKey_Lua),
            };

            Api.luaL_newlib(L, reg);
            return(1);
        }
Ejemplo n.º 2
0
        public static int Open(IntPtr L)
        {
            var reg = new Api.luaL_Reg[]
            {
                new Api.luaL_Reg("Download", Download_Lua),
                new Api.luaL_Reg("POST", POST_Lua),
                new Api.luaL_Reg("GET", GET_Lua),
            };

            Api.luaL_newlib(L, reg);
            return(1);
        }
Ejemplo n.º 3
0
        public static int Open(IntPtr L)
        {
            var reg = new Api.luaL_Reg[]
            {
                new Api.luaL_Reg("LoadTexture", LoadTexture_Lua),
                new Api.luaL_Reg("Untar", Untar_Lua),
                new Api.luaL_Reg("UntarFromResources", UntarFromResources_Lua),
            };

            Api.luaL_newlib(L, reg);
            return(1);
        }
Ejemplo n.º 4
0
        public static int Open(IntPtr L)
        {
            var reg = new Api.luaL_Reg[]
            {
                new Api.luaL_Reg("GetEpochTime", GetEpochTime_Lua),
                new Api.luaL_Reg("EpochNow", EpochNow_Lua),
                new Api.luaL_Reg("EpochTimeToDateTime", EpochTimeToDateTime_Lua),
                new Api.luaL_Reg("UTCNowString", UTCNowString_Lua),
                new Api.luaL_Reg("MonthStringToNumber", MonthStringToNumber_Lua),
            };

            Api.luaL_newlib(L, reg);
            return(1);
        }
Ejemplo n.º 5
0
        public static int Open(IntPtr L)
        {
            var reg = new Api.luaL_Reg[]
            {
                new Api.luaL_Reg("ConnectToResourceDB", ConnectToResourceDB_Lua),
                new Api.luaL_Reg("ConnectToFileDB", ConnectToFileDB_Lua),
                new Api.luaL_Reg("ExecuteReader", ExecuteReader_Lua),
                new Api.luaL_Reg("Execute", Execute_Lua),
                new Api.luaL_Reg("Close", Close_Lua),
            };

            Api.luaL_newlib(L, reg);
            return(1);
        }
Ejemplo n.º 6
0
        public static int Open(IntPtr L)
        {
            var connectToEditor = stubs.networking.ConnectToEditor.instance;

            connectToEditor.onEditorMessageReceived += OnEditorMessageReceived;
            var reg = new Api.luaL_Reg[]
            {
                new Api.luaL_Reg("Register", Register_Lua),
                new Api.luaL_Reg("Unregister", Unregister_Lua),
            };

            Api.luaL_newlib(L, reg);
            return(1);
        }
Ejemplo n.º 7
0
        public static int Open(IntPtr L)
        {
            var reg = new Api.luaL_Reg[]
            {
                new Api.luaL_Reg("MakeDirectory", MakeDirectory_Lua),
                new Api.luaL_Reg("GetDirectoryName", GetDirectoryName_Lua),
                new Api.luaL_Reg("GetFileName", GetFileName_Lua),
                new Api.luaL_Reg("DirectoryExists", DirectoryExists_Lua),
                new Api.luaL_Reg("FileExists", FileExists_Lua),
                new Api.luaL_Reg("ReadAllBytes", ReadAllBytes_Lua),
                new Api.luaL_Reg("ReadAllText", ReadAllText_Lua),
                new Api.luaL_Reg("WriteAllBytes", WriteAllBytes_Lua),
                new Api.luaL_Reg("WriteAllText", WriteAllText_Lua),
                new Api.luaL_Reg("DeleteFile", DeleteFile_Lua),
                new Api.luaL_Reg("DeleteDirectory", DeleteDirectory_Lua),
                new Api.luaL_Reg("Unzip", Unzip_Lua),
            };

            Api.luaL_newlib(L, reg);
            return(1);
        }