static int _m_TryGet(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ConfigComponent gen_to_be_invoked = (DCET.Model.ConfigComponent)translator.FastGetCSObj(L, 1); { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); int _id = LuaAPI.xlua_tointeger(L, 3); DCET.Model.IConfig gen_ret = gen_to_be_invoked.TryGet(_type, _id); translator.PushAny(L, gen_ret); return(1); } } 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.ConfigComponent gen_ret = new DCET.Model.ConfigComponent(); 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.ConfigComponent constructor!")); }
static int _m_Load(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ConfigComponent gen_to_be_invoked = (DCET.Model.ConfigComponent)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Load( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Awake(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ConfigComponentAwakeSystem gen_to_be_invoked = (DCET.Model.ConfigComponentAwakeSystem)translator.FastGetCSObj(L, 1); { DCET.Model.ConfigComponent _self = (DCET.Model.ConfigComponent)translator.GetObject(L, 2, typeof(DCET.Model.ConfigComponent)); gen_to_be_invoked.Awake(_self); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }