static int SetCacheToLua(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ComponentCache obj = (ComponentCache)ToLua.CheckObject <ComponentCache>(L, 1); LuaTable arg0 = ToLua.CheckLuaTable(L, 2); obj.SetCacheToLua(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }