static int _m_GetAsset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1); { string _bundleName = LuaAPI.lua_tostring(L, 2); string _prefab = LuaAPI.lua_tostring(L, 3); UnityEngine.Object gen_ret = gen_to_be_invoked.GetAsset(_bundleName, _prefab); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddResource(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1); { string _bundleName = LuaAPI.lua_tostring(L, 2); string _assetName = LuaAPI.lua_tostring(L, 3); UnityEngine.Object _resource = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); gen_to_be_invoked.AddResource(_bundleName, _assetName, _resource); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DCET.Model.ResourcesComponent gen_ret = new DCET.Model.ResourcesComponent(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.ResourcesComponent constructor!")); }
static int _m_Dispose(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Dispose( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_DebugString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1); { string gen_ret = gen_to_be_invoked.DebugString( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_LoadOneBundle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ResourcesComponent gen_to_be_invoked = (DCET.Model.ResourcesComponent)translator.FastGetCSObj(L, 1); { string _assetBundleName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.LoadOneBundle(_assetBundleName); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }