Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 722e5e3d30096674e811f5bd191246a0 |
| | | folderAsset: yes |
| | | timeCreated: 1539228128 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 172, 0, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetChatBubbleBox", _m_GetChatBubbleBox_xlua_st_); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 181, 0, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCrossServerArena", _m_GetCrossServerArena_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFuncSwitch", _m_GetFuncSwitch_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGatherSoul", _m_GetGatherSoul_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGatherSoulCompose", _m_GetGatherSoulCompose_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDungeonHelpBattle", _m_GetDungeonHelpBattle_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGatherSoulProperty", _m_GetGatherSoulProperty_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKingTreasureItem", _m_GetKingTreasureItem_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKingTreasure", _m_GetKingTreasure_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAncientRobotName", _m_GetAncientRobotName_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetChatBubbleBox", _m_GetChatBubbleBox_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIceLodeStarAward", _m_GetIceLodeStarAward_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMarketQuery", _m_GetMarketQuery_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGodWeaponEffect", _m_GetGodWeaponEffect_xlua_st_); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetCrossServerArena_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.CrossServerArenaConfig gen_ret = ConfigUtil.GetCrossServerArena( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetFuncSwitch_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.FuncSwitchConfig gen_ret = ConfigUtil.GetFuncSwitch( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetGatherSoul_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.GatherSoulConfig gen_ret = ConfigUtil.GetGatherSoul( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetGatherSoulCompose_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.GatherSoulComposeConfig gen_ret = ConfigUtil.GetGatherSoulCompose( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetDungeonHelpBattle_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.DungeonHelpBattleConfig gen_ret = ConfigUtil.GetDungeonHelpBattle( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetGatherSoulProperty_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.GatherSoulPropertyConfig gen_ret = ConfigUtil.GetGatherSoulProperty( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetKingTreasureItem_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.KingTreasureItemConfig gen_ret = ConfigUtil.GetKingTreasureItem( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetKingTreasure_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.KingTreasureConfig gen_ret = ConfigUtil.GetKingTreasure( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAncientRobotName_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __key = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | TableConfig.AncientRobotNameConfig gen_ret = ConfigUtil.GetAncientRobotName( __key ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetChatBubbleBox_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp29(object p0, int p1, out Snxxz.UI.CrossServerOneVsOneModel.CrossServerOneVsOneHistory p2) |
| | | public PlayerBuffDatas __Gen_Delegate_Imp29(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | PlayerBuffDatas __gen_ret = (PlayerBuffDatas)translator.GetObject(L, errFunc + 1, typeof(PlayerBuffDatas)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp30(object p0, int p1, out Snxxz.UI.CrossServerOneVsOneModel.CrossServerOneVsOneHistory p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<Snxxz.UI.CrossServerOneVsOnePKSeason.PkZoneInfo> __Gen_Delegate_Imp30(object p0) |
| | | public System.Collections.Generic.List<Snxxz.UI.CrossServerOneVsOnePKSeason.PkZoneInfo> __Gen_Delegate_Imp31(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp31(object p0, out Snxxz.UI.CrossServerOneVsOnePKSeason.PkZoneInfo p1) |
| | | public bool __Gen_Delegate_Imp32(object p0, out Snxxz.UI.CrossServerOneVsOnePKSeason.PkZoneInfo p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp32(object p0, out Snxxz.UI.CrossServerOneVsOnePKSeason.PkSeasonInfo p1) |
| | | public bool __Gen_Delegate_Imp33(object p0, out Snxxz.UI.CrossServerOneVsOnePKSeason.PkSeasonInfo p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp33(object p0, System.DateTime p1) |
| | | public bool __Gen_Delegate_Imp34(object p0, System.DateTime p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<HourMinute> __Gen_Delegate_Imp34(object p0) |
| | | public System.Collections.Generic.List<HourMinute> __Gen_Delegate_Imp35(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp35(object p0, System.DateTime p1) |
| | | public int __Gen_Delegate_Imp36(object p0, System.DateTime p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp36(object p0, Snxxz.UI.OperationDate p1, Snxxz.UI.OperationDate p2) |
| | | public string __Gen_Delegate_Imp37(object p0, Snxxz.UI.OperationDate p1, Snxxz.UI.OperationDate p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public uint[] __Gen_Delegate_Imp37(object p0) |
| | | public uint[] __Gen_Delegate_Imp38(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp38(object p0, out int p1, out int p2) |
| | | public void __Gen_Delegate_Imp39(object p0, out int p1, out int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp39(object p0, out int p1) |
| | | public bool __Gen_Delegate_Imp40(object p0, out int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp40(object p0, ScrollerDataType p1, object p2) |
| | | public void __Gen_Delegate_Imp41(object p0, ScrollerDataType p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ItemTipsModel __Gen_Delegate_Imp41(object p0) |
| | | public Snxxz.UI.ItemTipsModel __Gen_Delegate_Imp42(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.UI.Button __Gen_Delegate_Imp42(object p0) |
| | | public UnityEngine.UI.Button __Gen_Delegate_Imp43(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp43(object p0, ScrollerDataType p1, int p2) |
| | | public void __Gen_Delegate_Imp44(object p0, ScrollerDataType p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp44(object p0, int p1) |
| | | public int __Gen_Delegate_Imp45(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp45(object p0, object p1) |
| | | public bool __Gen_Delegate_Imp46(object p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.DungeonAssistModel __Gen_Delegate_Imp46(object p0) |
| | | public Snxxz.UI.DungeonAssistModel __Gen_Delegate_Imp47(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public FriendsModel __Gen_Delegate_Imp47(object p0) |
| | | public FriendsModel __Gen_Delegate_Imp48(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TreasureModel __Gen_Delegate_Imp48(object p0) |
| | | public Snxxz.UI.TreasureModel __Gen_Delegate_Imp49(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp49(object p0, bool p1, float p2) |
| | | public void __Gen_Delegate_Imp50(object p0, bool p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<string> __Gen_Delegate_Imp50(object p0) |
| | | public System.Collections.Generic.List<string> __Gen_Delegate_Imp51(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyModel __Gen_Delegate_Imp51(object p0) |
| | | public Snxxz.UI.FairyModel __Gen_Delegate_Imp52(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TeamModel __Gen_Delegate_Imp52(object p0) |
| | | public Snxxz.UI.TeamModel __Gen_Delegate_Imp53(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp53(object p0, int p1, out int p2) |
| | | public bool __Gen_Delegate_Imp54(object p0, int p1, out int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp54(object p0, out string p1) |
| | | public bool __Gen_Delegate_Imp55(object p0, out string p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp55(object p0, out int p1, out int p2) |
| | | public bool __Gen_Delegate_Imp56(object p0, out int p1, out int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp56(object p0, out int p1, out float p2) |
| | | public bool __Gen_Delegate_Imp57(object p0, out int p1, out float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp57(object p0, VipPrivilegeType p1) |
| | | public int __Gen_Delegate_Imp58(object p0, VipPrivilegeType p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.DungeonAssistModel.RelatedToPlayer __Gen_Delegate_Imp58(object p0, int p1) |
| | | public Snxxz.UI.DungeonAssistModel.RelatedToPlayer __Gen_Delegate_Imp59(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<string, TableConfig.DungeonHelpBattleConfig> __Gen_Delegate_Imp59(object p0) |
| | | public System.Collections.Generic.Dictionary<string, TableConfig.DungeonHelpBattleConfig> __Gen_Delegate_Imp60(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> __Gen_Delegate_Imp60(object p0) |
| | | public System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>> __Gen_Delegate_Imp61(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp61(object p0, int p1, bool p2) |
| | | public int __Gen_Delegate_Imp62(object p0, int p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public TableConfig.DungeonHelpBattleConfig __Gen_Delegate_Imp62(object p0, int p1, int p2) |
| | | public TableConfig.DungeonHelpBattleConfig __Gen_Delegate_Imp63(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp63(object p0, object p1, object p2, bool p3, bool p4) |
| | | public void __Gen_Delegate_Imp64(object p0, object p1, object p2, bool p3, bool p4) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp64(object p0, object p1, out string p2, out string p3, out bool p4, out bool p5) |
| | | public bool __Gen_Delegate_Imp65(object p0, object p1, out string p2, out string p3, out bool p4, out bool p5) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.DungeonAssistModel.AssistPlayerInfo __Gen_Delegate_Imp65(object p0, int p1) |
| | | public Snxxz.UI.DungeonAssistModel.AssistPlayerInfo __Gen_Delegate_Imp66(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<Snxxz.UI.DungeonAssistModel.AssistPlayerInfo> __Gen_Delegate_Imp66(object p0) |
| | | public System.Collections.Generic.List<Snxxz.UI.DungeonAssistModel.AssistPlayerInfo> __Gen_Delegate_Imp67(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp67(object p0, int p1, int p2, int p3) |
| | | public void __Gen_Delegate_Imp68(object p0, int p1, int p2, int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.Redpoint __Gen_Delegate_Imp68(object p0) |
| | | public Snxxz.UI.Redpoint __Gen_Delegate_Imp69(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp69(object p0, float p1) |
| | | public void __Gen_Delegate_Imp70(object p0, float p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp70(object p0) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp71(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public StoreModel __Gen_Delegate_Imp71(object p0) |
| | | public StoreModel __Gen_Delegate_Imp72(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp72(object p0, PlayerDataRefresh p1) |
| | | public void __Gen_Delegate_Imp73(object p0, PlayerDataRefresh p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp73(object p0, Snxxz.UI.PlayerDetails.DetailType p1) |
| | | public void __Gen_Delegate_Imp74(object p0, Snxxz.UI.PlayerDetails.DetailType p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyFeastModel __Gen_Delegate_Imp74(object p0) |
| | | public Snxxz.UI.FairyFeastModel __Gen_Delegate_Imp75(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp75(object p0, Snxxz.UI.FairyFeastRank p1, Snxxz.UI.FairyFeastRank p2) |
| | | public int __Gen_Delegate_Imp76(object p0, Snxxz.UI.FairyFeastRank p1, Snxxz.UI.FairyFeastRank p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp76(object p0, uint p1, int p2) |
| | | public void __Gen_Delegate_Imp77(object p0, uint p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp77(object p0, int p1) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp78(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public PlayerMainDate __Gen_Delegate_Imp78(object p0) |
| | | public PlayerMainDate __Gen_Delegate_Imp79(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RuneTowerModel __Gen_Delegate_Imp79(object p0) |
| | | public Snxxz.UI.RuneTowerModel __Gen_Delegate_Imp80(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.BossHomeModel __Gen_Delegate_Imp80(object p0) |
| | | public Snxxz.UI.BossHomeModel __Gen_Delegate_Imp81(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp81(object p0, DungeonCoolDownType p1) |
| | | public void __Gen_Delegate_Imp82(object p0, DungeonCoolDownType p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public IceCrystalVeinModel __Gen_Delegate_Imp82(object p0) |
| | | public IceCrystalVeinModel __Gen_Delegate_Imp83(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp83(object p0, int p1, bool p2) |
| | | public void __Gen_Delegate_Imp84(object p0, int p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp84(object p0, int p1, object p2, int p3) |
| | | public void __Gen_Delegate_Imp85(object p0, int p1, object p2, int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.PlayerPackModel __Gen_Delegate_Imp85(object p0) |
| | | public Snxxz.UI.PlayerPackModel __Gen_Delegate_Imp86(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp86(object p0, Snxxz.UI.Item p1, Snxxz.UI.Item p2) |
| | | public int __Gen_Delegate_Imp87(object p0, Snxxz.UI.Item p1, Snxxz.UI.Item p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp87(object p0, int p1) |
| | | public string __Gen_Delegate_Imp88(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyFeastTransmitShow __Gen_Delegate_Imp88() |
| | | public Snxxz.UI.FairyFeastTransmitShow __Gen_Delegate_Imp89() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Camera __Gen_Delegate_Imp89(object p0) |
| | | public UnityEngine.Camera __Gen_Delegate_Imp90(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyFeastTransmitShow.FairyTransmitModel __Gen_Delegate_Imp90(object p0) |
| | | public Snxxz.UI.FairyFeastTransmitShow.FairyTransmitModel __Gen_Delegate_Imp91(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public float __Gen_Delegate_Imp91(object p0) |
| | | public float __Gen_Delegate_Imp92(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RoleParticularModel __Gen_Delegate_Imp92(object p0) |
| | | public Snxxz.UI.RoleParticularModel __Gen_Delegate_Imp93(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp93(object p0, ulong p1) |
| | | public void __Gen_Delegate_Imp94(object p0, ulong p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.GameObject __Gen_Delegate_Imp94(object p0) |
| | | public UnityEngine.GameObject __Gen_Delegate_Imp95(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp95(object p0, Snxxz.UI.ServerItem p1, Snxxz.UI.ServerItem p2) |
| | | public int __Gen_Delegate_Imp96(object p0, Snxxz.UI.ServerItem p1, Snxxz.UI.ServerItem p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp96(bool p0) |
| | | public void __Gen_Delegate_Imp97(bool p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.GatherSoulDungeonModel __Gen_Delegate_Imp97(object p0) |
| | | public Snxxz.UI.GatherSoulDungeonModel __Gen_Delegate_Imp98(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp98(object p0, int p1, uint p2) |
| | | public void __Gen_Delegate_Imp99(object p0, int p1, uint p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushuint(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp99(object p0, int p1, byte p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | |
| | | #endif |
| | | } |
| | | |
| | | public PlayerTaskDatas __Gen_Delegate_Imp148(object p0) |
| | | public Snxxz.UI.KingTreasureModel __Gen_Delegate_Imp148(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureModel __gen_ret = (Snxxz.UI.KingTreasureModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.KingTreasureModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public TableConfig.KingTreasureItemConfig __Gen_Delegate_Imp149(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | TableConfig.KingTreasureItemConfig __gen_ret = (TableConfig.KingTreasureItemConfig)translator.GetObject(L, errFunc + 1, typeof(TableConfig.KingTreasureItemConfig)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp150(object p0, object p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | translator.PushAny(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | string __gen_ret = LuaAPI.lua_tostring(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.KingTreasureShowModel __Gen_Delegate_Imp151(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureShowModel __gen_ret = (Snxxz.UI.KingTreasureShowModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.KingTreasureShowModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public PlayerTaskDatas __Gen_Delegate_Imp152(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp149(object p0, int p1, int p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp153(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp150(object p0, TreasureCategory p1) |
| | | public void __Gen_Delegate_Imp154(object p0, TreasureCategory p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.VipModel __Gen_Delegate_Imp151(object p0) |
| | | public Snxxz.UI.VipModel __Gen_Delegate_Imp155(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MarketModel __Gen_Delegate_Imp152(object p0) |
| | | public Snxxz.UI.MarketModel __Gen_Delegate_Imp156(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp153(object p0) |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp157(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp154(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | public void __Gen_Delegate_Imp158(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp155(object p0) |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp159(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp156(object p0) |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp160(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp157(object p0) |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp161(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp158(object p0) |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp162(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyGrabBossModel __Gen_Delegate_Imp159(object p0) |
| | | public Snxxz.UI.FairyGrabBossModel __Gen_Delegate_Imp163(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp160(object p0) |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp164(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp161(object p0, Snxxz.UI.Operation p1) |
| | | public void __Gen_Delegate_Imp165(object p0, Snxxz.UI.Operation p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RealmModel __Gen_Delegate_Imp162(object p0) |
| | | public Snxxz.UI.RealmModel __Gen_Delegate_Imp166(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp163(object p0) |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp167(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp164(object p0) |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp168(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp165(object p0) |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp169(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp166(object p0) |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp170(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UIEffect __Gen_Delegate_Imp167(object p0) |
| | | public UIEffect __Gen_Delegate_Imp171(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp168(object p0, object p1, object p2) |
| | | public void __Gen_Delegate_Imp172(object p0, object p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.KingTreasureModel __Gen_Delegate_Imp169(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureModel __gen_ret = (Snxxz.UI.KingTreasureModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.KingTreasureModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig __Gen_Delegate_Imp170(object p0) |
| | | public Treasure3DConfig __Gen_Delegate_Imp173(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.AchievementModel __Gen_Delegate_Imp171(object p0) |
| | | public Snxxz.UI.AchievementModel __Gen_Delegate_Imp174(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp172(object p0, int p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp175(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp173(object p0, UnityEngine.Vector3 p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp176(object p0, UnityEngine.Vector3 p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp174(object p0, float p1) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp177(object p0, float p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp175(object p0, bool p1, bool p2) |
| | | public void __Gen_Delegate_Imp178(object p0, bool p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp176(object p0, Snxxz.UI.TreasureAnimation.TreasureShowStep p1) |
| | | public void __Gen_Delegate_Imp179(object p0, Snxxz.UI.TreasureAnimation.TreasureShowStep p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp177(object p0, bool p1, int p2) |
| | | public void __Gen_Delegate_Imp180(object p0, bool p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp178(object p0, PackType p1, int p2, int p3) |
| | | public void __Gen_Delegate_Imp181(object p0, PackType p1, int p2, int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Transform __Gen_Delegate_Imp179(object p0) |
| | | public UnityEngine.Transform __Gen_Delegate_Imp182(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp180(object p0) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp183(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp181(object p0) |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp184(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp182() |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp185() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public TreasureCategory __Gen_Delegate_Imp183(object p0) |
| | | public TreasureCategory __Gen_Delegate_Imp186(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp184(object p0, bool p1, TreasureCategory p2) |
| | | public void __Gen_Delegate_Imp187(object p0, bool p1, TreasureCategory p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp185(object p0, TreasureCategory p1, object p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp188(object p0, TreasureCategory p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp186(object p0, TreasureCategory p1, bool p2) |
| | | public void __Gen_Delegate_Imp189(object p0, TreasureCategory p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp187(object p0, object p1, float p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp190(object p0, object p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp188(object p0) |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp191(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(GAMgr); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 30, 7, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 31, 8, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddNeedDestroyPrefab", _m_AddNeedDestroyPrefab); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveNeedDestroyPrefab", _m_RemoveNeedDestroyPrefab); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReleaseAll", _m_ReleaseAll); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBySID", _m_GetBySID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetByCID", _m_GetByCID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCloserCollectNpc", _m_GetCloserCollectNpc); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCloserFightNpc", _m_GetCloserFightNpc); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCloserNPC", _m_GetCloserNPC); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGroupList", _m_GetGroupList); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFightNpcRequest", _e_OnFightNpcRequest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFightNpcRelease", _e_OnFightNpcRelease); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "s_NpcID2BundleName", _g_get_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reAdjustPosList", _g_get_reAdjustPosList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "s_NpcID2BundleName", _g_get_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "s_NpcID2Assetname", _g_get_s_NpcID2Assetname); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "needDestroyPrefabList", _g_get_needDestroyPrefabList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "needDieList", _g_get_needDieList); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "otherPlayerAtkHeroDict", _g_get_otherPlayerAtkHeroDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "_removeIdList", _g_get__removeIdList); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "s_NpcID2BundleName", _s_set_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "reAdjustPosList", _s_set_reAdjustPosList); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "s_NpcID2BundleName", _s_set_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "s_NpcID2Assetname", _s_set_s_NpcID2Assetname); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "needDestroyPrefabList", _s_set_needDestroyPrefabList); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "needDieList", _s_set_needDieList); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetCloserCollectNpc(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | GAMgr gen_to_be_invoked = (GAMgr)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); |
| | | |
| | | GActor gen_ret = gen_to_be_invoked.GetCloserCollectNpc( _center ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetCloserFightNpc(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_reAdjustPosList(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GAMgr gen_to_be_invoked = (GAMgr)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.reAdjustPosList); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_s_NpcID2BundleName(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_reAdjustPosList(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GAMgr gen_to_be_invoked = (GAMgr)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.reAdjustPosList = (System.Collections.Generic.List<GActor>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<GActor>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_s_NpcID2BundleName(RealStatePtr L) |
| | | { |
| | | try { |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a545fb3dcf719304fa74180c10219375 |
| | | folderAsset: yes |
| | | timeCreated: 1542357825 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.CrossServerOneVsOneModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 20, 16, 6); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 22, 18, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnReceivePackage", _m_OnReceivePackage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetOneVsOneHistory", _m_TryGetOneVsOneHistory); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPkInfoLocalSave", _m_SetPkInfoLocalSave); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateCrossArenaRedpoint", _m_UpdateCrossArenaRedpoint); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateCrossDayAwardsRedpoint", _m_UpdateCrossDayAwardsRedpoint); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateCrossMatchRedpoint", _m_UpdateCrossMatchRedpoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateDayAwardsEvent", _e_UpdateDayAwardsEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMatchStateEvent", _e_UpdateMatchStateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePkResultEvent", _e_UpdatePkResultEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "oneVsOneHistoryRefresh", _e_oneVsOneHistoryRefresh); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PkResultLocalSaveKey", _g_get_PkResultLocalSaveKey); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "localSaveResults", _g_get_localSaveResults); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isClickCoolTime", _g_get_isClickCoolTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsMatching", _g_get_IsMatching); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "matchStartTime", _g_get_matchStartTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "roundEndTime", _g_get_roundEndTime); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dayAwardTypelist", _g_get_dayAwardTypelist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "afterOpenDayOpenCross", _g_get_afterOpenDayOpenCross); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "pkResultInfo", _g_get_pkResultInfo); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossServerRedpoint", _g_get_crossServerRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossOneVsOneRedpoint", _g_get_crossOneVsOneRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossArenaRedpoint", _g_get_crossArenaRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossDayAwardsRedpoint", _g_get_crossDayAwardsRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossMatchRedpoint", _g_get_crossMatchRedpoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsMatching", _s_set_IsMatching); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "isClickCoolTime", _s_set_isClickCoolTime); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsMatching", _s_set_IsMatching); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "matchStartTime", _s_set_matchStartTime); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossServerRedpoint", _s_set_crossServerRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossOneVsOneRedpoint", _s_set_crossOneVsOneRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossArenaRedpoint", _s_set_crossArenaRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossDayAwardsRedpoint", _s_set_crossDayAwardsRedpoint); |
| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); |
| | | |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossServerDataMapId", Snxxz.UI.CrossServerOneVsOneModel.CrossServerDataMapId); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossServerRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossServerRedKey); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossOneVsOneRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossOneVsOneRedKey); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossArenaRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossArenaRedKey); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossDayAwardsRedKey", Snxxz.UI.CrossServerOneVsOneModel.CrossDayAwardsRedKey); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateCrossArenaRedpoint(RealStatePtr L) |
| | | static int _m_UpdateCrossDayAwardsRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | { |
| | | |
| | | gen_to_be_invoked.UpdateCrossDayAwardsRedpoint( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateCrossMatchRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UpdateCrossMatchRedpoint( ); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.localSaveResults); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isClickCoolTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isClickCoolTime); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_crossServerRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.crossServerRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_crossOneVsOneRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_isClickCoolTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.isClickCoolTime = LuaAPI.lua_toboolean(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_IsMatching(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | System.DateTime gen_value;translator.Get(L, 2, out gen_value); |
| | | gen_to_be_invoked.matchStartTime = gen_value; |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_crossServerRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.crossServerRedpoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdateMatchStateEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.UpdateMatchStateEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateMatchStateEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.CrossServerOneVsOneModel.UpdateMatchStateEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdatePkResultEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FairyFeastModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 8, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 9, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "fairyFeastPlayerUpdate", _e_fairyFeastPlayerUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transmitCostSeconds", _g_get_transmitCostSeconds); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transmitExpSeconds", _g_get_transmitExpSeconds); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "riseLevel", _g_get_riseLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "expFlyStage", _g_get_expFlyStage); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "expFlyCount", _g_get_expFlyCount); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_transmitExpSeconds(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushnumber(L, gen_to_be_invoked.transmitExpSeconds); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_riseLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.GatherSoulDungeonModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 9, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 12, 9, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAttackDefendSurplusCount", _m_GetAttackDefendSurplusCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIceDefendSurplusCount", _m_GetIceDefendSurplusCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnReceiveDungeonMessage", _m_OnReceiveDungeonMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetDungeonItems", _m_TryGetDungeonItems); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDefendNpcCount", _m_GetDefendNpcCount); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAttackDefendSurplusCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetAttackDefendSurplusCount( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetIceDefendSurplusCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetIceDefendSurplusCount( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnReceiveDungeonMessage(RealStatePtr L) |
| | | { |
| | | try { |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUIKingTreasureShowModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.KingTreasureShowModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInitData", _m_SetInitData); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectDes", _g_get_effectDes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "kingTreasureItemConfig", _g_get_kingTreasureItemConfig); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "treasureId", _g_get_treasureId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "treasureSource", _g_get_treasureSource); |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_ret = new Snxxz.UI.KingTreasureShowModel(); |
| | | 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 Snxxz.UI.KingTreasureShowModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Init( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnBeforePlayerDataInitialize( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPlayerLoginOk(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnPlayerLoginOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UnInit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UnInit( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetInitData(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.SetInitData( _itemId ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_effectDes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.effectDes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_kingTreasureItemConfig(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.kingTreasureItemConfig); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_treasureId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.treasureId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_treasureSource(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.KingTreasureShowModel gen_to_be_invoked = (Snxxz.UI.KingTreasureShowModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.treasureSource); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b6248d0dfa1fb2a43986ad2ad99f1b81 |
| | | timeCreated: 1546147120 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) |
| | | { |
| | | string _guid = LuaAPI.lua_tostring(L, 2); |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 3); |
| | | double _cdTime = LuaAPI.lua_tonumber(L, 4); |
| | | int _serverSurplusTime = LuaAPI.xlua_tointeger(L, 5); |
| | | |
| | | gen_to_be_invoked.Register( _guid, _itemId, _cdTime ); |
| | | gen_to_be_invoked.Register( _guid, _itemId, _cdTime, _serverSurplusTime ); |
| | | |
| | | |
| | | |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 642127ab104febd4193bdbc5ceea06fa |
| | | timeCreated: 1545203730 |
| | | timeCreated: 1546147185 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUIOpponentInformationWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.OpponentInformation); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 3, 2, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOpponentInformation0418", _m_GetOpponentInformation0418); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOpponentInformation0434", _m_GetOpponentInformation0434); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShieldUpdate", _e_ShieldUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PlayerID", _g_get_PlayerID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ExAttr4", _g_get_ExAttr4); |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.OpponentInformation gen_ret = new Snxxz.UI.OpponentInformation(); |
| | | 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 Snxxz.UI.OpponentInformation constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetOpponentInformation0418(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OpponentInformation gen_to_be_invoked = (Snxxz.UI.OpponentInformation)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | H0418_tagObjInfoRefresh _info = (H0418_tagObjInfoRefresh)translator.GetObject(L, 2, typeof(H0418_tagObjInfoRefresh)); |
| | | |
| | | gen_to_be_invoked.GetOpponentInformation0418( _info ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetOpponentInformation0434(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OpponentInformation gen_to_be_invoked = (Snxxz.UI.OpponentInformation)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | H0434_tagAreaPlayerAppearEx _info = (H0434_tagAreaPlayerAppearEx)translator.GetObject(L, 2, typeof(H0434_tagAreaPlayerAppearEx)); |
| | | |
| | | gen_to_be_invoked.GetOpponentInformation0434( _info ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_PlayerID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.OpponentInformation gen_to_be_invoked = (Snxxz.UI.OpponentInformation)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.PlayerID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ExAttr4(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.OpponentInformation gen_to_be_invoked = (Snxxz.UI.OpponentInformation)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ExAttr4); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_ShieldUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.OpponentInformation gen_to_be_invoked = (Snxxz.UI.OpponentInformation)translator.FastGetCSObj(L, 1); |
| | | System.Action<int, int> gen_delegate = translator.GetDelegate<System.Action<int, int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int, int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.ShieldUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.ShieldUpdate -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.OpponentInformation.ShieldUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: efa2a5a505c59b146976fcd2832b848c |
| | | timeCreated: 1546147121 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | string _guid = LuaAPI.lua_tostring(L, 2); |
| | | int _itemID = LuaAPI.xlua_tointeger(L, 3); |
| | | int _getTime = LuaAPI.xlua_tointeger(L, 4); |
| | | int _serverSurplusTime = LuaAPI.xlua_tointeger(L, 5); |
| | | |
| | | gen_to_be_invoked.SetItemEffectCDTime( _guid, _itemID, _getTime ); |
| | | gen_to_be_invoked.SetItemEffectCDTime( _guid, _itemID, _getTime, _serverSurplusTime ); |
| | | |
| | | |
| | | |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 616e49c88c2f66f49b13217febba0b98 |
| | | timeCreated: 1545203730 |
| | | timeCreated: 1546147185 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | translator.DelayWrapLoader(typeof(Item_Class), Item_ClassWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OpponentInformation), SnxxzUIOpponentInformationWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DailyQuestActionTimer), SnxxzUIDailyQuestActionTimerWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DogzDungeonModel), SnxxzUIDogzDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DungeonAssistModel), SnxxzUIDungeonAssistModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit2(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DungeonAssistModel), SnxxzUIDungeonAssistModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.Dungeon), SnxxzUIDungeonWrap.__Register); |
| | | |
| | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BatchUseModel), SnxxzUIBatchUseModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.KingTreasureShowModel), SnxxzUIKingTreasureShowModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(KnapSackEventMgr), KnapSackEventMgrWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(CoinTaskTipModel), CoinTaskTipModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(FeatureNoticeModel), FeatureNoticeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MainRedDot), SnxxzUIMainRedDotWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OffLineOnHookModel), SnxxzUIOffLineOnHookModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BuySuccessModel), SnxxzUIBuySuccessModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(StoreModel), StoreModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(EquipReinforceModel), EquipReinforceModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PlayerSuitModel), SnxxzUIPlayerSuitModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeDownMgr), TimeDownMgrWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.UI3DModelExhibition), SnxxzUIUI3DModelExhibitionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ButtonEx), ButtonExWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(EffectMgr), EffectMgrWrap.__Register); |
| | | |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 11479d6613f53454b9f092ed34c058f8 |
| | | timeCreated: 1545808556 |
| | | timeCreated: 1546147185 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | <type fullname="SelectEquipModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.CrossServerOneVsOneModel" preserve="all"/> |
| | | <type fullname="Item_Class" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OpponentInformation" preserve="all"/> |
| | | <type fullname="Snxxz.UI.DailyQuestActionTimer" preserve="all"/> |
| | | <type fullname="Snxxz.UI.DailyQuestModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.ResourcesBackModel" preserve="all"/> |
| | |
| | | <type fullname="Snxxz.UI.PlayerPackModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.TreasureEffectModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.BatchUseModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.KingTreasureShowModel" preserve="all"/> |
| | | <type fullname="KnapSackEventMgr" preserve="all"/> |
| | | <type fullname="Snxxz.UI.LoginModel" preserve="all"/> |
| | | <type fullname="ServerListCenter" preserve="all"/> |
| | |
| | | var coolData = KnapsackTimeCDMgr.Instance.GetItemCoolById(model.currentEquipGuid);
|
| | | if (model.CheckIsAutoEquip(betterEquip) && coolData == null)
|
| | | {
|
| | | KnapsackTimeCDMgr.Instance.Register(betterEquip.itemInfo.ItemGUID, betterEquip.itemId, model.autoEquipCoolTime);
|
| | | KnapsackTimeCDMgr.Instance.Register(betterEquip.itemInfo.ItemGUID, betterEquip.itemId, model.autoEquipCoolTime,0);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class KnapsackTimeCDMgr : SingletonMonobehaviour<KnapsackTimeCDMgr>
|
| | | public class KnapsackTimeCDMgr : SingletonMonobehaviour<KnapsackTimeCDMgr>
|
| | | |
| | | {
|
| | | private List<ItemCDCool> itemCDList = new List<ItemCDCool>();
|
| | |
| | | public event Action<string> RefresCoolTimeAct;
|
| | | public event Action<string> RefreshItemOverdueTimeAct;
|
| | | public event Action<string> RefreshItemOverdueAct;
|
| | | public event Action<int,int> RefreshNormalCDAct;
|
| | | public event Action<int, int> RefreshNormalCDAct;
|
| | | int secondBuf = -1;
|
| | | int minuteBuf = -1;
|
| | | private void LateUpdate()
|
| | |
| | | CheckItemCoolTime(TimeRefreshType.Frame);
|
| | | var minute = DateTime.Now.Minute;
|
| | | var second = DateTime.Now.Second;
|
| | | if(second != secondBuf)
|
| | | if (second != secondBuf)
|
| | | {
|
| | | CheckNormalCoolTime(TimeRefreshType.Second);
|
| | | secondBuf = second;
|
| | |
| | | }
|
| | | break;
|
| | | case TimeRefreshType.Minute:
|
| | | if(RefreshItemOverdueTimeAct != null)
|
| | | if (RefreshItemOverdueTimeAct != null)
|
| | | {
|
| | | RefreshItemOverdueTimeAct(itemCDList[i].guid);
|
| | | }
|
| | |
| | | case TimeRefreshType.Frame:
|
| | | break;
|
| | | case TimeRefreshType.Second:
|
| | | if(RefreshNormalCDAct != null)
|
| | | if (RefreshNormalCDAct != null)
|
| | | {
|
| | | RefreshNormalCDAct(normalCDList[i].code,(int)remianCD);
|
| | | RefreshNormalCDAct(normalCDList[i].code, (int)remianCD);
|
| | | }
|
| | | break;
|
| | | case TimeRefreshType.Minute:
|
| | |
| | |
|
| | | }
|
| | |
|
| | | public void Register(string guid,int itemId,double cdTime)
|
| | | public void Register(string guid, int itemId, double cdTime,int serverSurplusTime)
|
| | | {
|
| | | int index;
|
| | | if (ContainsItemCD(guid,out index))
|
| | | if (ContainsItemCD(guid, out index))
|
| | | {
|
| | | itemCDList[index].SetTime(cdTime);
|
| | | itemCDList[index].SetTime(serverSurplusTime>0? serverSurplusTime: cdTime);
|
| | | }
|
| | | else
|
| | | {
|
| | | ItemCDCool cool = new ItemCDCool(guid,itemId,cdTime);
|
| | | ItemCDCool cool = new ItemCDCool(guid, itemId, serverSurplusTime > 0 ? serverSurplusTime : cdTime);
|
| | | itemCDList.Add(cool);
|
| | | }
|
| | | }
|
| | |
|
| | | public void Register(int code,double cdTime)
|
| | | public void Register(int code, double cdTime)
|
| | | {
|
| | | int index;
|
| | | if (ContainsNormalCD(code, out index))
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | NormalCDCool cool = new NormalCDCool(code,cdTime);
|
| | | NormalCDCool cool = new NormalCDCool(code, cdTime);
|
| | | normalCDList.Add(cool);
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | List<ItemCDCool> typeCoollist = new List<ItemCDCool>();
|
| | | public List<ItemCDCool> GetItemCoolByCDType(int type,out bool isCool)
|
| | | public List<ItemCDCool> GetItemCoolByCDType(int type, out bool isCool)
|
| | | {
|
| | | typeCoollist.Clear();
|
| | | isCool = false;
|
| | | for (int i = 0; i < itemCDList.Count; i++)
|
| | | typeCoollist.Clear();
|
| | | isCool = false;
|
| | | for (int i = 0; i < itemCDList.Count; i++)
|
| | | {
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemCDList[i].itemId);
|
| | | if(itemConfig != null |
| | | if (itemConfig != null
|
| | | && itemConfig.CDType == type
|
| | | && itemCDList[i].GetRemainTime() > 0)
|
| | | {
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | private bool ContainsNormalCD(int code,out int index)
|
| | | private bool ContainsNormalCD(int code, out int index)
|
| | | {
|
| | | index = 0;
|
| | | for (int i = 0; i < normalCDList.Count; i++)
|
| | |
| | | public int itemId;
|
| | | public double totalTime;
|
| | | public DateTime startTime { get; private set; }
|
| | | public ItemCDCool(string guid,int itemId,double totalTime)
|
| | |
|
| | | public ItemCDCool(string guid, int itemId, double totalTime)
|
| | | {
|
| | | this.guid = guid;
|
| | | this.itemId = itemId;
|
| | |
| | | public double GetRemainTime()
|
| | | {
|
| | | double remainTime = totalTime - (DateTime.Now - startTime).TotalSeconds;
|
| | | if(remainTime <= 0)
|
| | | if (remainTime <= 0)
|
| | | {
|
| | | remainTime = 0;
|
| | | }
|
| | |
| | | public int code;
|
| | | public double totalTime;
|
| | | public DateTime startTime { get; private set; }
|
| | | public NormalCDCool(int code,double totalTime)
|
| | | public NormalCDCool(int code, double totalTime)
|
| | | {
|
| | | this.code = code;
|
| | | this.totalTime = totalTime;
|
| | |
| | | }
|
| | |
|
| | | useDataDict = ConfigParse.Analysis(info.UserData);
|
| | | var serverSurplusTime = 0;
|
| | | if (useDataDict != null && useDataDict.ContainsKey(48) && useDataDict[48].Count > 0)
|
| | | {
|
| | | serverSurplusTime = useDataDict[48][0];
|
| | | }
|
| | |
|
| | | this.equipScore = modelInterface.SetEquipScore(packType,itemInfo.ItemID,useDataDict);
|
| | | if(GetUseDataModel((int)ItemUseDataKey.Def_IudetItemCount) != null)
|
| | | {
|
| | |
| | | case EquipReduceType.Def_EquipReduceType_ATK:
|
| | | break;
|
| | | case EquipReduceType.Def_EquipReduceType_Time:
|
| | | modelInterface.SetItemEffectCDTime(info.ItemGUID, info.ItemID, itemEffectTime[0]);
|
| | | modelInterface.SetItemEffectCDTime(info.ItemGUID, info.ItemID, itemEffectTime[0], serverSurplusTime);
|
| | | break;
|
| | | case EquipReduceType.Def_EquipReduceType_AttackValue:
|
| | | break;
|
| | |
| | | case EquipReduceType.Def_EquipReduceType_Horse:
|
| | | break;
|
| | | case EquipReduceType.Def_EquipReduceType_RTimeItem:
|
| | | modelInterface.SetItemEffectCDTime(info.ItemGUID, info.ItemID, itemEffectTime[0]);
|
| | | modelInterface.SetItemEffectCDTime(info.ItemGUID, info.ItemID, itemEffectTime[0], serverSurplusTime);
|
| | | break;
|
| | | case EquipReduceType.Def_EquipReduceType_Day:
|
| | | break;
|
| | |
| | | /// <summary>
|
| | | /// 物品使用时间限制
|
| | | /// </summary>
|
| | | public void SetItemEffectCDTime(string guid, int itemID, int getTime)
|
| | | public void SetItemEffectCDTime(string guid, int itemID, int getTime,int serverSurplusTime)
|
| | | {
|
| | | double time = GetTimeOffest(TimeUtility.GetTime((uint)getTime));
|
| | | if (time < 0)
|
| | |
| | | return;
|
| | | }
|
| | | double remainTime = itemConfig.ExpireTime - time;
|
| | | KnapsackTimeCDMgr.Instance.Register(guid,itemID,remainTime);
|
| | | KnapsackTimeCDMgr.Instance.Register(guid,itemID,remainTime, serverSurplusTime);
|
| | | }
|
| | |
|
| | | public double GetTimeOffest(DateTime getTime)
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PlayerPackModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | public class PlayerPackModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public Dictionary<int, int> DrugToDungeonDict { get; private set; } //key 丹药ID,value副本ID
|
| | |
| | | public int MaxDepotGridCnt { get; private set; }
|
| | | public int InitDepotGridCnt { get; private set; }
|
| | | BlastFurnaceModel FurnaceModel { get { return ModelCenter.Instance.GetModel<BlastFurnaceModel>(); } }
|
| | | public List<int> LocalSavePlaceArray { get; private set;}
|
| | | public List<int> LocalSavePlaceArray { get; private set; }
|
| | | public override void Init()
|
| | | {
|
| | | ParseConfig();
|
| | |
| | |
|
| | | makeDruglist = new List<AttrFruitConfig>();
|
| | | List<AttrFruitConfig> fruitlist = Config.Instance.GetAllValues<AttrFruitConfig>();
|
| | | for(int i = 0; i < fruitlist.Count; i++)
|
| | | for (int i = 0; i < fruitlist.Count; i++)
|
| | | {
|
| | | if(fruitlist[i].FuncID == 2)
|
| | | if (fruitlist[i].FuncID == 2)
|
| | | {
|
| | | makeDruglist.Add(fruitlist[i]);
|
| | | }
|
| | |
| | |
|
| | | decomposeAttrDict.Clear();
|
| | | List<EquipDeComposeConfig> decomlist = Config.Instance.GetAllValues<EquipDeComposeConfig>();
|
| | | for(int i = 0; i < decomlist.Count;i++)
|
| | | for (int i = 0; i < decomlist.Count; i++)
|
| | | {
|
| | | JsonData attrData = JsonMapper.ToObject(decomlist[i].Attr);
|
| | | Dictionary<int, int> attrDict = new Dictionary<int, int>();
|
| | | decomposeAttrDict.Add(decomlist[i].LV,attrDict);
|
| | | decomposeAttrDict.Add(decomlist[i].LV, attrDict);
|
| | | foreach (var id in attrData.Keys)
|
| | | {
|
| | | attrDict.Add(int.Parse(id),int.Parse(attrData[id].ToString()));
|
| | | attrDict.Add(int.Parse(id), int.Parse(attrData[id].ToString()));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | public void OnAfterPlayerDataInitialize()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | |
| | | EquipDecomRedCtrl();
|
| | | RoleEquipLocalSave = StringUtility.Contact("RoleEquipLocalSave", PlayerDatas.Instance.baseData.PlayerID);
|
| | | StrengthAttrShift_RecordKey = StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "StrengthAttrShift");
|
| | | if(LocalSave.GetIntArray(RoleEquipLocalSave) != null)
|
| | | if (LocalSave.GetIntArray(RoleEquipLocalSave) != null)
|
| | | {
|
| | | LocalSavePlaceArray = LocalSave.GetIntArray(RoleEquipLocalSave).ToList();
|
| | | }
|
| | |
| | | {
|
| | | LocalSavePlaceArray = null;
|
| | | }
|
| | | |
| | |
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += UpdatePlayerLv;
|
| | | UpdatePlayerLv(PlayerDataRefresh.LV);
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | PackModelInterface _modelInterface;
|
| | | PackModelInterface modelInterface
|
| | | {
|
| | | PackModelInterface modelInterface {
|
| | | get { return _modelInterface ?? (_modelInterface = ModelCenter.Instance.GetModel<PackModelInterface>()); }
|
| | | }
|
| | |
|
| | | ItemTipsModel _itemTipsModel;
|
| | | ItemTipsModel itemTipsModel
|
| | | {
|
| | | get
|
| | | {
|
| | | ItemTipsModel itemTipsModel {
|
| | | get {
|
| | | return _itemTipsModel ?? (_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>());
|
| | | }
|
| | | }
|
| | |
| | | public event Action<int> RefreshItemDayUseCntAct; //刷新物品每日使用数量
|
| | | public event Action<int> RefreshItemSumUseCntAct; //刷新物品总使用数量
|
| | |
|
| | | public bool isPlayBetterEquipEffect { get;set;} //整理背包时是否播放特效
|
| | | public bool isPlayBetterEquipEffect { get; set; } //整理背包时是否播放特效
|
| | |
|
| | | #region 接收服务端数据
|
| | | public bool showDropItem { get; private set; }
|
| | |
| | | SinglePackModel packModel = new SinglePackModel(type);
|
| | | playerPackDict.Add(type, packModel);
|
| | | }
|
| | | |
| | | if(isPlayBetterEquipEffect)
|
| | |
|
| | | if (isPlayBetterEquipEffect)
|
| | | {
|
| | | modelInterface.itemModelDict.Clear();
|
| | | }
|
| | |
| | | itemInfo.ItemGUID = item.ItemGUID;
|
| | | playerPackDict[type].SetPackModel(itemInfo);
|
| | | DebugEx.Log("Add:" + item.ItemGUID);
|
| | | if(RefreshItemCountAct != null)
|
| | | if (RefreshItemCountAct != null)
|
| | | {
|
| | | RefreshItemCountAct(type, itemInfo.ItemPlace, itemInfo.ItemID);
|
| | | }
|
| | | |
| | |
|
| | | if (ItemCntAddAct != null)
|
| | | {
|
| | | ItemCntAddAct(type, itemInfo.ItemPlace, itemInfo.ItemID);
|
| | |
| | |
|
| | | playerPackDict[type].SetOpenGridCount(useCount.CanUseCount);
|
| | |
|
| | | if(GridRefreshEvent != null)
|
| | | if (GridRefreshEvent != null)
|
| | | {
|
| | | GridRefreshEvent(type);
|
| | | }
|
| | |
| | | isPlayBetterEquipEffect = false;
|
| | | PackType type = (PackType)refresh.PackType;
|
| | | SinglePackModel singlePack = null;
|
| | | playerPackDict.TryGetValue(type,out singlePack);
|
| | | if(singlePack != null)
|
| | | playerPackDict.TryGetValue(type, out singlePack);
|
| | | if (singlePack != null)
|
| | | {
|
| | | ItemModel itemModel = singlePack.GetItemModelByIndex(refresh.ItemIndex);
|
| | | if (itemModel != null)
|
| | |
| | | }
|
| | | itemModel.RefreshItemCount(refresh.ItemCount);
|
| | |
|
| | | if(isAddItemCount)
|
| | | if (isAddItemCount)
|
| | | {
|
| | | if (ItemCntAddAct != null)
|
| | | {
|
| | | ItemCntAddAct(type,itemModel.itemInfo.ItemPlace, itemModel.itemInfo.ItemID);
|
| | | ItemCntAddAct(type, itemModel.itemInfo.ItemPlace, itemModel.itemInfo.ItemID);
|
| | | }
|
| | | modelInterface.GetPreciousItem(itemModel);
|
| | | modelInterface.RefreshPickItem(type,itemModel.itemInfo.ItemGUID);
|
| | | modelInterface.RefreshPickItem(type, itemModel.itemInfo.ItemGUID);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | public void ClearPackModel(H0711_tagClearItemPack clearPack)
|
| | |
| | | PackType type = (PackType)clearPack.PackIndex;
|
| | | SinglePackModel singlePack = null;
|
| | | playerPackDict.TryGetValue(type, out singlePack);
|
| | | if(singlePack != null)
|
| | | if (singlePack != null)
|
| | | {
|
| | | singlePack.ClearPackModel();
|
| | | }
|
| | |
| | | isPlayBetterEquipEffect = false;
|
| | | SetLookIndex(null);
|
| | | PackType type = (PackType)clearItem.PackType;
|
| | | |
| | |
|
| | | SinglePackModel singlePack = null;
|
| | | playerPackDict.TryGetValue(type, out singlePack);
|
| | | string guid = "";
|
| | |
| | | ItemModel itemModel = singlePack.GetItemModelByIndex(clearItem.ItemIndex);
|
| | | guid = itemModel.itemInfo.ItemGUID;
|
| | | int itemId = itemModel.itemInfo.ItemID;
|
| | | DeleteItemDictByGUID(type,itemModel.itemInfo.ItemGUID);
|
| | | DeleteItemDictByGUID(type, itemModel.itemInfo.ItemGUID);
|
| | | singlePack.ClearItemModelByIndex(clearItem.ItemIndex);
|
| | | if (RefreshItemCountAct != null)
|
| | | {
|
| | | RefreshItemCountAct(type, clearItem.ItemIndex,itemId);
|
| | | RefreshItemCountAct(type, clearItem.ItemIndex, itemId);
|
| | | }
|
| | |
|
| | | if (ItemCntReduceAct != null)
|
| | | {
|
| | | ItemCntReduceAct(type,clearItem.ItemIndex, itemId);
|
| | | ItemCntReduceAct(type, clearItem.ItemIndex, itemId);
|
| | | }
|
| | | }
|
| | | if (type == PackType.rptEquip)
|
| | |
| | | {
|
| | | KnapsackTimeCDMgr.Instance.UnRegister(guid);
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | public void PackResetOk(H0316_tagPackResetOK packreset)
|
| | |
| | | return;
|
| | |
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>((int)success.ItemID);
|
| | | MakeUseItemSuccess(success.ItemIndex,(int)success.ItemID);
|
| | | MakeUseItemSuccess(success.ItemIndex, (int)success.ItemID);
|
| | |
|
| | | switch (success.ItemID)
|
| | | {
|
| | |
| | |
|
| | | if (UseItemSuccessAct != null)
|
| | | {
|
| | | UseItemSuccessAct(success.ItemIndex,(int)success.ItemID);
|
| | | UseItemSuccessAct(success.ItemIndex, (int)success.ItemID);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(id);
|
| | | if (itemConfig.CDType != 0)
|
| | | {
|
| | | float cdTime = (float)Math.Round((double)itemConfig.CDTime / 1000, 1);
|
| | | float configCdTime = (float)Math.Round((double)itemConfig.CDTime / 1000, 1);
|
| | | List<ItemModel> modellist = null;
|
| | | GetSinglePackModel(PackType.rptItem).GetItemCountByType((int)ItemType.Buff, out modellist);
|
| | | for (int i = 0; i < modellist.Count; i++)
|
| | |
| | | || modellist[i].itemId == 903
|
| | | || modellist[i].itemId == 904)
|
| | | {
|
| | | KnapsackTimeCDMgr.Instance.Register(modellist[i].itemInfo.ItemGUID, modellist[i].itemInfo.ItemID, cdTime);
|
| | | var realCdTime = 0;
|
| | | if (modellist[i].useDataDict != null && modellist[i].useDataDict.ContainsKey(48) && modellist[i].useDataDict[48].Count > 0)
|
| | | {
|
| | | realCdTime = modellist[i].useDataDict[48][0];
|
| | | }
|
| | |
|
| | | KnapsackTimeCDMgr.Instance.Register(modellist[i].itemInfo.ItemGUID, modellist[i].itemInfo.ItemID, configCdTime, realCdTime);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | public void SetItemGUIDDict(ItemModel itemModel)
|
| | | {
|
| | | if(!itemGUIDDict.ContainsKey(itemModel.itemInfo.ItemGUID))
|
| | | if (!itemGUIDDict.ContainsKey(itemModel.itemInfo.ItemGUID))
|
| | | {
|
| | | itemGUIDDict.Add(itemModel.itemInfo.ItemGUID,itemModel);
|
| | | itemGUIDDict.Add(itemModel.itemInfo.ItemGUID, itemModel);
|
| | | GetItemEventCtrl(itemModel);
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void DeleteItemDictByGUID(PackType type,string guid)
|
| | | public void DeleteItemDictByGUID(PackType type, string guid)
|
| | | {
|
| | |
|
| | | if(itemGUIDDict.ContainsKey(guid))
|
| | | if (itemGUIDDict.ContainsKey(guid))
|
| | | {
|
| | | if(itemGUIDDict[guid].packType == type)
|
| | | if (itemGUIDDict[guid].packType == type)
|
| | | {
|
| | | itemGUIDDict.Remove(guid);
|
| | | }
|
| | |
| | | itemDayUseCntDict[itemId] = cnt;
|
| | | }
|
| | |
|
| | | if(RefreshItemDayUseCntAct != null)
|
| | | if (RefreshItemDayUseCntAct != null)
|
| | | {
|
| | | RefreshItemDayUseCntAct(itemId);
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | private Dictionary<int, int> equipAttrActiveDict = new Dictionary<int, int>();
|
| | | public void SetPlayerEquipAttrActiveInfo(HA317_tagMCAllEquipAttrActiveInfo info)
|
| | | {
|
| | | for(int i = 0;i < info.Count; i++)
|
| | | for (int i = 0; i < info.Count; i++)
|
| | | {
|
| | | int type = info.ActiveInfo[i].Type;
|
| | | int cnt = (int)info.ActiveInfo[i].Cnt;
|
| | | if(type == 1)
|
| | | if (type == 1)
|
| | | {
|
| | | cnt = RoleEquipStarsConfig.GetActiveStars(cnt);
|
| | | }
|
| | | if(!equipAttrActiveDict.ContainsKey(type))
|
| | | if (!equipAttrActiveDict.ContainsKey(type))
|
| | | {
|
| | | equipAttrActiveDict.Add(type,cnt);
|
| | | equipAttrActiveDict.Add(type, cnt);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if(RefreshActiveAttrAct != null)
|
| | | if (RefreshActiveAttrAct != null)
|
| | | {
|
| | | RefreshActiveAttrAct();
|
| | | }
|
| | |
| | | SetPlayerAttrActiveRedPoint();
|
| | | }
|
| | |
|
| | | public void SendActiveAttrQuest(int type,int cnt)
|
| | | public void SendActiveAttrQuest(int type, int cnt)
|
| | | {
|
| | | CA503_tagCMActiveAllEquipAttr equipAttr = new CA503_tagCMActiveAllEquipAttr();
|
| | | equipAttr.Type = (byte)type;
|
| | |
| | | public int GetActiveCntByType(int type)
|
| | | {
|
| | | int cnt = 0;
|
| | | equipAttrActiveDict.TryGetValue(type,out cnt);
|
| | | equipAttrActiveDict.TryGetValue(type, out cnt);
|
| | | return cnt;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | RoleEquipStarsConfig activeStarsConfig = RoleEquipStarsConfig.GetEquipStarsModel(realActiveStars);
|
| | | if(activeStarsConfig != null)
|
| | | if (activeStarsConfig != null)
|
| | | {
|
| | | for(int i = 0; i < activeStarsConfig.attType.Length; i++)
|
| | | for (int i = 0; i < activeStarsConfig.attType.Length; i++)
|
| | | {
|
| | | activeIdlist.Add(activeStarsConfig.attType[i]);
|
| | | }
|
| | |
| | | RoleEquipStarsConfig starsConfig = starsConfigs[i];
|
| | | if (realActiveStars < starsConfig.countNeed)
|
| | | {
|
| | | for(int j = 0; j < starsConfig.attType.Length; j++)
|
| | | for (int j = 0; j < starsConfig.attType.Length; j++)
|
| | | {
|
| | | int attrId = starsConfig.attType[j];
|
| | | if (!activeIdlist.Contains(attrId))
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | if(isAddId)
|
| | | if (isAddId)
|
| | | {
|
| | | starsCount = starsConfig.countNeed;
|
| | | break;
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | return addIdlist;
|
| | | }
|
| | |
| | | public int fairyRedPointLvlimt { get; private set; }
|
| | | public int wingsRedpointLvlimt { get; private set; }
|
| | | public int fairyGetPathId { get; private set; }
|
| | | public Dictionary<int, int> wingsGetPathIdDict { get; private set;}
|
| | | public Dictionary<int, int> wingsGetPathIdDict { get; private set; }
|
| | | public Dictionary<int, List<int>> dungeonUseDict { get; private set; }
|
| | | public void ParseConfig()
|
| | | {
|
| | |
| | | foreach (var dungeonId in copyWinData.Keys)
|
| | | {
|
| | | List<int> idlist = new List<int>();
|
| | | dungeonUseDict.Add(int.Parse(dungeonId),idlist);
|
| | | if(copyWinData[dungeonId].IsArray)
|
| | | dungeonUseDict.Add(int.Parse(dungeonId), idlist);
|
| | | if (copyWinData[dungeonId].IsArray)
|
| | | {
|
| | | JsonData useData = copyWinData[dungeonId];
|
| | | for(int i = 0; i < useData.Count; i++)
|
| | | for (int i = 0; i < useData.Count; i++)
|
| | | {
|
| | | idlist.Add(int.Parse(useData[i].ToString()));
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | public int GetRoleEquipPathId(int equipPlace)
|
| | | { |
| | | {
|
| | | int playerJob = PlayerDatas.Instance.baseData.Job;
|
| | | switch ((RoleEquipType)equipPlace)
|
| | | {
|
| | |
| | | case RoleEquipType.retFairyCan2:
|
| | | return fairyGetPathId;
|
| | | case RoleEquipType.retWing:
|
| | | if(wingsGetPathIdDict.ContainsKey(playerJob))
|
| | | if (wingsGetPathIdDict.ContainsKey(playerJob))
|
| | | {
|
| | | return wingsGetPathIdDict[playerJob];
|
| | | }
|
| | |
| | | private void UpdatePlayerLv(PlayerDataRefresh type)
|
| | | {
|
| | | if (type != PlayerDataRefresh.LV) return;
|
| | | for(int i = 1; i < 13; i++)
|
| | | for (int i = 1; i < 13; i++)
|
| | | {
|
| | | CheckRoleEquipByPlace((RoleEquipType)i);
|
| | | }
|
| | |
| | | {
|
| | | case RoleEquipType.retFairyCan:
|
| | | case RoleEquipType.retFairyCan2:
|
| | | if(PlayerDatas.Instance.baseData.LV >= fairyRedPointLvlimt)
|
| | | if (PlayerDatas.Instance.baseData.LV >= fairyRedPointLvlimt)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | |
|
| | | public void CheckRoleEquipByPlace(RoleEquipType equipType)
|
| | | {
|
| | | ItemModel itemModel = GetItemModelByIndex(PackType.rptEquip,(int)equipType);
|
| | | ItemModel itemModel = GetItemModelByIndex(PackType.rptEquip, (int)equipType);
|
| | | switch (equipType)
|
| | | {
|
| | | case RoleEquipType.retFairyCan:
|
| | |
| | | SetRoleEquipLocalSave((int)equipType);
|
| | | }
|
| | | break;
|
| | | |
| | |
|
| | | }
|
| | | }
|
| | |
|
| | | public void SetRoleEquipLocalSave(int equipPlace,bool isRedState = false)
|
| | | public void SetRoleEquipLocalSave(int equipPlace, bool isRedState = false)
|
| | | {
|
| | | if (isRedState && roleEquipRedDict[equipPlace].state == RedPointState.None) return;
|
| | |
|
| | | if(LocalSavePlaceArray != null)
|
| | | if (LocalSavePlaceArray != null)
|
| | | {
|
| | | if(!LocalSavePlaceArray.Contains(equipPlace))
|
| | | if (!LocalSavePlaceArray.Contains(equipPlace))
|
| | | {
|
| | | LocalSavePlaceArray.Add(equipPlace);
|
| | | LocalSave.SetIntArray(RoleEquipLocalSave, LocalSavePlaceArray.ToArray());
|
| | |
| | | List<int> itemEffectTime = itemModel.GetUseDataModel((int)ItemUseDataKey.Def_IudetCreateTime);
|
| | | if (itemEffectTime != null && itemEffectTime[0] != 0)
|
| | | {
|
| | | if (cool == null || cool.GetRemainTime()<= 0)
|
| | | if (cool == null || cool.GetRemainTime() <= 0)
|
| | | {
|
| | | isOverdue = true;
|
| | | }
|
| | |
| | | {
|
| | | modelInterface.GetPreciousItem(itemModel);
|
| | | modelInterface.OnGetEquip(itemModel);
|
| | | modelInterface.RefreshPickItem(itemModel.packType,itemModel.itemInfo.ItemGUID);
|
| | | modelInterface.RefreshPickItem(itemModel.packType, itemModel.itemInfo.ItemGUID);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | return itemModel;
|
| | | }
|
| | |
|
| | | public ItemModel GetItemModelByIndex(PackType type,int index)
|
| | | public ItemModel GetItemModelByIndex(PackType type, int index)
|
| | | {
|
| | | ItemModel itemModel = null;
|
| | | if (playerPackDict.ContainsKey(type))
|
| | |
| | | {
|
| | | string guid = string.Empty;
|
| | |
|
| | | foreach(var key in itemGUIDDict.Keys)
|
| | | foreach (var key in itemGUIDDict.Keys)
|
| | | {
|
| | | if(itemGUIDDict[key].itemId == itemId)
|
| | | if (itemGUIDDict[key].itemId == itemId)
|
| | | {
|
| | | guid = key;
|
| | | return guid;
|
| | |
| | | {
|
| | | count = singlePack.GetItemCountByID(id);
|
| | | }
|
| | | |
| | |
|
| | | return count;
|
| | | }
|
| | |
|
| | |
| | | SinglePackModel singlePack = GetSinglePackModel(PackType.rptItem);
|
| | | if (singlePack == null) return false;
|
| | | List<ItemModel> modellist = null;
|
| | | int haveCnt = singlePack.GetItemCountByID(itemId,out modellist);
|
| | | int haveCnt = singlePack.GetItemCountByID(itemId, out modellist);
|
| | | ItemConfig config = Config.Instance.Get<ItemConfig>(itemId);
|
| | | int sumPutCnt = config.PackCount * modellist.Count;
|
| | | if(sumPutCnt > haveCnt)
|
| | | if (sumPutCnt > haveCnt)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | else if(GetReaminGridCount(PackType.rptItem) > 0)
|
| | | else if (GetReaminGridCount(PackType.rptItem) > 0)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | {
|
| | | int redKey = 102011003 + i;
|
| | | Redpoint redpoint = new Redpoint(MainRedDot.RedPoint_BagFuncKey, redKey);
|
| | | roleEquipRedDict.Add(i,redpoint);
|
| | | roleEquipRedDict.Add(i, redpoint);
|
| | | }
|
| | | }
|
| | |
|
| | | public void UpdateRoleEquipRed()
|
| | | {
|
| | | foreach(var key in roleEquipRedDict.Keys)
|
| | | foreach (var key in roleEquipRedDict.Keys)
|
| | | {
|
| | | ItemModel itemModel = GetItemModelByIndex(PackType.rptEquip,key);
|
| | | ItemModel itemModel = GetItemModelByIndex(PackType.rptEquip, key);
|
| | | switch ((RoleEquipType)key)
|
| | | {
|
| | | case RoleEquipType.retFairyCan:
|
| | |
| | |
|
| | | private bool TryGetRoleEquipLocalSave(int equipPlace)
|
| | | {
|
| | | if(LocalSavePlaceArray != null)
|
| | | if (LocalSavePlaceArray != null)
|
| | | {
|
| | | for(int i = 0; i < LocalSavePlaceArray.Count; i++)
|
| | | for (int i = 0; i < LocalSavePlaceArray.Count; i++)
|
| | | {
|
| | | if(equipPlace == 9 || equipPlace == 10)
|
| | | if (equipPlace == 9 || equipPlace == 10)
|
| | | {
|
| | | if (LocalSavePlaceArray[i] == 9 || LocalSavePlaceArray[i] == 10)
|
| | | {
|
| | |
| | | return true;
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | }
|
| | | return false;
|
| | |
| | |
|
| | | //public const int PLAYERSUMSTR_REDKEY = 102011001;
|
| | | public const int PLAYERSUMSTAR_REDKEY = 102011002;
|
| | | // public Redpoint redpointSTR = new Redpoint(MainRedDot.RedPoint_BagFuncKey, PLAYERSUMSTR_REDKEY);
|
| | | // public Redpoint redpointSTR = new Redpoint(MainRedDot.RedPoint_BagFuncKey, PLAYERSUMSTR_REDKEY);
|
| | | public Redpoint redpointSTAR = new Redpoint(MainRedDot.RedPoint_BagFuncKey, PLAYERSUMSTAR_REDKEY);
|
| | |
|
| | | public event Action<int, bool> RefreshAttrActiveAct;
|
| | | public void SetPlayerAttrActiveRedPoint()
|
| | | {
|
| | | if(IsActiveStarAttr())
|
| | | if (IsActiveStarAttr())
|
| | | {
|
| | |
|
| | | if (redpointSTAR.state != RedPointState.Simple)
|
| | |
| | | int nextActiveStars = 0;
|
| | | for (int i = 0; i < starslist.Count; i++)
|
| | | {
|
| | | if(cnt == 0)
|
| | | if (cnt == 0)
|
| | | {
|
| | | nextActiveStars = starslist[0];
|
| | | break;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if(nextActiveStars != 0 && playerSumStars >= nextActiveStars)
|
| | | if (nextActiveStars != 0 && playerSumStars >= nextActiveStars)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | int nextActiveSTR = 0;
|
| | | for (int i = 0; i < strenlist.Count; i++)
|
| | | {
|
| | | if(cnt == 0)
|
| | | if (cnt == 0)
|
| | | {
|
| | | nextActiveSTR = int.Parse(strenlist[0]);
|
| | | break;
|
| | |
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.EquipDecompose)) return;
|
| | |
|
| | | if(GetCanDevourModellist() != null && GetCanDevourModellist().Count >= minDevourEquipNum)
|
| | | if (GetCanDevourModellist() != null && GetCanDevourModellist().Count >= minDevourEquipNum)
|
| | | {
|
| | | redpointEquipDecom.state = RedPointState.Simple;
|
| | | }
|
| | |
| | | public event Action RefreshBagEvent;
|
| | | public void RefreshBagInfo()
|
| | | {
|
| | | if(RefreshBagEvent != null)
|
| | | if (RefreshBagEvent != null)
|
| | | {
|
| | | RefreshBagEvent();
|
| | | }
|
| | |
| | | public void SetJumpToOneKeySell(Transform parent)
|
| | | {
|
| | | var goEffect = AchievementGuideEffectPool.Require(1);
|
| | | goEffect.transform.SetParentEx(parent,Vector3.zero,Quaternion.identity,Vector3.one);
|
| | | goEffect.transform.SetParentEx(parent, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | AchievementGoto.guideAchievementId = 0;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!itemUseTypeDict.ContainsKey(skillConfig.SkillTypeID))
|
| | | {
|
| | | itemUseTypeDict.Add(skillConfig.SkillTypeID,id);
|
| | | itemUseTypeDict.Add(skillConfig.SkillTypeID, id);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | if (!dungeonUseDict.ContainsKey(mapId)) return;
|
| | |
|
| | | List<int> useIdlist = dungeonUseDict[mapId];
|
| | | for(int i = 0; i < useIdlist.Count; i++)
|
| | | for (int i = 0; i < useIdlist.Count; i++)
|
| | | {
|
| | | int id = useIdlist[i];
|
| | | AddItemUseTypeDict(id);
|
| | |
| | | #endregion
|
| | |
|
| | | #region 判断物品是否达到使用上限
|
| | | public bool IsReachUseLimit(string guid,out ulong count)
|
| | | public bool IsReachUseLimit(string guid, out ulong count)
|
| | | {
|
| | | count = 0;
|
| | | ItemModel itemModel = GetItemModelByGUID(guid);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if(count < (ulong)itemModel.itemInfo.ItemCount)
|
| | | if (count < (ulong)itemModel.itemInfo.ItemCount)
|
| | | {
|
| | | isReach = true;
|
| | | }
|
| | |
| | | public event Action RefreshEquipDecomNumAct;
|
| | | public int[] defaultUnSelectlist { get; private set; }
|
| | |
|
| | | public bool ContainPreciousItem(List<ItemModel> itemModels,out int betterEquipCnt,out int preciousCnt)
|
| | | public bool ContainPreciousItem(List<ItemModel> itemModels, out int betterEquipCnt, out int preciousCnt)
|
| | | {
|
| | | betterEquipCnt = 0;
|
| | | preciousCnt = 0;
|
| | | if (itemModels == null) return false;
|
| | |
|
| | | for(int i = 0; i < itemModels.Count; i++)
|
| | | for (int i = 0; i < itemModels.Count; i++)
|
| | | {
|
| | | if(defaultUnSelectlist.Contains(itemModels[i].itemId))
|
| | | if (defaultUnSelectlist.Contains(itemModels[i].itemId))
|
| | | {
|
| | | preciousCnt += itemModels[i].itemInfo.ItemCount;
|
| | | }
|
| | | else if(modelInterface.IsFightUp(itemModels[i].itemId,itemModels[i].equipScore) == 1)
|
| | | else if (modelInterface.IsFightUp(itemModels[i].itemId, itemModels[i].equipScore) == 1)
|
| | | {
|
| | | betterEquipCnt += itemModels[i].itemInfo.ItemCount;
|
| | | }
|
| | | }
|
| | |
|
| | | if(betterEquipCnt > 0 || preciousCnt > 0)
|
| | | if (betterEquipCnt > 0 || preciousCnt > 0)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | if (itemModels == null) return false;
|
| | | for (int i = 0; i < itemModels.Count; i++)
|
| | | {
|
| | | if(itemModels[i].chinItemModel.StarLevel >= 2 && itemModels[i].chinItemModel.ItemColor >= (int)E_ItemColor.Orange)
|
| | | if (itemModels[i].chinItemModel.StarLevel >= 2 && itemModels[i].chinItemModel.ItemColor >= (int)E_ItemColor.Orange)
|
| | | {
|
| | | twoStarEquipCnt += itemModels[i].itemInfo.ItemCount;
|
| | | }
|
| | |
| | | colorType = type;
|
| | | if (colorType == EquipColorType.None)
|
| | | {
|
| | | if(lvType != EquipLvType.None)
|
| | | if (lvType != EquipLvType.None)
|
| | | {
|
| | | SetLvSelect(EquipLvType.None);
|
| | | }
|
| | |
| | | SendEquipDevourRecordQuest();
|
| | | EquipDecomRedCtrl();
|
| | | }
|
| | | |
| | |
|
| | | public void SetStarSelect(EquipStarType type)
|
| | | {
|
| | | starType = type;
|
| | |
| | |
|
| | | public List<int> devourPlacelist { get; private set; }
|
| | | public int MaxDevourEquipNum { get; private set; }
|
| | | public int minDevourEquipNum { get; private set;}
|
| | | public int minDevourEquipNum { get; private set; }
|
| | | public void SetDevourEquipPlace()
|
| | | {
|
| | | devourPlacelist = new List<int>();
|
| | | FuncConfigConfig funcConfig = Config.Instance.Get<FuncConfigConfig>("PetAbsorbType");
|
| | | int[] placeArray = ConfigParse.GetMultipleStr<int>(funcConfig.Numerical1);
|
| | | for(int i = 0; i < placeArray.Length;i++ )
|
| | | for (int i = 0; i < placeArray.Length; i++)
|
| | | {
|
| | | devourPlacelist.Add(placeArray[i]);
|
| | | }
|
| | |
| | | orderDevourModellist.Clear();
|
| | | foreach (var model in singlePack.GetPackModelIndexDict().Values)
|
| | | {
|
| | | if(model.chinItemModel.Type == 29)
|
| | | if (model.chinItemModel.Type == 29)
|
| | | {
|
| | | devourModellist.Add(model);
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | orderDevourModellist.AddRange(devourModellist);
|
| | | orderDevourModellist.Sort(CompareByColor);
|
| | |
| | | }
|
| | | return null;
|
| | | }
|
| | | |
| | |
|
| | | foreach (var model in singlePack.GetPackModelIndexDict().Values)
|
| | | {
|
| | | if(model.chinItemModel.Type == 29)
|
| | | if (model.chinItemModel.Type == 29)
|
| | | {
|
| | | if(!defaultUnSelectlist.Contains(model.itemId))
|
| | | if (!defaultUnSelectlist.Contains(model.itemId))
|
| | | {
|
| | | canDevourModellist.Add(model);
|
| | | }
|
| | |
| | |
|
| | | }
|
| | | }
|
| | | if(RefreshEquipDecomNumAct != null)
|
| | | if (RefreshEquipDecomNumAct != null)
|
| | | {
|
| | | RefreshEquipDecomNumAct();
|
| | | }
|
| | |
| | | {
|
| | | if (model.chinItemModel.ItemColor >= (int)E_ItemColor.Purple)
|
| | | {
|
| | | PetEatEquipConfig eatEquipConfig = PetEatEquipConfig.GetEquipColorAndEquipClass(model.chinItemModel.ItemColor,model.chinItemModel.LV);
|
| | | PetEatEquipConfig eatEquipConfig = PetEatEquipConfig.GetEquipColorAndEquipClass(model.chinItemModel.ItemColor, model.chinItemModel.LV);
|
| | | if (eatEquipConfig == null) return false;
|
| | |
|
| | | if (modelInterface.IsFightUp(model.itemId, model.equipScore) != 1)
|
| | |
| | |
|
| | | return false;
|
| | | }
|
| | | |
| | | public bool IsMaxDecomLv(int decomLv,out int realLv)
|
| | |
|
| | | public bool IsMaxDecomLv(int decomLv, out int realLv)
|
| | | {
|
| | | realLv = decomLv;
|
| | | List<EquipDeComposeConfig> decomlist = Config.Instance.GetAllValues<EquipDeComposeConfig>();
|
| | | if(decomLv > decomlist[decomlist.Count-1].LV)
|
| | | if (decomLv > decomlist[decomlist.Count - 1].LV)
|
| | | {
|
| | | realLv = decomlist[decomlist.Count - 1].LV;
|
| | | return true;
|
| | |
| | | {
|
| | | if (model == null) return;
|
| | |
|
| | | if(CheckIsReachDevourCondi(model))
|
| | | if (CheckIsReachDevourCondi(model))
|
| | | {
|
| | | selectDevourlist.Add(model);
|
| | | if (RefreshEquipDecomNumAct != null)
|
| | |
| | | }
|
| | | return false;
|
| | | }
|
| | | |
| | |
|
| | | public void RemoveSelectDevourModellist(ItemModel model)
|
| | | {
|
| | | if(selectDevourlist.Contains(model))
|
| | | if (selectDevourlist.Contains(model))
|
| | | {
|
| | | selectDevourlist.Remove(model);
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public Dictionary<int,int> GetDecomAttrDictByLv(int decomLv)
|
| | | public Dictionary<int, int> GetDecomAttrDictByLv(int decomLv)
|
| | | {
|
| | | if(decomposeAttrDict.ContainsKey(decomLv))
|
| | | if (decomposeAttrDict.ContainsKey(decomLv))
|
| | | {
|
| | | return decomposeAttrDict[decomLv];
|
| | | }
|
| | |
| | | public bool IsReachMinDecomposeNum()
|
| | | {
|
| | | List<ItemModel> itemModels = GetCanDevourModellist();
|
| | | if(itemModels != null && itemModels.Count >= minDecomposeNum)
|
| | | if (itemModels != null && itemModels.Count >= minDecomposeNum)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | {
|
| | | _petIndex[i] = (ushort)itemModels[i].itemInfo.ItemPlace;
|
| | | idlist[i] = (uint)itemModels[i].itemId;
|
| | | if (itemModels[i].chinItemModel.StarLevel >= 2 |
| | | if (itemModels[i].chinItemModel.StarLevel >= 2
|
| | | || (itemModels[i].chinItemModel.EquipPlace == 0 && itemModels[i].chinItemModel.Type != 29))
|
| | | {
|
| | | return;
|
| | |
| | |
|
| | | public void SendEquipDevourRecordQuest()
|
| | | {
|
| | | string record = StringUtility.Contact((int)colorType + 1,(int)lvType + 1,(int)starType + 1);
|
| | | string record = StringUtility.Contact((int)colorType + 1, (int)lvType + 1, (int)starType + 1);
|
| | | CA32D_tagCMDecomposeSeting decomSet = new CA32D_tagCMDecomposeSeting();
|
| | | decomSet.Seting = uint.Parse(record);
|
| | | GameNetSystem.Instance.SendInfo(decomSet);
|
| | |
| | | public int decomposeLv { get; private set; }
|
| | | public int decomposeExp { get; private set; }
|
| | | public int decomposeProgress { get; private set; }
|
| | | public int addDecomposeExp { get; private set;}
|
| | | public int addDecomposeExp { get; private set; }
|
| | | public int minDecomposeNum { get; private set; }
|
| | | public bool isAutoDecompose { get;set; }
|
| | | public int recordAutoDecomNum { get; private set;}
|
| | | public bool isAutoDecompose { get; set; }
|
| | | public int recordAutoDecomNum { get; private set; }
|
| | | public DecomposeGetMatInfo[] getItems { get; private set; }
|
| | |
|
| | | public event Action RefreshDecomAttrAct;
|
| | |
| | | {
|
| | | addDecomposeExp = 0;
|
| | | int realLv = info.LV + 1;
|
| | | bool isMax = IsMaxDecomLv(realLv,out realLv);
|
| | | bool isMax = IsMaxDecomLv(realLv, out realLv);
|
| | | if (realLv == decomposeLv)
|
| | | {
|
| | | addDecomposeExp = (int)info.Exp - decomposeExp;
|
| | | }
|
| | | else
|
| | | {
|
| | | for(int i = decomposeLv; i <= realLv; i++ )
|
| | | for (int i = decomposeLv; i <= realLv; i++)
|
| | | {
|
| | | EquipDeComposeConfig deComposeConfig = Config.Instance.Get<EquipDeComposeConfig>(i);
|
| | | if (i == decomposeLv)
|
| | | {
|
| | | addDecomposeExp = deComposeConfig.UpNeedExp - decomposeExp;
|
| | | }
|
| | | else if(i == realLv)
|
| | | else if (i == realLv)
|
| | | {
|
| | | addDecomposeExp += (int)info.Exp;
|
| | | }
|
| | |
| | | string lvStr = decomSetStr.Substring(1, decomSetStr.Length - 2);
|
| | | lvType = (EquipLvType)(int.Parse(lvStr) - 1);
|
| | | }
|
| | | if(RefreshDecomAttrAct != null)
|
| | | if (RefreshDecomAttrAct != null)
|
| | | {
|
| | | RefreshDecomAttrAct();
|
| | | }
|
| | |
| | | /// </summary>
|
| | | /// <param name="getMatInfos"></param>
|
| | | /// <returns></returns>
|
| | | private List<DecomposeGetMatInfo> getMatInfos = new List<DecomposeGetMatInfo>();
|
| | | private List<DecomposeGetMatInfo> getMatInfos = new List<DecomposeGetMatInfo>();
|
| | | public List<DecomposeGetMatInfo> SetShowMatInfo()
|
| | | {
|
| | | getMatInfos.Clear();
|
| | | int sumMatCnt = 0;
|
| | | if(getItems != null)
|
| | | if (getItems != null)
|
| | | {
|
| | | for(int i = 0; i < getItems.Length; i++)
|
| | | for (int i = 0; i < getItems.Length; i++)
|
| | | {
|
| | | if(getItems[i].Count > 0)
|
| | | if (getItems[i].Count > 0)
|
| | | {
|
| | | sumMatCnt += getItems[i].Count;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if(sumMatCnt > 5)
|
| | | if (sumMatCnt > 5)
|
| | | {
|
| | | for (int i = 0; i < getItems.Length; i++)
|
| | | {
|
| | |
| | | {
|
| | | if (getItems[i].Count > 0)
|
| | | {
|
| | | for(int j = 0; j < getItems[i].Count; j++)
|
| | | for (int j = 0; j < getItems[i].Count; j++)
|
| | | {
|
| | | DecomposeGetMatInfo matInfo = new DecomposeGetMatInfo();
|
| | | matInfo.ItemID = getItems[i].ItemID;
|
| | |
| | | haveDruglist.Clear();
|
| | | drugOrderlist.AddRange(makeDruglist);
|
| | | drugOrderlist.Sort(CompareByIsHave);
|
| | | for(int i = 0; i < drugOrderlist.Count; i++)
|
| | | for (int i = 0; i < drugOrderlist.Count; i++)
|
| | | {
|
| | | if(IsHaveDrugUse(drugOrderlist[i]))
|
| | | if (IsHaveDrugUse(drugOrderlist[i]))
|
| | | {
|
| | | haveDruglist.Add(drugOrderlist[i]);
|
| | | }
|
| | |
| | | {
|
| | | drugOrderlist[i] = haveDruglist[i];
|
| | | }
|
| | | |
| | |
|
| | | return drugOrderlist;
|
| | | }
|
| | |
|
| | | public bool CheckIsDrugById(int itemId)
|
| | | {
|
| | | for(int i = 0; i < makeDruglist.Count; i++)
|
| | | for (int i = 0; i < makeDruglist.Count; i++)
|
| | | {
|
| | | if(makeDruglist[i].ID == itemId)
|
| | | if (makeDruglist[i].ID == itemId)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | //isHaveEnd = IsHaveDrugRecycle(end);
|
| | | //if (isHaveStart.CompareTo(isHaveEnd) != 0) return -isHaveStart.CompareTo(isHaveEnd);
|
| | |
|
| | | isHaveStart = GetItemCountByID(PackType.rptItem,start.ID) > 0 ? true : false;
|
| | | isHaveStart = GetItemCountByID(PackType.rptItem, start.ID) > 0 ? true : false;
|
| | | isHaveEnd = GetItemCountByID(PackType.rptItem, end.ID) > 0 ? true : false;
|
| | | if (isHaveStart.CompareTo(isHaveEnd) != 0) return isHaveStart.CompareTo(isHaveEnd);
|
| | |
|
| | |
| | |
|
| | | public bool IsHaveDrugUse(AttrFruitConfig fruitConfig)
|
| | | {
|
| | | if(!IsReachMaxUseDrug(fruitConfig))
|
| | | if (!IsReachMaxUseDrug(fruitConfig))
|
| | | {
|
| | | return GetItemCountByID(PackType.rptItem, fruitConfig.ID) > 0 ? true : false;
|
| | | }
|
| | |
| | | if (fruitConfig == null) return false;
|
| | |
|
| | | int useNum = GetSumUseCntByID(fruitConfig.ID);
|
| | | if(useNum >= fruitConfig.MaxUseCnt)
|
| | | if (useNum >= fruitConfig.MaxUseCnt)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | for (int i = 0; i < previewDanlist.Count; i++)
|
| | | {
|
| | | AttrFruitConfig fruitConfig = Config.Instance.Get<AttrFruitConfig>(previewDanlist[i]);
|
| | | if(fruitConfig != null)
|
| | | if (fruitConfig != null)
|
| | | {
|
| | | limitlist.Add(fruitConfig);
|
| | | }
|
| | | }
|
| | |
|
| | | for(int i = 0; i < limitlist.Count; i++)
|
| | | for (int i = 0; i < limitlist.Count; i++)
|
| | | {
|
| | | progress += ((float)1 / limitlist.Count) *((float)GetSumUseCntByID(limitlist[i].ID)/limitlist[i].MaxUseCnt);
|
| | | progress += ((float)1 / limitlist.Count) * ((float)GetSumUseCntByID(limitlist[i].ID) / limitlist[i].MaxUseCnt);
|
| | | }
|
| | | return progress*100;
|
| | | return progress * 100;
|
| | | }
|
| | | #endregion
|
| | | }
|
| | |
| | | Def_IudetBirthChartLV = 40, // 命格等级
|
| | | Def_IudetWingProgressValue = 42, //羽翼精炼值
|
| | | Def_IudetCreateTime = 44, // 时效物品的创建时间
|
| | |
|
| | | Def_IudetTotalTime = 48, // 时效物品的剩余时间
|
| | | #region 200~300 宠物数据用
|
| | | Def_IudetPet_NPCID = 200, //npcID
|
| | | Def_IudetPet_ClassLV = 202, // 阶级
|