Example #1
0
 static int GetRelativePath(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         AssetUtil  obj  = (AssetUtil)ToLua.CheckObject <AssetUtil>(L, 1);
         string     arg0 = ToLua.CheckString(L, 2);
         EAssetType arg1 = (EAssetType)ToLua.CheckObject(L, 3, typeof(EAssetType));
         string     o    = obj.GetRelativePath(arg0, arg1);
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }