static int _g_get_poolType(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.PoolGameObject __cl_gen_to_be_invoked = (xc.PoolGameObject)translator.FastGetCSObj(L, 1); translator.PushxcObjCachePoolType(L, __cl_gen_to_be_invoked.poolType); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_DeleteByPool(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.PoolGameObject __cl_gen_to_be_invoked = (xc.PoolGameObject)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.DeleteByPool = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_poolType(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.PoolGameObject __cl_gen_to_be_invoked = (xc.PoolGameObject)translator.FastGetCSObj(L, 1); xc.ObjCachePoolType __cl_gen_value; translator.Get(L, 2, out __cl_gen_value); __cl_gen_to_be_invoked.poolType = __cl_gen_value; } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.PoolGameObject __cl_gen_ret = new xc.PoolGameObject(); translator.Push(L, __cl_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 xc.PoolGameObject constructor!")); }
static int _m_OnDestroy(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.PoolGameObject __cl_gen_to_be_invoked = (xc.PoolGameObject)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.OnDestroy( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }