Esempio n. 1
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        Nova.AssetCacheType o = (Nova.AssetCacheType)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Esempio n. 2
0
 static int Unpreload(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.AssetCacheType arg0 = (Nova.AssetCacheType)ToLua.CheckObject(L, 1, typeof(Nova.AssetCacheType));
         string arg1 = ToLua.CheckString(L, 2);
         Nova.AssetLoader.Unpreload(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 3
0
 static void Push(IntPtr L, Nova.AssetCacheType arg)
 {
     ToLua.Push(L, arg);
 }