static int _m_Awake(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.CoroutineLockSystem gen_to_be_invoked = (DCET.Model.CoroutineLockSystem)translator.FastGetCSObj(L, 1); { DCET.Model.CoroutineLock _self = (DCET.Model.CoroutineLock)translator.GetObject(L, 2, typeof(DCET.Model.CoroutineLock)); DCET.Model.CoroutineLockType _coroutineLockType; translator.Get(L, 3, out _coroutineLockType); long _key = LuaAPI.lua_toint64(L, 4); gen_to_be_invoked.Awake(_self, _coroutineLockType, _key); 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.CoroutineLockSystem gen_ret = new DCET.Model.CoroutineLockSystem(); 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.CoroutineLockSystem constructor!")); }