Пример #1
0
        static int LoadCustomText_Lua(IntPtr L)
        {
            var customString = Api.lua_chkstring(L, 1);
            var path         = Api.lua_chkstring(L, 2);
            var text         = ResMgr.LoadCustomText(customString, path);

            if (text == null)
            {
                return(0);
            }
            Api.lua_pushstring(L, text);
            return(1);
        }