| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(GuideConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 0); |
| | | |
| | | |
| | | |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Type", _g_get_Type); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TriggerType", _g_get_TriggerType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Condition", _g_get_Condition); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "SupplementCondition", _g_get_SupplementCondition); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PreGuideId", _g_get_PreGuideId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Steps", _g_get_Steps); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "CanSkip", _g_get_CanSkip); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RemoveWhenOtherGuide", _g_get_RemoveWhenOtherGuide); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "CannotCompleteByClick", _g_get_CannotCompleteByClick); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnfoldAreas", _g_get_UnfoldAreas); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AutoCompleteTime", _g_get_AutoCompleteTime); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_SupplementCondition(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GuideConfig gen_to_be_invoked = (GuideConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.SupplementCondition); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_PreGuideId(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_UnfoldAreas(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GuideConfig gen_to_be_invoked = (GuideConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.UnfoldAreas); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_AutoCompleteTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GuideConfig gen_to_be_invoked = (GuideConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AutoCompleteTime); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |