Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
8 文件已复制
1个文件已删除
1 文件已重命名
9个文件已添加
22个文件已修改
| | |
| | | return UnityEngine.Random.Range((float)_leftValue, (float)_rightValue); |
| | | } |
| | | case OperatorType.Floor: |
| | | return (int)_leftValue; |
| | | return Math.Floor(_leftValue); |
| | | case OperatorType.Ceil: |
| | | return Math.Ceiling((float)_leftValue); |
| | | case OperatorType.RandomInt: |
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (!WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding && !BossShowModel.Instance.BossShowing)
|
| | | if (!WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding
|
| | | && !BossShowModel.Instance.BossShowing && !FairyFeastTransmitShow.Instance.IsOpen)
|
| | | {
|
| | | WindowCenter.Instance.Open<RealmUpHoldWin>();
|
| | | }
|
| | |
| | | StageManager.Instance.onStageLoadFinish += OnStageLoadFinish;
|
| | | NewBieCenter.Instance.guideCompletedEvent += GuideCompletedEvent;
|
| | | BossShowModel.Instance.bossShowCompletedEvent += BossShowCompletedEvent;
|
| | | FairyFeastTransmitShow.Instance.onComplete += BossShowCompletedEvent;
|
| | | }
|
| | |
|
| | | private int cacheMapId = 0;
|
| | |
| | | if (StageManager.Instance.CurrentStage is DungeonStage)
|
| | | {
|
| | | if (PlayerDatas.Instance.realm.holdDataList.Count > 0
|
| | | && !WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding && !BossShowModel.Instance.BossShowing)
|
| | | && !WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding
|
| | | && !BossShowModel.Instance.BossShowing && !FairyFeastTransmitShow.Instance.IsOpen)
|
| | | {
|
| | | WindowCenter.Instance.Open<RealmUpHoldWin>();
|
| | | }
|
| | |
| | | cacheRealmLv = PlayerDatas.Instance.baseData.realmLevel;
|
| | | }
|
| | | if (PlayerDatas.Instance.realm.holdDataList.Count > 0
|
| | | && !WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding && !BossShowModel.Instance.BossShowing)
|
| | | && !WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding
|
| | | && !BossShowModel.Instance.BossShowing && !FairyFeastTransmitShow.Instance.IsOpen)
|
| | | {
|
| | | WindowCenter.Instance.Open<RealmUpHoldWin>();
|
| | | }
|
| | |
| | | if (StageManager.Instance.CurrentStage is DungeonStage)
|
| | | {
|
| | | if (PlayerDatas.Instance.realm.holdDataList.Count > 0
|
| | | && !WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding && !BossShowModel.Instance.BossShowing)
|
| | | && !WindowCenter.Instance.IsOpen<RealmUpHoldWin>() && !NewBieCenter.Instance.inGuiding
|
| | | && !BossShowModel.Instance.BossShowing && !FairyFeastTransmitShow.Instance.IsOpen)
|
| | | {
|
| | | WindowCenter.Instance.Open<RealmUpHoldWin>();
|
| | | }
|
| | |
| | | public static readonly int State_HurtDown2Hash = Animator.StringToHash("HurtDown_801");
|
| | | public static readonly int State_RollHash = Animator.StringToHash("Skill_99");
|
| | | public static readonly int State_Dance = Animator.StringToHash("Dance");
|
| | | public static readonly int State_Transmit = Animator.StringToHash("Transmit");//传功
|
| | |
|
| | | public static readonly int State_Attack1Hash = Animator.StringToHash("Attack_10");
|
| | | public static readonly int State_Attack2Hash = Animator.StringToHash("Attack_11");
|
| | |
| | | #endif |
| | | } |
| | | |
| | | public PlayerMainDate __Gen_Delegate_Imp52(object p0) |
| | | public Snxxz.UI.FairyFeastModel __Gen_Delegate_Imp52(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.FairyFeastModel __gen_ret = (Snxxz.UI.FairyFeastModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FairyFeastModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp53(object p0, Snxxz.UI.FairyFeastRank p1, Snxxz.UI.FairyFeastRank 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.Push(L, p1); |
| | | translator.Push(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp54(object p0, uint 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); |
| | | LuaAPI.xlua_pushuint(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp55(object p0, int p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | System.Collections.IEnumerator __gen_ret = (System.Collections.IEnumerator)translator.GetObject(L, errFunc + 1, typeof(System.Collections.IEnumerator)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public PlayerMainDate __Gen_Delegate_Imp56(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RuneTowerModel __Gen_Delegate_Imp53(object p0) |
| | | public Snxxz.UI.RuneTowerModel __Gen_Delegate_Imp57(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.BossHomeModel __Gen_Delegate_Imp54(object p0) |
| | | public Snxxz.UI.BossHomeModel __Gen_Delegate_Imp58(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp55(object p0, DungeonCoolDownType p1) |
| | | public void __Gen_Delegate_Imp59(object p0, DungeonCoolDownType p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.UI.Button __Gen_Delegate_Imp56(object p0) |
| | | public UnityEngine.UI.Button __Gen_Delegate_Imp60(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public IceCrystalVeinModel __Gen_Delegate_Imp57(object p0) |
| | | public IceCrystalVeinModel __Gen_Delegate_Imp61(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ItemTipsModel __Gen_Delegate_Imp58(object p0) |
| | | public Snxxz.UI.ItemTipsModel __Gen_Delegate_Imp62(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp59(object p0, int p1, bool p2) |
| | | public void __Gen_Delegate_Imp63(object p0, int p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp60(object p0, int p1, object p2, int p3) |
| | | public void __Gen_Delegate_Imp64(object p0, int p1, object p2, int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.PlayerPackModel __Gen_Delegate_Imp61(object p0) |
| | | public Snxxz.UI.PlayerPackModel __Gen_Delegate_Imp65(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp62(object p0, Snxxz.UI.Item p1, Snxxz.UI.Item p2) |
| | | public int __Gen_Delegate_Imp66(object p0, Snxxz.UI.Item p1, Snxxz.UI.Item p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp63(object p0, int p1) |
| | | public string __Gen_Delegate_Imp67(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public PlayerTaskDatas __Gen_Delegate_Imp64(object p0) |
| | | public Snxxz.UI.FairyFeastTransmitShow __Gen_Delegate_Imp68() |
| | | { |
| | | #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; |
| | | |
| | | PCall(L, 0, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.FairyFeastTransmitShow __gen_ret = (Snxxz.UI.FairyFeastTransmitShow)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FairyFeastTransmitShow)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Camera __Gen_Delegate_Imp69(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | PlayerTaskDatas __gen_ret = (PlayerTaskDatas)translator.GetObject(L, errFunc + 1, typeof(PlayerTaskDatas)); |
| | | UnityEngine.Camera __gen_ret = (UnityEngine.Camera)translator.GetObject(L, errFunc + 1, typeof(UnityEngine.Camera)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp65(object p0, int p1, int p2) |
| | | public Snxxz.UI.FairyFeastTransmitShow.FairyTransmitModel __Gen_Delegate_Imp70(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | 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, 1, errFunc); |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | System.Collections.IEnumerator __gen_ret = (System.Collections.IEnumerator)translator.GetObject(L, errFunc + 1, typeof(System.Collections.IEnumerator)); |
| | | Snxxz.UI.FairyFeastTransmitShow.FairyTransmitModel __gen_ret = (Snxxz.UI.FairyFeastTransmitShow.FairyTransmitModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FairyFeastTransmitShow.FairyTransmitModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp66(object p0, int p1, int p2) |
| | | public float __Gen_Delegate_Imp71(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | 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, 1, 1, errFunc); |
| | | |
| | | |
| | | float __gen_ret = (float)LuaAPI.lua_tonumber(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RoleParticularModel __Gen_Delegate_Imp72(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.RoleParticularModel __gen_ret = (Snxxz.UI.RoleParticularModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.RoleParticularModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp73(object p0, ulong p1) |
| | | { |
| | | #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.lua_pushuint64(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.GameObject __Gen_Delegate_Imp74(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); |
| | | |
| | | |
| | | UnityEngine.GameObject __gen_ret = (UnityEngine.GameObject)translator.GetObject(L, errFunc + 1, typeof(UnityEngine.GameObject)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp75(object p0, Snxxz.UI.ServerItem p1, Snxxz.UI.ServerItem 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.Push(L, p1); |
| | | translator.Push(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp67(object p0, TreasureCategory p1) |
| | | public void __Gen_Delegate_Imp76(bool 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); |
| | | translator.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | LuaAPI.lua_pushboolean(L, p0); |
| | | |
| | | PCall(L, 1, 0, errFunc); |
| | | |
| | | |
| | | |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.VipModel __Gen_Delegate_Imp68(object p0) |
| | | public Snxxz.UI.GatherSoulDungeonModel __Gen_Delegate_Imp77(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.VipModel __gen_ret = (Snxxz.UI.VipModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.VipModel)); |
| | | Snxxz.UI.GatherSoulDungeonModel __gen_ret = (Snxxz.UI.GatherSoulDungeonModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.GatherSoulDungeonModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MarketModel __Gen_Delegate_Imp69(object p0) |
| | | public void __Gen_Delegate_Imp78(object p0, int p1, uint p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.MarketModel __gen_ret = (Snxxz.UI.MarketModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.MarketModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp70(object p0, ItemWinBtnType p1, object 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.Push(L, p1); |
| | | translator.PushAny(L, p2); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushuint(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp71(object p0) |
| | | public Snxxz.UI.GatherSoulComposeModel __Gen_Delegate_Imp79(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.FlashSaleModel __gen_ret = (Snxxz.UI.FlashSaleModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FlashSaleModel)); |
| | | Snxxz.UI.GatherSoulComposeModel __gen_ret = (Snxxz.UI.GatherSoulComposeModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.GatherSoulComposeModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp72(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | public Snxxz.UI.GatheringSoulModel __Gen_Delegate_Imp80(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.GatheringSoulModel __gen_ret = (Snxxz.UI.GatheringSoulModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.GatheringSoulModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<Snxxz.UI.GatherSoulComposeModel.ComposeCategory> __Gen_Delegate_Imp81(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); |
| | | |
| | | |
| | | System.Collections.Generic.List<Snxxz.UI.GatherSoulComposeModel.ComposeCategory> __gen_ret = (System.Collections.Generic.List<Snxxz.UI.GatherSoulComposeModel.ComposeCategory>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.List<Snxxz.UI.GatherSoulComposeModel.ComposeCategory>)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<Snxxz.UI.GatherSoulComposeModel.ComposeCategory, System.Collections.Generic.List<int>> __Gen_Delegate_Imp82(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); |
| | | |
| | | |
| | | System.Collections.Generic.Dictionary<Snxxz.UI.GatherSoulComposeModel.ComposeCategory, System.Collections.Generic.List<int>> __gen_ret = (System.Collections.Generic.Dictionary<Snxxz.UI.GatherSoulComposeModel.ComposeCategory, System.Collections.Generic.List<int>>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.Dictionary<Snxxz.UI.GatherSoulComposeModel.ComposeCategory, System.Collections.Generic.List<int>>)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.GatherSoulComposeModel.ComposeCategory __Gen_Delegate_Imp83(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.GatherSoulComposeModel.ComposeCategory __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp84(object p0, Snxxz.UI.GatherSoulComposeModel.ComposeCategory p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp73(object p0) |
| | | public Snxxz.UI.VirtualItem __Gen_Delegate_Imp85(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel __gen_ret = (Snxxz.UI.MysticalPurchaseModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.MysticalPurchaseModel)); |
| | | Snxxz.UI.VirtualItem __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp74(object p0) |
| | | public void __Gen_Delegate_Imp86(object p0, Snxxz.UI.VirtualItem p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | translator.Push(L, p1); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.ImpactRankModel __gen_ret = (Snxxz.UI.ImpactRankModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.ImpactRankModel)); |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp75(object p0) |
| | | public bool __Gen_Delegate_Imp87(object p0, int p1, out Snxxz.UI.GatherSoulComposeModel.Compose p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | PCall(L, 2, 2, errFunc); |
| | | |
| | | p2 = (Snxxz.UI.GatherSoulComposeModel.Compose)translator.GetObject(L, errFunc + 2, typeof(Snxxz.UI.GatherSoulComposeModel.Compose)); |
| | | |
| | | Snxxz.UI.OSRedEnvelopeModel __gen_ret = (Snxxz.UI.OSRedEnvelopeModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.OSRedEnvelopeModel)); |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp76(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.FairyLeagueModel __gen_ret = (Snxxz.UI.FairyLeagueModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FairyLeagueModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyGrabBossModel __Gen_Delegate_Imp77(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.FairyGrabBossModel __gen_ret = (Snxxz.UI.FairyGrabBossModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FairyGrabBossModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp78(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.OSGiftModel __gen_ret = (Snxxz.UI.OSGiftModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.OSGiftModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp79(object p0, ScrollerDataType p1, int p2, out float p3) |
| | | public bool __Gen_Delegate_Imp88(object p0, ScrollerDataType p1, int p2, out float p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp80(object p0, int 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); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp81(object p0, Snxxz.UI.Operation p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RealmModel __Gen_Delegate_Imp82(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.RealmModel __gen_ret = (Snxxz.UI.RealmModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.RealmModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp83(object p0, object p1, bool 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.lua_pushboolean(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp84(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.MagicianModel __gen_ret = (Snxxz.UI.MagicianModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.MagicianModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp85(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.FuncSwitchModel __gen_ret = (Snxxz.UI.FuncSwitchModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FuncSwitchModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp86(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); |
| | | |
| | | |
| | | System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __gen_ret = (System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData>)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp87(object p0, int p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp88(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.TestModel __gen_ret = (Snxxz.UI.TestModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.TestModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UIEffect __Gen_Delegate_Imp89(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); |
| | | |
| | | |
| | | UIEffect __gen_ret = (UIEffect)translator.GetObject(L, errFunc + 1, typeof(UIEffect)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp90(object p0, object p1, object 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); |
| | | translator.PushAny(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig __Gen_Delegate_Imp91(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); |
| | | |
| | | |
| | | Treasure3DConfig __gen_ret = (Treasure3DConfig)translator.GetObject(L, errFunc + 1, typeof(Treasure3DConfig)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.AchievementModel __Gen_Delegate_Imp92(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.AchievementModel __gen_ret = (Snxxz.UI.AchievementModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.AchievementModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp93(object p0, int p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | UnityEngine.Vector3 __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp94(object p0, UnityEngine.Vector3 p1) |
| | | { |
| | | #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.PushUnityEngineVector3(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | UnityEngine.Vector3 __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp95(object p0, float p1) |
| | | { |
| | | #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.lua_pushnumber(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | System.Collections.IEnumerator __gen_ret = (System.Collections.IEnumerator)translator.GetObject(L, errFunc + 1, typeof(System.Collections.IEnumerator)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp96(object p0, bool p1, bool 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.lua_pushboolean(L, p1); |
| | | LuaAPI.lua_pushboolean(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp97(object p0, Snxxz.UI.TreasureAnimation.TreasureShowStep p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp98(object p0, bool 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); |
| | | LuaAPI.lua_pushboolean(L, p1); |
| | | LuaAPI.xlua_pushinteger(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, 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, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp100(object p0, PackType p1, int p2, int p3) |
| | | { |
| | | #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.Push(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | LuaAPI.xlua_pushinteger(L, p3); |
| | | |
| | | PCall(L, 4, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp101(object p0, int p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp102(object p0, int p1, int p2, bool p3) |
| | | public void __Gen_Delegate_Imp89(object p0, int p1, int p2, bool p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Camera __Gen_Delegate_Imp103(object p0) |
| | | public Snxxz.UI.GatherSoulDungeonHelp __Gen_Delegate_Imp90(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | UnityEngine.Camera __gen_ret = (UnityEngine.Camera)translator.GetObject(L, errFunc + 1, typeof(UnityEngine.Camera)); |
| | | Snxxz.UI.GatherSoulDungeonHelp __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Transform __Gen_Delegate_Imp104(object p0) |
| | | public void __Gen_Delegate_Imp91(object p0, Snxxz.UI.GatherSoulDungeonHelp p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp92(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.GatherSoulDungeonModel.ItemInfo> 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); |
| | | |
| | | PCall(L, 2, 2, errFunc); |
| | | |
| | | p2 = (System.Collections.Generic.List<Snxxz.UI.GatherSoulDungeonModel.ItemInfo>)translator.GetObject(L, errFunc + 2, typeof(System.Collections.Generic.List<Snxxz.UI.GatherSoulDungeonModel.ItemInfo>)); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp93(object p0, int p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp94(object p0, Snxxz.UI.GatherSoulDungeonModel.ItemInfo p1, Snxxz.UI.GatherSoulDungeonModel.ItemInfo 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.Push(L, p1); |
| | | translator.Push(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.VirtualPackModel __Gen_Delegate_Imp95(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.VirtualPackModel __gen_ret = (Snxxz.UI.VirtualPackModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.VirtualPackModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp96(object p0, ItemWinBtnType p1, object 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.Push(L, p1); |
| | | translator.PushAny(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp97(object p0, int 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); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<int> __Gen_Delegate_Imp98(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); |
| | | |
| | | |
| | | System.Collections.Generic.List<int> __gen_ret = (System.Collections.Generic.List<int>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.List<int>)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> __Gen_Delegate_Imp99(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); |
| | | |
| | | |
| | | System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> __gen_ret = (System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp100(int p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, p0); |
| | | |
| | | PCall(L, 1, 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 int __Gen_Delegate_Imp101(object p0, object p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp102(object p0, PackType p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp103(object p0, out System.Collections.Generic.List<int> p1) |
| | | { |
| | | #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, 2, errFunc); |
| | | |
| | | p1 = (System.Collections.Generic.List<int>)translator.GetObject(L, errFunc + 2, typeof(System.Collections.Generic.List<int>)); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp104(object p0, int p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp105(object p0, int p1, ref System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> 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); |
| | | translator.Push(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | p2 = (System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)); |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp106(object p0, object p1, int p2, out int p3) |
| | | { |
| | | #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, 2, errFunc); |
| | | |
| | | p3 = LuaAPI.xlua_tointeger(L, errFunc + 2); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp107(object p0, object p1, out 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); |
| | | |
| | | PCall(L, 2, 2, errFunc); |
| | | |
| | | p2 = LuaAPI.xlua_tointeger(L, errFunc + 2); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp108(object p0, int p1, object 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); |
| | | translator.PushAny(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp109(object p0, int p1, object 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); |
| | | translator.PushAny(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp110(object p0, int 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); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp111(object p0, object p1, int p2, int p3) |
| | | { |
| | | #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); |
| | | LuaAPI.xlua_pushinteger(L, p3); |
| | | |
| | | PCall(L, 4, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp112(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, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp113(object p0, object p1, bool 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.lua_pushboolean(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp114(object p0, int p1, int p2, int p3, int p4) |
| | | { |
| | | #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); |
| | | LuaAPI.xlua_pushinteger(L, p3); |
| | | LuaAPI.xlua_pushinteger(L, p4); |
| | | |
| | | PCall(L, 5, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp115(object p0, object p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp116(object p0, Snxxz.UI.VirtualItem p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp117(object p0, int p1, out Snxxz.UI.GatherSoulHoleCondition 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); |
| | | |
| | | PCall(L, 2, 2, errFunc); |
| | | |
| | | translator.Get(L, errFunc + 2, out p2); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp118(object p0, int p1, out Snxxz.UI.GatherSoulItem 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); |
| | | |
| | | PCall(L, 2, 2, errFunc); |
| | | |
| | | p2 = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, errFunc + 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp119(object p0, int 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); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp120(object p0, int p1, int p2, int p3) |
| | | { |
| | | #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); |
| | | LuaAPI.xlua_pushinteger(L, p3); |
| | | |
| | | PCall(L, 4, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp121(object p0, int p1, ulong 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.lua_pushuint64(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp122(object p0, int p1, int p2, bool p3) |
| | | { |
| | | #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); |
| | | LuaAPI.lua_pushboolean(L, p3); |
| | | |
| | | PCall(L, 4, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp123(object p0, object p1, ref System.Collections.Generic.Dictionary<int, 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); |
| | | translator.Push(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | p2 = (System.Collections.Generic.Dictionary<int, int>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.Dictionary<int, int>)); |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp124(object p0, PackType p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp125(object p0, PackType p1, out System.Collections.Generic.List<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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 2, errFunc); |
| | | |
| | | p2 = (System.Collections.Generic.List<int>)translator.GetObject(L, errFunc + 2, typeof(System.Collections.Generic.List<int>)); |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp126(object p0, PackType p1, ref System.Collections.Generic.List<Snxxz.UI.VirtualPackItem> p2, object p3) |
| | | { |
| | | #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.Push(L, p1); |
| | | translator.Push(L, p2); |
| | | translator.PushAny(L, p3); |
| | | |
| | | PCall(L, 4, 1, errFunc); |
| | | |
| | | p2 = (System.Collections.Generic.List<Snxxz.UI.VirtualPackItem>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.List<Snxxz.UI.VirtualPackItem>)); |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public PlayerTaskDatas __Gen_Delegate_Imp127(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); |
| | | |
| | | |
| | | PlayerTaskDatas __gen_ret = (PlayerTaskDatas)translator.GetObject(L, errFunc + 1, typeof(PlayerTaskDatas)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp128(object p0, int 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); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 1, errFunc); |
| | | |
| | | |
| | | System.Collections.IEnumerator __gen_ret = (System.Collections.IEnumerator)translator.GetObject(L, errFunc + 1, typeof(System.Collections.IEnumerator)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp129(object p0, TreasureCategory p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.VipModel __Gen_Delegate_Imp130(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.VipModel __gen_ret = (Snxxz.UI.VipModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.VipModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MarketModel __Gen_Delegate_Imp131(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.MarketModel __gen_ret = (Snxxz.UI.MarketModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.MarketModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp132(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.FlashSaleModel __gen_ret = (Snxxz.UI.FlashSaleModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FlashSaleModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp133(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp134(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.MysticalPurchaseModel __gen_ret = (Snxxz.UI.MysticalPurchaseModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.MysticalPurchaseModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp135(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.ImpactRankModel __gen_ret = (Snxxz.UI.ImpactRankModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.ImpactRankModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp136(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.OSRedEnvelopeModel __gen_ret = (Snxxz.UI.OSRedEnvelopeModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.OSRedEnvelopeModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp137(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.FairyLeagueModel __gen_ret = (Snxxz.UI.FairyLeagueModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FairyLeagueModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyGrabBossModel __Gen_Delegate_Imp138(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.FairyGrabBossModel __gen_ret = (Snxxz.UI.FairyGrabBossModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FairyGrabBossModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp139(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.OSGiftModel __gen_ret = (Snxxz.UI.OSGiftModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.OSGiftModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp140(object p0, Snxxz.UI.Operation p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RealmModel __Gen_Delegate_Imp141(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.RealmModel __gen_ret = (Snxxz.UI.RealmModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.RealmModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp142(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.MagicianModel __gen_ret = (Snxxz.UI.MagicianModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.MagicianModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp143(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.FuncSwitchModel __gen_ret = (Snxxz.UI.FuncSwitchModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.FuncSwitchModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp144(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); |
| | | |
| | | |
| | | System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __gen_ret = (System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData>)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData>)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp145(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.TestModel __gen_ret = (Snxxz.UI.TestModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.TestModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UIEffect __Gen_Delegate_Imp146(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); |
| | | |
| | | |
| | | UIEffect __gen_ret = (UIEffect)translator.GetObject(L, errFunc + 1, typeof(UIEffect)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp147(object p0, object p1, object 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); |
| | | translator.PushAny(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig __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); |
| | | |
| | | |
| | | Treasure3DConfig __gen_ret = (Treasure3DConfig)translator.GetObject(L, errFunc + 1, typeof(Treasure3DConfig)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.AchievementModel __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); |
| | | |
| | | |
| | | Snxxz.UI.AchievementModel __gen_ret = (Snxxz.UI.AchievementModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.AchievementModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp150(object p0, int p1) |
| | | { |
| | | #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); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | UnityEngine.Vector3 __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp151(object p0, UnityEngine.Vector3 p1) |
| | | { |
| | | #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.PushUnityEngineVector3(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | UnityEngine.Vector3 __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp152(object p0, float p1) |
| | | { |
| | | #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.lua_pushnumber(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | System.Collections.IEnumerator __gen_ret = (System.Collections.IEnumerator)translator.GetObject(L, errFunc + 1, typeof(System.Collections.IEnumerator)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp153(object p0, bool p1, bool 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.lua_pushboolean(L, p1); |
| | | LuaAPI.lua_pushboolean(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp154(object p0, Snxxz.UI.TreasureAnimation.TreasureShowStep p1) |
| | | { |
| | | #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.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp155(object p0, bool 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); |
| | | LuaAPI.lua_pushboolean(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | |
| | | PCall(L, 3, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp156(object p0, PackType p1, int p2, int p3) |
| | | { |
| | | #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.Push(L, p1); |
| | | LuaAPI.xlua_pushinteger(L, p2); |
| | | LuaAPI.xlua_pushinteger(L, p3); |
| | | |
| | | PCall(L, 4, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Transform __Gen_Delegate_Imp157(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public float __Gen_Delegate_Imp105(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); |
| | | |
| | | |
| | | float __gen_ret = (float)LuaAPI.lua_tonumber(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp106(object p0) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp158(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp107(object p0) |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp159(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp108() |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp160() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public TreasureCategory __Gen_Delegate_Imp109(object p0) |
| | | public TreasureCategory __Gen_Delegate_Imp161(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.GameObject __Gen_Delegate_Imp110(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); |
| | | |
| | | |
| | | UnityEngine.GameObject __gen_ret = (UnityEngine.GameObject)translator.GetObject(L, errFunc + 1, typeof(UnityEngine.GameObject)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp111(object p0, bool p1, TreasureCategory p2) |
| | | public void __Gen_Delegate_Imp162(object p0, bool p1, TreasureCategory p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp112(object p0, TreasureCategory p1, object p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp163(object p0, TreasureCategory p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp113(object p0, TreasureCategory p1, bool p2) |
| | | public void __Gen_Delegate_Imp164(object p0, TreasureCategory p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp114(object p0, object p1, float p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp165(object p0, object p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp115(object p0) |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp166(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FairyFeastModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 7, 6, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 8, 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, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Transmit", _m_Transmit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetQuestionTime", _m_TryGetQuestionTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnReceiveHelpMessage", _m_OnReceiveHelpMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetHelpMessage", _m_ResetHelpMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateTransmitState", _m_UpdateTransmitState); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransmitComplete", _m_TransmitComplete); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Transmit", _m_Transmit); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "selectTransmit", _e_selectTransmit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "transmitStateUpdate", _e_transmitStateUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "fairyFeastPlayerUpdate", _e_fairyFeastPlayerUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectPlayer", _g_get_selectPlayer); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowTransmit", _g_get_allowTransmit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "nearNpc", _g_get_nearNpc); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transmitCostSeconds", _g_get_transmitCostSeconds); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transmitCompleteTime", _g_get_transmitCompleteTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transmiting", _g_get_transmiting); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transmitCostSeconds", _g_get_transmitCostSeconds); |
| | | 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); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalExp", _g_get_totalExp); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fairyFeastPlayers", _g_get_fairyFeastPlayers); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "displayFairyMembers", _g_get_displayFairyMembers); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transmitPlayer", _g_get_transmitPlayer); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "fairyFeastPlayers", _s_set_fairyFeastPlayers); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "displayFairyMembers", _s_set_displayFairyMembers); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "transmitPlayer", _s_set_transmitPlayer); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Transmit(RealStatePtr L) |
| | | static int _m_TryGetQuestionTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HourMinute _time; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetQuestionTime( out _time ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _time); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnReceiveHelpMessage(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string __mission = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.OnReceiveHelpMessage( __mission ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ResetHelpMessage(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Transmit( ); |
| | | gen_to_be_invoked.ResetHelpMessage( ); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectPlayer(RealStatePtr L) |
| | | static int _m_TransmitComplete(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushuint(L, gen_to_be_invoked.selectPlayer); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.TransmitComplete( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_allowTransmit(RealStatePtr L) |
| | | static int _m_Transmit(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_pushboolean(L, gen_to_be_invoked.allowTransmit); |
| | | |
| | | |
| | | |
| | | { |
| | | PlayerFairyData.FairyMember _fairyMember = (PlayerFairyData.FairyMember)translator.GetObject(L, 2, typeof(PlayerFairyData.FairyMember)); |
| | | |
| | | gen_to_be_invoked.Transmit( _fairyMember ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_nearNpc(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_pushboolean(L, gen_to_be_invoked.nearNpc); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_transmitCostSeconds(RealStatePtr L) |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_transmitCompleteTime(RealStatePtr L) |
| | | static int _g_get_riseLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.transmitCompleteTime); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.riseLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_transmiting(RealStatePtr L) |
| | | static int _g_get_expFlyStage(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_pushboolean(L, gen_to_be_invoked.transmiting); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.expFlyStage); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_expFlyCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.expFlyCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_totalExp(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_pushuint64(L, gen_to_be_invoked.totalExp); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fairyFeastPlayers(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.fairyFeastPlayers); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_displayFairyMembers(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.displayFairyMembers); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_transmitPlayer(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushuint(L, gen_to_be_invoked.transmitPlayer); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_selectTransmit(RealStatePtr L) |
| | | static int _s_set_fairyFeastPlayers(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)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.selectTransmit += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.selectTransmit -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.fairyFeastPlayers = (System.Collections.Generic.List<uint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<uint>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FairyFeastModel.selectTransmit!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_transmitStateUpdate(RealStatePtr L) |
| | | static int _s_set_displayFairyMembers(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.displayFairyMembers = (System.Collections.Generic.List<PlayerFairyData.FairyMember>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<PlayerFairyData.FairyMember>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_transmitPlayer(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyFeastModel gen_to_be_invoked = (Snxxz.UI.FairyFeastModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.transmitPlayer = LuaAPI.xlua_touint(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_fairyFeastPlayerUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.transmitStateUpdate += gen_delegate; |
| | | gen_to_be_invoked.fairyFeastPlayerUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.transmitStateUpdate -= gen_delegate; |
| | | gen_to_be_invoked.fairyFeastPlayerUpdate -= 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.FairyFeastModel.transmitStateUpdate!"); |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FairyFeastModel.fairyFeastPlayerUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 51573ab69b1ccd14ebcc180adc6f8127 |
| | | timeCreated: 1545203729 |
| | | guid: be8d50f77163c474e87085de3f1b70d5 |
| | | timeCreated: 1545467172 |
| | | 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 SnxxzUIGatherSoulComposeModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.GatherSoulComposeModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 5, 3); |
| | | |
| | | 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, "ExistInComposeMat", _m_ExistInComposeMat); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetCompose", _m_TryGetCompose); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSelectComposeItemChange", _e_onSelectComposeItemChange); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSelectCategoryChange", _e_onSelectCategoryChange); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "composeCategories", _g_get_composeCategories); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "categoryDict", _g_get_categoryDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectCategory", _g_get_selectCategory); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectItemId", _g_get_selectItemId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpGatherSoulItem", _g_get_jumpGatherSoulItem); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectCategory", _s_set_selectCategory); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectItemId", _s_set_selectItemId); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "jumpGatherSoulItem", _s_set_jumpGatherSoulItem); |
| | | |
| | | |
| | | 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.GatherSoulComposeModel gen_ret = new Snxxz.UI.GatherSoulComposeModel(); |
| | | 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.GatherSoulComposeModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)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.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)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.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)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.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)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_ExistInComposeMat(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulComposeModel.Compose _outCompose; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.ExistInComposeMat( _itemId, out _outCompose ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _outCompose); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetCompose(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulComposeModel.Compose _compose; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetCompose( _itemId, out _compose ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _compose); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_composeCategories(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.composeCategories); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_categoryDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.categoryDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectCategory(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.selectCategory); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectItemId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectItemId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_jumpGatherSoulItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.jumpGatherSoulItem); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectCategory(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | Snxxz.UI.GatherSoulComposeModel.ComposeCategory gen_value;translator.Get(L, 2, out gen_value); |
| | | gen_to_be_invoked.selectCategory = 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_selectItemId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.selectItemId = LuaAPI.xlua_tointeger(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_jumpGatherSoulItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)translator.FastGetCSObj(L, 1); |
| | | Snxxz.UI.VirtualItem gen_value;translator.Get(L, 2, out gen_value); |
| | | gen_to_be_invoked.jumpGatherSoulItem = gen_value; |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onSelectComposeItemChange(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)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.onSelectComposeItemChange += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onSelectComposeItemChange -= 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.GatherSoulComposeModel.onSelectComposeItemChange!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onSelectCategoryChange(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatherSoulComposeModel gen_to_be_invoked = (Snxxz.UI.GatherSoulComposeModel)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.onSelectCategoryChange += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onSelectCategoryChange -= 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.GatherSoulComposeModel.onSelectCategoryChange!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to Lua/Gen/SnxxzUIGatherSoulComposeModelWrap.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: af7ad1f4610f163468d0ef98bd3e41d1 |
| | | timeCreated: 1545467171 |
| | | 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 SnxxzUIGatherSoulDungeonModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.GatherSoulDungeonModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 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, "OnReceiveDungeonMessage", _m_OnReceiveDungeonMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetDungeonItems", _m_TryGetDungeonItems); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDefendNpcCount", _m_GetDefendNpcCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetDungeonMessage", _m_ResetDungeonMessage); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "missionHelpUpdate", _e_missionHelpUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "monsterAppearEvent", _e_monsterAppearEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "mission", _g_get_mission); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "attckDefendNpcId", _g_get_attckDefendNpcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "iceDefendNpcId", _g_get_iceDefendNpcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "defendPointNpcId", _g_get_defendPointNpcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "attackDefendCountLimit", _g_get_attackDefendCountLimit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "iceDefendCountLimit", _g_get_iceDefendCountLimit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "generateBossCost", _g_get_generateBossCost); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dungeonWeelCount", _g_get_dungeonWeelCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "clickGenerateMonster", _g_get_clickGenerateMonster); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "clickGenerateMonster", _s_set_clickGenerateMonster); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); |
| | | |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DUNGEON_MAPID", Snxxz.UI.GatherSoulDungeonModel.DUNGEON_MAPID); |
| | | |
| | | |
| | | |
| | | |
| | | 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.GatherSoulDungeonModel gen_ret = new Snxxz.UI.GatherSoulDungeonModel(); |
| | | 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.GatherSoulDungeonModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)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.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)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.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)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.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)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_OnReceiveDungeonMessage(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string __mission = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.OnReceiveDungeonMessage( __mission ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetDungeonItems(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _weel = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.List<Snxxz.UI.GatherSoulDungeonModel.ItemInfo> _list; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetDungeonItems( _weel, out _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetDefendNpcCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _npcId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetDefendNpcCount( _npcId ); |
| | | 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_ResetDungeonMessage(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.ResetDungeonMessage( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_mission(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.mission); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_attckDefendNpcId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.attckDefendNpcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_iceDefendNpcId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.iceDefendNpcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_defendPointNpcId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.defendPointNpcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_attackDefendCountLimit(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.attackDefendCountLimit); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_iceDefendCountLimit(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.iceDefendCountLimit); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_generateBossCost(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.generateBossCost); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_dungeonWeelCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.dungeonWeelCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_clickGenerateMonster(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.clickGenerateMonster); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_clickGenerateMonster(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.clickGenerateMonster = 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 _e_missionHelpUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)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.missionHelpUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.missionHelpUpdate -= 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.GatherSoulDungeonModel.missionHelpUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_monsterAppearEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatherSoulDungeonModel gen_to_be_invoked = (Snxxz.UI.GatherSoulDungeonModel)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.monsterAppearEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.monsterAppearEvent -= 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.GatherSoulDungeonModel.monsterAppearEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| File was renamed from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: 4bb6ba11ec72d0c40a23cb3971cf2094 |
| | | timeCreated: 1545467166 |
| | | 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 SnxxzUIGatheringSoulModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.GatheringSoulModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 42, 15, 4); |
| | | |
| | | 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, "GetPropertyHighestSort", _m_GetPropertyHighestSort); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshGatherSoulPack", _m_RefreshGatherSoulPack); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExistEmptyHole", _m_ExistEmptyHole); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnReceiveServerPack", _m_OnReceiveServerPack); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsEquipSoul", _m_ContainsEquipSoul); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSatisfyEquipSouls", _m_TryGetSatisfyEquipSouls); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHoleUnlock", _m_IsHoleUnlock); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyEquipSoul", _m_SatisfyEquipSoul); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyReplace", _m_SatisfyReplace); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyLevelUp", _m_SatisfyLevelUp); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisplayLevelUpError", _m_DisplayLevelUpError); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSamePropertyCompareHoles", _m_IsSamePropertyCompareHoles); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSamePropertyCompareHole", _m_IsSamePropertyCompareHole); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGatherSoulMaxLevel", _m_IsGatherSoulMaxLevel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBestSoul", _m_IsBestSoul); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "HandleSoulTipFunc", _m_HandleSoulTipFunc); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExecuteResolve", _m_ExecuteResolve); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendResolvePack", _m_SendResolvePack); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExecuteEquipSoul", _m_ExecuteEquipSoul); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExecuteReplaceSoul", _m_ExecuteReplaceSoul); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExecutePutOffSoul", _m_ExecutePutOffSoul); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckExist", _m_CheckExist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetHoleCondition", _m_TryGetHoleCondition); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetItem", _m_TryGetItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetHighestLevelItem", _m_TryGetHighestLevelItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSinglePropertyItems", _m_TryGetSinglePropertyItems); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CommonSort", _m_CommonSort); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CommonSort2", _m_CommonSort2); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyValue", _m_GetPropertyValue); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequireLevelUpCost", _m_RequireLevelUpCost); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLevelByCost", _m_GetLevelByCost); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetResolveReturnCost", _m_GetResolveReturnCost); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetResolveSouls", _m_GetResolveSouls); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveOneKeyResolve", _m_RemoveOneKeyResolve); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "gatherSoulHoleRefresh", _e_gatherSoulHoleRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "gatherSoulHolesRefresh", _e_gatherSoulHolesRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "gatherSoulPackRefresh", _e_gatherSoulPackRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "oneKeyResolveRefresh", _e_oneKeyResolveRefresh); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "gatherSoulPropertys", _g_get_gatherSoulPropertys); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "packIndexs", _g_get_packIndexs); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "resolveItems", _g_get_resolveItems); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "holeCount", _g_get_holeCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoResolve", _g_get_autoResolve); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "coreHole", _g_get_coreHole); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoResolveRemainCount", _g_get_autoResolveRemainCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "equipRedpoint", _g_get_equipRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "replaceRedpoint", _g_get_replaceRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "resolveRedpoint", _g_get_resolveRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "levelUpRedpoint", _g_get_levelUpRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "equipRedpointHole", _g_get_equipRedpointHole); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "levelUpRedpointHole", _g_get_levelUpRedpointHole); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "replaceRedpointIndex", _g_get_replaceRedpointIndex); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoResolve", _s_set_autoResolve); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "equipRedpointHole", _s_set_equipRedpointHole); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "levelUpRedpointHole", _s_set_levelUpRedpointHole); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "replaceRedpointIndex", _s_set_replaceRedpointIndex); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 8, 0, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetEquipHoleName", _m_GetEquipHoleName_xlua_st_); |
| | | |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GATHERSOUL_SOUL_TYPE", Snxxz.UI.GatheringSoulModel.GATHERSOUL_SOUL_TYPE); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GATHERSOUL_CORE_TYPE", Snxxz.UI.GatheringSoulModel.GATHERSOUL_CORE_TYPE); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GATHERSOUL_ESSENCE_TYPE", Snxxz.UI.GatheringSoulModel.GATHERSOUL_ESSENCE_TYPE); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SOULDUST_MONEYTYPE", Snxxz.UI.GatheringSoulModel.SOULDUST_MONEYTYPE); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SOULSPLINTERS_MONEYTYPE", Snxxz.UI.GatheringSoulModel.SOULSPLINTERS_MONEYTYPE); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SOULCORE_MONEYTYPE", Snxxz.UI.GatheringSoulModel.SOULCORE_MONEYTYPE); |
| | | |
| | | |
| | | |
| | | |
| | | 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.GatheringSoulModel gen_ret = new Snxxz.UI.GatheringSoulModel(); |
| | | 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.GatheringSoulModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)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.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)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.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)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.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)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_GetEquipHoleName_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | string gen_ret = Snxxz.UI.GatheringSoulModel.GetEquipHoleName( _id ); |
| | | LuaAPI.lua_pushstring(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_GetPropertyHighestSort(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | System.Collections.Generic.List<int> _list = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>)); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetPropertyHighestSort( _list ); |
| | | 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_RefreshGatherSoulPack(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RefreshGatherSoulPack( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ExistEmptyHole(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1) |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.ExistEmptyHole( ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1) |
| | | { |
| | | System.Collections.Generic.List<int> _list; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.ExistEmptyHole( out _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.GatheringSoulModel.ExistEmptyHole!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnReceiveServerPack(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HA31E_tagMCGatherSoulHoleInfo _package = (HA31E_tagMCGatherSoulHoleInfo)translator.GetObject(L, 2, typeof(HA31E_tagMCGatherSoulHoleInfo)); |
| | | |
| | | gen_to_be_invoked.OnReceiveServerPack( _package ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ContainsEquipSoul(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _hole = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.ContainsEquipSoul( _hole ); |
| | | LuaAPI.lua_pushboolean(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_TryGetSatisfyEquipSouls(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _hole = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> _equipList = (System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)); |
| | | |
| | | gen_to_be_invoked.TryGetSatisfyEquipSouls( _hole, ref _equipList ); |
| | | translator.Push(L, _equipList); |
| | | |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsHoleUnlock(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _hole = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsHoleUnlock( _hole ); |
| | | LuaAPI.lua_pushboolean(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_SatisfyEquipSoul(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | int _hole = LuaAPI.xlua_tointeger(L, 3); |
| | | int _error; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.SatisfyEquipSoul( _item, _hole, out _error ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _error); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SatisfyReplace(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 2)) |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | int _hole; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.SatisfyReplace( _item, out _hole ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _hole); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 3)) |
| | | { |
| | | int _hole = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 3, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.SatisfyReplace( _hole, _item ); |
| | | LuaAPI.lua_pushboolean(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.GatheringSoulModel.SatisfyReplace!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SatisfyLevelUp(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | int _error; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.SatisfyLevelUp( _item, out _error ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _error); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_DisplayLevelUpError(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _error = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.DisplayLevelUpError( _error ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsSamePropertyCompareHoles(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _exclude = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 3, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | int gen_ret = gen_to_be_invoked.IsSamePropertyCompareHoles( _exclude, _item ); |
| | | 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_IsSamePropertyCompareHole(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _hole = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 3, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsSamePropertyCompareHole( _hole, _item ); |
| | | LuaAPI.lua_pushboolean(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_IsGatherSoulMaxLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsGatherSoulMaxLevel( _id, _level ); |
| | | LuaAPI.lua_pushboolean(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_IsBestSoul(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | int _excludePlaceType = LuaAPI.xlua_tointeger(L, 3); |
| | | int _excludeIndex = LuaAPI.xlua_tointeger(L, 4); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsBestSoul( _item, _excludePlaceType, _excludeIndex ); |
| | | LuaAPI.lua_pushboolean(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_HandleSoulTipFunc(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | ItemWinBtnType _type;translator.Get(L, 2, out _type); |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 3, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | gen_to_be_invoked.HandleSoulTipFunc( _type, _item ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ExecuteResolve(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | gen_to_be_invoked.ExecuteResolve( _item ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendResolvePack(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 2)) |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | gen_to_be_invoked.SendResolvePack( _item ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 3&& translator.Assignable<ushort[]>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | ushort[] _resolves = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); |
| | | bool _isAuto = LuaAPI.lua_toboolean(L, 3); |
| | | |
| | | gen_to_be_invoked.SendResolvePack( _resolves, _isAuto ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.GatheringSoulModel.SendResolvePack!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ExecuteEquipSoul(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 2)) |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | gen_to_be_invoked.ExecuteEquipSoul( _item ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 3&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | int _hole = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | gen_to_be_invoked.ExecuteEquipSoul( _item, _hole ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.GatheringSoulModel.ExecuteEquipSoul!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ExecuteReplaceSoul(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | gen_to_be_invoked.ExecuteReplaceSoul( _item ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ExecutePutOffSoul(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | gen_to_be_invoked.ExecutePutOffSoul( _item ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CheckExist(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 2)) |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.CheckExist( _item ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.VirtualItem>(L, 2)) |
| | | { |
| | | Snxxz.UI.VirtualItem _item;translator.Get(L, 2, out _item); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.CheckExist( _item ); |
| | | LuaAPI.lua_pushboolean(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.GatheringSoulModel.CheckExist!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetHoleCondition(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _hole = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulHoleCondition _condition; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetHoleCondition( _hole, out _condition ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _condition); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _hole = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulItem _item; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetItem( _hole, out _item ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _item); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetHighestLevelItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.GatherSoulItem _item; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetHighestLevelItem( _itemId, out _item ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _item); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetSinglePropertyItems(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _property = LuaAPI.xlua_tointeger(L, 2); |
| | | int _itemId; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetSinglePropertyItems( _property, out _itemId ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _itemId); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CommonSort(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | int _lhs = LuaAPI.xlua_tointeger(L, 2); |
| | | int _rhs = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | int gen_ret = gen_to_be_invoked.CommonSort( _lhs, _rhs ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 3&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 2)&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 3)) |
| | | { |
| | | Snxxz.UI.GatherSoulItem _lhs = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | Snxxz.UI.GatherSoulItem _rhs = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 3, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | int gen_ret = gen_to_be_invoked.CommonSort( _lhs, _rhs ); |
| | | LuaAPI.xlua_pushinteger(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.GatheringSoulModel.CommonSort!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CommonSort2(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.GatherSoulItem _lhs = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | Snxxz.UI.GatherSoulItem _rhs = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 3, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | int gen_ret = gen_to_be_invoked.CommonSort2( _lhs, _rhs ); |
| | | 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_GetPropertyValue(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _type = LuaAPI.xlua_tointeger(L, 3); |
| | | int _level = LuaAPI.xlua_tointeger(L, 4); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetPropertyValue( _id, _type, _level ); |
| | | 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_RequireLevelUpCost(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | int gen_ret = gen_to_be_invoked.RequireLevelUpCost( _id, _level ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.GatherSoulItem>(L, 2)) |
| | | { |
| | | Snxxz.UI.GatherSoulItem _item = (Snxxz.UI.GatherSoulItem)translator.GetObject(L, 2, typeof(Snxxz.UI.GatherSoulItem)); |
| | | |
| | | int gen_ret = gen_to_be_invoked.RequireLevelUpCost( _item ); |
| | | LuaAPI.xlua_pushinteger(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.GatheringSoulModel.RequireLevelUpCost!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetLevelByCost(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | ulong _cost = LuaAPI.lua_touint64(L, 3); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetLevelByCost( _id, _cost ); |
| | | 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_GetResolveReturnCost(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | bool _fromCompose = LuaAPI.lua_toboolean(L, 4); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetResolveReturnCost( _id, _level, _fromCompose ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetResolveReturnCost( _id, _level ); |
| | | LuaAPI.xlua_pushinteger(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.GatheringSoulModel.GetResolveReturnCost!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetResolveSouls(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _quality = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> _list = (System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List<Snxxz.UI.GatherSoulItem>)); |
| | | |
| | | gen_to_be_invoked.GetResolveSouls( _quality, _list ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RemoveOneKeyResolve(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.RemoveOneKeyResolve( _index ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_gatherSoulPropertys(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.gatherSoulPropertys); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_packIndexs(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.packIndexs); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_resolveItems(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.resolveItems); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_holeCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.holeCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_autoResolve(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoResolve); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_coreHole(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.coreHole); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_autoResolveRemainCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.autoResolveRemainCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_redpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.redpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_equipRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.equipRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_replaceRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.replaceRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_resolveRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.resolveRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_levelUpRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.levelUpRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_equipRedpointHole(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.equipRedpointHole); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_levelUpRedpointHole(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.levelUpRedpointHole); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_replaceRedpointIndex(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.replaceRedpointIndex); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_autoResolve(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.autoResolve = 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_equipRedpointHole(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.equipRedpointHole = LuaAPI.xlua_tointeger(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_levelUpRedpointHole(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.levelUpRedpointHole = LuaAPI.xlua_tointeger(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_replaceRedpointIndex(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.replaceRedpointIndex = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_gatherSoulHoleRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.gatherSoulHoleRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.gatherSoulHoleRefresh -= 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.GatheringSoulModel.gatherSoulHoleRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_gatherSoulHolesRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)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.gatherSoulHolesRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.gatherSoulHolesRefresh -= 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.GatheringSoulModel.gatherSoulHolesRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_gatherSoulPackRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)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.gatherSoulPackRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.gatherSoulPackRefresh -= 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.GatheringSoulModel.gatherSoulPackRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_oneKeyResolveRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.GatheringSoulModel gen_to_be_invoked = (Snxxz.UI.GatheringSoulModel)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.oneKeyResolveRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.oneKeyResolveRefresh -= 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.GatheringSoulModel.oneKeyResolveRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to Lua/Gen/SnxxzUIGatheringSoulModelWrap.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: 1ed75fdb9e6fc8a4fad586ab584d471c |
| | | timeCreated: 1545467164 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.MagicianModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 33, 10, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 34, 12, 7); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRedPoint", _m_UpdateRedPoint); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRedpointLightByType", _m_GetRedpointLightByType); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "HammerGodWeapon", _m_HammerGodWeapon); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayHammerAudio", _m_PlayHammerAudio); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGodWeaponInfo", _m_UpdateGodWeaponInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetUnlockStage", _m_TryGetUnlockStage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetUnlockSkill", _m_TryGetUnlockSkill); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponIcons", _g_get_godWeaponIcons); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectType", _g_get_selectType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoHammerLevel", _g_get_autoHammerLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "hammerAudioId", _g_get_hammerAudioId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "audioLength", _g_get_audioLength); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "magicianRedpoint", _g_get_magicianRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponSkillDict", _g_get_godWeaponSkillDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponSorts", _g_get_godWeaponSorts); |
| | |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.HammerGodWeapon( _type ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_PlayHammerAudio(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.PlayHammerAudio( ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_hammerAudioId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hammerAudioId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_audioLength(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.audioLength); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_magicianRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.RoleModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 7, 2, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 2, 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, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRename", _m_SetRename); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ServerRenameResult", _m_ServerRenameResult); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenRolePanel", _m_OpenRolePanel); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "playerRename", _g_get_playerRename); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OpenRolePanel(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.RoleModel gen_to_be_invoked = (Snxxz.UI.RoleModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OpenRolePanel( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.RoleParticularModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 19, 3, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 22, 3, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemData", _m_GetItemData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetViewPlayerData", _m_GetViewPlayerData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewRoleEquip", _m_ViewRoleEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewRoleFightPower", _m_ViewRoleFightPower); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewKingFairyLeader", _m_ViewKingFairyLeader); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewFairyFeastTransmit", _m_ViewFairyFeastTransmit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRevRoleEquip", _m_OnRevRoleEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRevRoleFuncPower", _m_OnRevRoleFuncPower); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFuncFightPower", _m_GetFuncFightPower); |
| | |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PowerUpdate", _e_PowerUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePlayerParticularEvent", _e_UpdatePlayerParticularEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "viewPlayerUpdate", _e_viewPlayerUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewPlayer", _g_get_viewPlayer); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewPlayerType", _g_get_viewPlayerType); |
| | |
| | | { |
| | | |
| | | 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_OnBeforePlayerDataInitialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnBeforePlayerDataInitialize( ); |
| | | |
| | | |
| | | |
| | |
| | | int __playerId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.ViewKingFairyLeader( __playerId ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ViewFairyFeastTransmit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __playerId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.ViewFairyFeastTransmit( __playerId ); |
| | | |
| | | |
| | | |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_viewPlayerUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.RoleParticularModel gen_to_be_invoked = (Snxxz.UI.RoleParticularModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int, Snxxz.UI.RoleParticularModel.ViewPlayerData> gen_delegate = translator.GetDelegate<System.Action<int, Snxxz.UI.RoleParticularModel.ViewPlayerData>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int, Snxxz.UI.RoleParticularModel.ViewPlayerData>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.viewPlayerUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.viewPlayerUpdate -= 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.RoleParticularModel.viewPlayerUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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 SnxxzUIVirtualPackModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.VirtualPackModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 9, 0, 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, "GetPackCapacity", _m_GetPackCapacity); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPackRemainCount", _m_GetPackRemainCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetItems", _m_TryGetItems); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnReceiveServerPack", _m_OnReceiveServerPack); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "virtualPackRefresh", _e_virtualPackRefresh); |
| | | |
| | | |
| | | |
| | | |
| | | 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.VirtualPackModel gen_ret = new Snxxz.UI.VirtualPackModel(); |
| | | 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.VirtualPackModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)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.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)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.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)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.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)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_GetPackCapacity(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | PackType _packType;translator.Get(L, 2, out _packType); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetPackCapacity( _packType ); |
| | | 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_GetPackRemainCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | PackType _packType;translator.Get(L, 2, out _packType); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetPackRemainCount( _packType ); |
| | | 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_TryGetItems(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | PackType _packType;translator.Get(L, 2, out _packType); |
| | | System.Collections.Generic.List<int> _list; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetItems( _packType, out _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnReceiveServerPack(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<HA204_tagMCVPackRefresh>(L, 2)) |
| | | { |
| | | HA204_tagMCVPackRefresh _package = (HA204_tagMCVPackRefresh)translator.GetObject(L, 2, typeof(HA204_tagMCVPackRefresh)); |
| | | |
| | | gen_to_be_invoked.OnReceiveServerPack( _package ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 2&& translator.Assignable<HA205_tagMCVPackClear>(L, 2)) |
| | | { |
| | | HA205_tagMCVPackClear _package = (HA205_tagMCVPackClear)translator.GetObject(L, 2, typeof(HA205_tagMCVPackClear)); |
| | | |
| | | gen_to_be_invoked.OnReceiveServerPack( _package ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.VirtualPackModel.OnReceiveServerPack!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_virtualPackRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.VirtualPackModel gen_to_be_invoked = (Snxxz.UI.VirtualPackModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<PackType> gen_delegate = translator.GetDelegate<System.Action<PackType>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<PackType>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.virtualPackRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.virtualPackRefresh -= 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.VirtualPackModel.virtualPackRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to Lua/Gen/SnxxzUIVirtualPackModelWrap.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: d0f4beb7e2cf83244a4ad12fb7a1ee7f |
| | | timeCreated: 1545467173 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | translator.DelayWrapLoader(typeof(GMCmdModel), GMCmdModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GatherSoulComposeModel), SnxxzUIGatherSoulComposeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GatherSoulDungeonModel), SnxxzUIGatherSoulDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GatheringSoulModel), SnxxzUIGatheringSoulModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.VirtualPackModel), SnxxzUIVirtualPackModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GuardModel), SnxxzUIGuardModelWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PKModel), SnxxzUIPKModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.StoryMissionsModel), SnxxzUIStoryMissionsModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(PutawayData), PutawayDataWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BattleHint), SnxxzUIBattleHintWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(EquipWashModel), EquipWashModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GemModel), SnxxzUIGemModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(WashProModel), WashProModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.WingsRedDot), SnxxzUIWingsRedDotWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeMgr), TimeMgrWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(UIEffect), UIEffectWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(FileExtersion), FileExtersionWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(GMCommand), GMCommandWrap.__Register); |
| | | |
| | |
| | | <type fullname="Snxxz.UI.WorldBossModel" preserve="all"/> |
| | | <type fullname="FriendsModel" preserve="all"/> |
| | | <type fullname="GMCmdModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.GatherSoulComposeModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.GatherSoulDungeonModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.GatheringSoulModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.VirtualPackModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.GuardModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.HappyXBModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.HeavenBattleInfo" preserve="all"/> |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.Hotfix]
|
| | | public class DungeonFairyFeastHintWin : Window
|
| | | {
|
| | | [SerializeField] Button m_FairyFeast;
|
| | |
| | | [SerializeField] FairyFeastRankBehaviour[] m_RankBehaviours;
|
| | | [SerializeField] FairyFeastRankBehaviour m_TopRank;
|
| | | [SerializeField] DungeonMultipleTaskWin.SelectEffect m_SelectEffect;
|
| | | [SerializeField] Button m_Transmit;
|
| | | [SerializeField] SmoothSlider m_TransmitSlider;
|
| | | [SerializeField] Text m_TransmitProgress;
|
| | | [SerializeField] Button m_OpenTransmit;
|
| | | [SerializeField] Button m_GotoFeast;
|
| | | [SerializeField] RectTransform m_ContainerQuestion;
|
| | | [SerializeField] Text m_QuestionTime;
|
| | |
|
| | | DungeonModel model { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | FairyFeastModel fairyFeastModel { get { return ModelCenter.Instance.GetModel<FairyFeastModel>(); } }
|
| | | FairyModel fairyModel { get { return ModelCenter.Instance.GetModel<FairyModel>(); } }
|
| | |
|
| | | int currentSelect = 0;
|
| | | bool nearNpc = false;
|
| | |
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | |
| | | {
|
| | | Select(1);
|
| | | });
|
| | | m_Transmit.onClick.AddListener(Transmit);
|
| | | m_OpenTransmit.onClick.AddListener(OpenTransmit);
|
| | | m_GotoFeast.onClick.AddListener(OnGotoFeast);
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | nearNpc = false;
|
| | | Select(0);
|
| | | m_TransmitSlider.ResetValue(0);
|
| | | model.updateMissionEvent += UpdateMissionEvent;
|
| | | fairyFeastModel.selectTransmit += SelectTransmit;
|
| | | fairyFeastModel.transmitStateUpdate += TransmitStateUpdate;
|
| | | SelectTransmit();
|
| | | GA_NpcCollect.OnArrive += OnArriveCollectNPC;
|
| | | GA_NpcCollect.OnLeave += OnLeaveCollectNpc;
|
| | | GlobalTimeEvent.Instance.secondEvent += SecondEvent;
|
| | | DisplayTransmit();
|
| | | DisplayGotoFeast();
|
| | | DisplayQuestionTime();
|
| | | }
|
| | |
|
| | |
|
| | |
| | | protected override void OnPreClose()
|
| | | {
|
| | | model.updateMissionEvent -= UpdateMissionEvent;
|
| | | fairyFeastModel.selectTransmit -= SelectTransmit;
|
| | | fairyFeastModel.transmitStateUpdate -= TransmitStateUpdate;
|
| | | GA_NpcCollect.OnArrive -= OnArriveCollectNPC;
|
| | | GA_NpcCollect.OnLeave -= OnLeaveCollectNpc;
|
| | | GlobalTimeEvent.Instance.secondEvent -= SecondEvent;
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void LateUpdate()
|
| | | {
|
| | | if (fairyFeastModel.transmiting)
|
| | | {
|
| | | if (!m_TransmitSlider.gameObject.activeSelf)
|
| | | {
|
| | | m_TransmitSlider.gameObject.SetActive(true);
|
| | | }
|
| | | var surplusTime = (fairyFeastModel.transmitCompleteTime - DateTime.Now).TotalSeconds;
|
| | | var progress = Mathf.Clamp01(1 - (float)surplusTime / fairyFeastModel.transmitCostSeconds);
|
| | | m_TransmitSlider.value = progress;
|
| | | m_TransmitProgress.text = StringUtility.Contact((int)(progress * 100), "%");
|
| | | }
|
| | | else
|
| | | {
|
| | | if (m_TransmitSlider.gameObject.activeSelf)
|
| | | {
|
| | | m_TransmitSlider.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void Select(int _index)
|
| | |
| | | {
|
| | | DisplayRank();
|
| | | }
|
| | | DisplayTransmit();
|
| | | DisplayGotoFeast();
|
| | | }
|
| | |
|
| | | void DisplayRank()
|
| | |
| | | return x.rank.CompareTo(y.rank);
|
| | | }
|
| | |
|
| | | private void SelectTransmit()
|
| | | private void OnArriveCollectNPC(uint arg0, int _npcId)
|
| | | {
|
| | | m_Transmit.gameObject.SetActive(fairyFeastModel.selectPlayer != 0 && fairyFeastModel.allowTransmit
|
| | | && !fairyFeastModel.transmiting);
|
| | | if (_npcId == fairyModel.fairyFeastDeskNpc)
|
| | | {
|
| | | nearNpc = true;
|
| | | DisplayGotoFeast();
|
| | | DisplayTransmit();
|
| | | }
|
| | | }
|
| | |
|
| | | private void Transmit()
|
| | | private void OnLeaveCollectNpc(uint arg0, int _npcId)
|
| | | {
|
| | | fairyFeastModel.Transmit();
|
| | | if (_npcId == fairyModel.fairyFeastDeskNpc)
|
| | | {
|
| | | nearNpc = false;
|
| | | DisplayGotoFeast();
|
| | | DisplayTransmit();
|
| | | }
|
| | | }
|
| | |
|
| | | private void TransmitStateUpdate()
|
| | | private void DisplayTransmit()
|
| | | {
|
| | | SelectTransmit();
|
| | | var mission = model.mission;
|
| | | m_OpenTransmit.gameObject.SetActive(mission.hasSit == 0 && !nearNpc);
|
| | | }
|
| | |
|
| | | private void DisplayGotoFeast()
|
| | | {
|
| | | var mission = model.mission;
|
| | | m_GotoFeast.gameObject.SetActive(mission.hasCollect == 0 && !nearNpc);
|
| | | }
|
| | |
|
| | | private void SecondEvent()
|
| | | {
|
| | | DisplayQuestionTime();
|
| | | }
|
| | |
|
| | | private void DisplayQuestionTime()
|
| | | {
|
| | | bool requireNoticeQuestionTime = false;
|
| | | HourMinute time;
|
| | | if (fairyFeastModel.TryGetQuestionTime(out time))
|
| | | {
|
| | | if (TimeUtility.Hour <= time.hourBegin)
|
| | | {
|
| | | if (TimeUtility.Minute < time.minuteBegin)
|
| | | {
|
| | | requireNoticeQuestionTime = true;
|
| | | }
|
| | | }
|
| | | }
|
| | | if (m_ContainerQuestion.gameObject.activeSelf != requireNoticeQuestionTime)
|
| | | {
|
| | | m_ContainerQuestion.gameObject.SetActive(requireNoticeQuestionTime);
|
| | | }
|
| | | if (requireNoticeQuestionTime)
|
| | | {
|
| | | var startTime = new DateTime(TimeUtility.Year, TimeUtility.Month, TimeUtility.Day,
|
| | | time.hourBegin, time.minuteBegin, 0);
|
| | | var seconds = Mathf.CeilToInt((float)(startTime - TimeUtility.ServerNow).TotalSeconds);
|
| | | m_QuestionTime.text = Language.Get("FairyFeastQuestionTime", TimeUtility.SecondsToDHMSCHS(seconds));
|
| | | }
|
| | | }
|
| | |
|
| | | private void OpenTransmit()
|
| | | {
|
| | | WindowCenter.Instance.Open<FairyFeastTransmitListWin>();
|
| | | }
|
| | |
|
| | | private void OnGotoFeast()
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_HeroMoveToActor(fairyModel.fairyFeastDeskNpc));
|
| | | }
|
| | |
|
| | | IEnumerator Co_HeroMoveToActor(int _npcId)
|
| | | {
|
| | | var _hero = PlayerDatas.Instance.hero;
|
| | | while (_hero.SkillMgr.CurCastSkill != null &&
|
| | | _hero.SkillMgr.CurCastSkill.SkillCompelete == false)
|
| | | {
|
| | | yield return null;
|
| | | }
|
| | | MapTransferUtility.Instance.MoveToNPC(_npcId);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | inspireRemindEffective = false;
|
| | | inspireNoRemind = false;
|
| | | ModelCenter.Instance.GetModel<GatherSoulDungeonModel>().ResetDungeonMessage();
|
| | | ModelCenter.Instance.GetModel<FairyFeastModel>().ResetHelpMessage();
|
| | | }
|
| | |
|
| | | public void UpdateRecords(HA320_tagMCPlayerFBInfoData.tagMCFBInfo[] _serverInfos)
|
| | |
| | | {
|
| | | PlayerDatas.Instance.hero.ShowArrow(false);
|
| | | }
|
| | | ModelCenter.Instance.GetModel<FairyFeastModel>().OnReceiveHelpMessage(_mission);
|
| | | if (GetDungeonHintId(mapId, lineId) != 0)
|
| | | {
|
| | | if (!WindowCenter.Instance.IsOpen<DungeonMissionHintWin>())
|
| | |
| | | GetTargetInfo(2, desc, targetValue, step, config.targetType3, npcId); |
| | | } |
| | | |
| | | descText.text = config.Info.Length > step ? config.Info[step] : config.Info[0]; |
| | | switch (dateMapId)
|
| | | {
|
| | | case GatherSoulDungeonModel.DUNGEON_MAPID:
|
| | | var weel = Mathf.Clamp(model.mission.wheel, 1, int.MaxValue) - 1;
|
| | | descText.text = config.Info.Length > weel ? config.Info[weel] : config.Info[0];
|
| | | break;
|
| | | default:
|
| | | descText.text = config.Info.Length > step ? config.Info[step] : config.Info[0];
|
| | | break;
|
| | | } |
| | | } |
| | | |
| | | private void GetTargetInfo(int _index,string desc,int _targetValue,int _targetStep,int _targetType,int npcId=0) |
| New file |
| | |
| | | using System;
|
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using TableConfig;
|
| | | using UnityEngine; |
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class FairyFeastMemberCell : CellView
|
| | | {
|
| | | [SerializeField] Text m_PlayerName;
|
| | | [SerializeField] Text m_Level;
|
| | | [SerializeField] Text m_Duty;
|
| | | [SerializeField] Text m_State;
|
| | | [SerializeField] Image m_Realm;
|
| | | [SerializeField] Button m_Transmit;
|
| | |
|
| | | FairyFeastModel model
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<FairyFeastModel>(); }
|
| | | }
|
| | |
|
| | | public void Display(int index)
|
| | | {
|
| | | m_Transmit.RemoveAllListeners();
|
| | | if (index >= model.displayFairyMembers.Count)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var fairyMember = model.displayFairyMembers[index];
|
| | | m_PlayerName.text = fairyMember.Name;
|
| | | m_Level.text = fairyMember.LV.ToString();
|
| | | m_Duty.text = Language.Get(string.Format("L102{0}", fairyMember.FamilyLV + 1));
|
| | | if (fairyMember.Exattr2 != 0)
|
| | | {
|
| | | m_State.text = Language.Get("Offline");
|
| | | m_State.color = UIHelper.GetUIColor(TextColType.White, true);
|
| | | }
|
| | | else if (!model.fairyFeastPlayers.Contains(fairyMember.PlayerID)
|
| | | && fairyMember.PlayerID != PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | m_State.text = Language.Get("FairyFeastFarFrom");
|
| | | m_State.color = UIHelper.GetUIColor(TextColType.Red, true);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_State.text = Language.Get("L1025");
|
| | | m_State.color = UIHelper.GetUIColor(TextColType.Green, true);
|
| | | }
|
| | | var realmLevel = fairyMember.OfficialRank;
|
| | | var config = Config.Instance.Get<RealmConfig>(realmLevel);
|
| | | if (config != null)
|
| | | {
|
| | | m_Realm.SetSprite(config.Img);
|
| | | }
|
| | | m_Transmit.gameObject.SetActive(fairyMember.PlayerID != PlayerDatas.Instance.baseData.PlayerID);
|
| | | if (fairyMember.PlayerID != PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | m_Transmit.AddListener(() =>
|
| | | {
|
| | | OnTransmit(fairyMember);
|
| | | });
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnTransmit(PlayerFairyData.FairyMember fairyMember)
|
| | | {
|
| | | if (fairyMember != null)
|
| | | {
|
| | | model.Transmit(fairyMember);
|
| | | }
|
| | | }
|
| | | }
|
| | | } |
| | | |
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to System/FairyAu/FairyFeastMemberCell.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: ac5510054e0f6724893f27bd13d63e68 |
| | | timeCreated: 1544182652 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | [XLua.LuaCallCSharp]
|
| | | public class FairyFeastModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | public uint selectPlayer { get; private set; }
|
| | | public bool allowTransmit { get; private set; }
|
| | |
|
| | | public bool nearNpc { get; private set; }
|
| | |
|
| | | public event Action selectTransmit;
|
| | |
|
| | | public event Action transmitStateUpdate;
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | FairyModel fairyModel { get { return ModelCenter.Instance.GetModel<FairyModel>(); } }
|
| | | RoleParticularModel roleParticularModel { get { return ModelCenter.Instance.GetModel<RoleParticularModel>(); } }
|
| | |
|
| | | public List<uint> fairyFeastPlayers = new List<uint>();
|
| | |
|
| | | public event Action fairyFeastPlayerUpdate;
|
| | |
|
| | | public int transmitCostSeconds { get; private set; }
|
| | | string expFormula { get; set; }
|
| | | public int riseLevel { get; private set; }
|
| | | public int expFlyStage { get; private set; }
|
| | | public int expFlyCount { get; private set; }
|
| | | public ulong totalExp { get; private set; }
|
| | |
|
| | | Dictionary<int, HourMinute> normalQuestionTimes = new Dictionary<int, HourMinute>();
|
| | | Dictionary<int, Dictionary<int, HourMinute>> specialQuestionTime =
|
| | | new Dictionary<int, Dictionary<int, HourMinute>>();
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | | ParseConfig();
|
| | | GA_Player.s_OnSelected += OnSelected;
|
| | | GlobalTimeEvent.Instance.secondEvent += SecondEvent;
|
| | | StageManager.Instance.onStageLoadFinish += OnStageLoadFinish;
|
| | | dungeonModel.updateMissionEvent += UpdateMissionEvent;
|
| | | PrepareHandler.Instance.OnPrepareEndSuccess += OnPrepareEndSuccess;
|
| | | GA_NpcCollect.OnArrive += OnArriveNpc;
|
| | | GA_NpcCollect.OnLeave += OnLeaveNpc;
|
| | | roleParticularModel.viewPlayerUpdate += ViewPlayerUpdate;
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | GA_Player.s_OnSelected -= OnSelected;
|
| | | GlobalTimeEvent.Instance.secondEvent -= SecondEvent;
|
| | | StageManager.Instance.onStageLoadFinish -= OnStageLoadFinish;
|
| | | dungeonModel.updateMissionEvent -= UpdateMissionEvent;
|
| | | PrepareHandler.Instance.OnPrepareEndSuccess -= OnPrepareEndSuccess;
|
| | | GA_NpcCollect.OnArrive -= OnArriveNpc;
|
| | | GA_NpcCollect.OnLeave -= OnLeaveNpc;
|
| | | roleParticularModel.viewPlayerUpdate -= ViewPlayerUpdate;
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | transmitCompleteTime = TimeUtility.ClientOriginalTime;
|
| | | if (transmitClock != null)
|
| | | {
|
| | | transmitClock.Stop();
|
| | | transmitClock = null;
|
| | | }
|
| | | fairyFeastPlayers.Clear();
|
| | | transmitPlayer = 0;
|
| | | }
|
| | |
|
| | | private void OnStageLoadFinish()
|
| | | {
|
| | | selectPlayer = 0;
|
| | | nearNpc = false;
|
| | | if (transmitClock != null)
|
| | | {
|
| | | transmitClock.Stop();
|
| | | transmitClock = null;
|
| | | }
|
| | | }
|
| | |
|
| | | private void SecondEvent()
|
| | | {
|
| | | if (selectPlayer != 0)
|
| | | {
|
| | | var actor = GAMgr.Instance.GetBySID(selectPlayer);
|
| | | bool update = false;
|
| | | if (actor == null || !(actor is GA_Player))
|
| | | {
|
| | | selectPlayer = 0;
|
| | | update = true;
|
| | | }
|
| | | else
|
| | | {
|
| | | var player = actor as GA_Player;
|
| | | var hero = PlayerDatas.Instance.hero;
|
| | | if (SatisfyTransmitState())
|
| | | {
|
| | | var distance = MathUtility.CalDistance(player.Pos, hero.Pos);
|
| | | if (allowTransmit != (distance <= transmitDistance))
|
| | | {
|
| | | allowTransmit = distance <= transmitDistance;
|
| | | update = true;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | if (allowTransmit)
|
| | | {
|
| | | allowTransmit = false;
|
| | | update = true;
|
| | | }
|
| | | }
|
| | | }
|
| | | if (update && selectTransmit != null)
|
| | | {
|
| | | selectTransmit();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnArriveNpc(uint arg0, int _npcId)
|
| | | {
|
| | | if (_npcId == fairyModel.fairyFeastDeskNpc)
|
| | | {
|
| | | nearNpc = true;
|
| | | SecondEvent();
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnLeaveNpc(uint arg0, int _npcId)
|
| | | {
|
| | | if (_npcId == fairyModel.fairyFeastDeskNpc)
|
| | | {
|
| | | nearNpc = false;
|
| | | SecondEvent();
|
| | | }
|
| | | }
|
| | |
|
| | | float transmitDistance = 2f;
|
| | | public int transmitCostSeconds { get; private set; }
|
| | | void ParseConfig()
|
| | | {
|
| | | var config = Config.Instance.Get<FuncConfigConfig>("FairyFeastTransmit");
|
| | | transmitCostSeconds = 15;
|
| | | expFlyCount = 3;
|
| | | expFlyStage = 3;
|
| | | if (config != null)
|
| | | {
|
| | | transmitDistance = float.Parse(config.Numerical1);
|
| | | transmitCostSeconds = int.Parse(config.Numerical2);
|
| | | expFlyStage = int.Parse(config.Numerical3);
|
| | | expFlyCount = int.Parse(config.Numerical4);
|
| | | }
|
| | | }
|
| | | config = Config.Instance.Get<FuncConfigConfig>("FamilyPartySitAward");
|
| | | expFormula = config.Numerical1;
|
| | | riseLevel = int.Parse(config.Numerical2);
|
| | |
|
| | | bool SatisfyTransmitState()
|
| | | {
|
| | | var hero = PlayerDatas.Instance.hero;
|
| | | if (hero == null || hero.IsCollect()
|
| | | || hero.IsCollect() || hero.IsDaZuo() || nearNpc)
|
| | | var list = DungeonStateTimeConfig.DungeonStateTimes(31230);
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | private void OnSelected(uint serverInstId, bool select)
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | if (mapId != 31230)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (transmiting)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var mission = dungeonModel.mission;
|
| | | if (mission.hasSit == 1)
|
| | | {
|
| | | return;
|
| | | }
|
| | | selectPlayer = 0;
|
| | | allowTransmit = false;
|
| | | if (select)
|
| | | {
|
| | | var actor = GAMgr.Instance.GetBySID(serverInstId);
|
| | | if (actor != null && actor is GA_Player)
|
| | | if (list[i].StateValue == 2)
|
| | | {
|
| | | var player = actor as GA_Player;
|
| | | var hero = PlayerDatas.Instance.hero;
|
| | | var distance = MathUtility.CalDistance(player.Pos, hero.Pos);
|
| | | if (SatisfyTransmitState())
|
| | | var dayOfWeek = list[i].StartWeekday % 7;
|
| | | if (!normalQuestionTimes.ContainsKey(dayOfWeek))
|
| | | {
|
| | | allowTransmit = distance <= transmitDistance;
|
| | | }
|
| | | selectPlayer = serverInstId;
|
| | | }
|
| | | }
|
| | | if (selectTransmit != null)
|
| | | {
|
| | | selectTransmit();
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 仙盟宴会采集结束
|
| | | /// </summary>
|
| | | private void OnPrepareEndSuccess()
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | if (mapId != 31230)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var mission = dungeonModel.mission;
|
| | | if (mission.hasSit == 1)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (!WindowCenter.Instance.IsOpen<MainInterfaceWin>()
|
| | | || WindowCenter.Instance.ExitAnyFullScreenOrMaskWin())
|
| | | {
|
| | | return;
|
| | | }
|
| | | var list = GAMgr.Instance.GetTypeList(E_ActorClassType.Player);
|
| | | if (list != null)
|
| | | {
|
| | | var hero = PlayerDatas.Instance.hero;
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | var player = list[i] as GA_Player;
|
| | | if (player != null)
|
| | | {
|
| | | var distance = MathUtility.CalDistance(player.Pos, hero.Pos);
|
| | | if (distance < transmitDistance)
|
| | | normalQuestionTimes.Add(dayOfWeek, new HourMinute()
|
| | | {
|
| | | player.OnClick();
|
| | | return;
|
| | | }
|
| | | hourBegin = list[i].StartHour,
|
| | | hourEnd = list[i].EndHour,
|
| | | minuteBegin = list[i].StartMinute,
|
| | | minuteEnd = list[i].EndMinute,
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | var specialList = DungeonSpecialStateTimeConfig.GetDungeonTimes(31230);
|
| | | for (int i = 0; i < specialList.Count; i++)
|
| | | {
|
| | | if (specialList[i].StateValue == 2)
|
| | | {
|
| | | var dayOfWeek = specialList[i].OpenServerWeek % 7;
|
| | | Dictionary<int, HourMinute> dict;
|
| | | if (!specialQuestionTime.TryGetValue(dayOfWeek, out dict))
|
| | | {
|
| | | dict = new Dictionary<int, HourMinute>();
|
| | | specialQuestionTime.Add(dayOfWeek, dict);
|
| | | }
|
| | | if (!dict.ContainsKey(specialList[i].OpenServerDay))
|
| | | {
|
| | | dict.Add(specialList[i].OpenServerDay, new HourMinute()
|
| | | {
|
| | | hourBegin = specialList[i].StartHour,
|
| | | hourEnd = specialList[i].EndHour,
|
| | | minuteBegin = specialList[i].StartMinute,
|
| | | minuteEnd = specialList[i].EndMinute,
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void UpdateMissionEvent()
|
| | | public bool TryGetQuestionTime(out HourMinute time)
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | if (mapId != 31230)
|
| | | time = default(HourMinute);
|
| | | bool isSpecial = TimeUtility.OpenWeekCnt <= 1;
|
| | | if (isSpecial)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var mission = dungeonModel.mission;
|
| | | if (mission.hasSit == 1 && selectPlayer != 0)
|
| | | {
|
| | | selectPlayer = 0;
|
| | | if (selectTransmit != null)
|
| | | var openDayWeek = (int)TimeUtility.openServerDayOfWeek;
|
| | | if (specialQuestionTime.ContainsKey(openDayWeek))
|
| | | {
|
| | | selectTransmit();
|
| | | var dict = specialQuestionTime[openDayWeek];
|
| | | var dayIndex = TimeUtility.OpenDay + 1;
|
| | | if (dict.ContainsKey(dayIndex))
|
| | | {
|
| | | time = dict[dayIndex];
|
| | | return true;
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | var dayOfWeek = (int)TimeUtility.ServerNow.DayOfWeek;
|
| | | if (normalQuestionTimes.ContainsKey(dayOfWeek))
|
| | | {
|
| | | time = normalQuestionTimes[dayOfWeek];
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public void OnReceiveHelpMessage(string _mission)
|
| | | {
|
| | | var json = LitJson.JsonMapper.ToObject(_mission);
|
| | | if (json != null && json.Keys.Contains("familyPartyPlayer"))
|
| | | {
|
| | | fairyFeastPlayers.Clear();
|
| | | var array = LitJson.JsonMapper.ToObject<uint[]>(json["familyPartyPlayer"].ToJson());
|
| | | if (array != null)
|
| | | {
|
| | | fairyFeastPlayers.AddRange(array);
|
| | | }
|
| | | if (fairyFeastPlayerUpdate != null)
|
| | | {
|
| | | fairyFeastPlayerUpdate();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | #region 服务端数据
|
| | | public DateTime transmitCompleteTime { get; private set; }
|
| | | public bool transmiting
|
| | | public void ResetHelpMessage()
|
| | | {
|
| | | get
|
| | | {
|
| | | return DateTime.Now < transmitCompleteTime;
|
| | | }
|
| | | }
|
| | |
|
| | | private Clock transmitClock = null;
|
| | |
|
| | | public void Transmit()
|
| | | {
|
| | | if (selectPlayer != 0)
|
| | | {
|
| | | CA508_tagCMDoFBAction pak = new CA508_tagCMDoFBAction();
|
| | | pak.ActionType = 0;
|
| | | pak.ActionInfo = selectPlayer;
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | | fairyFeastPlayers.Clear();
|
| | | transmitPlayer = 0;
|
| | | }
|
| | |
|
| | | public void UpdateTransmitState(H0411_tagPlayerSit package)
|
| | |
| | | }
|
| | | if (package.Type == 0)
|
| | | {
|
| | | transmitCompleteTime = DateTime.Now.AddTicks(transmitCostSeconds * TimeSpan.TicksPerSecond);
|
| | | transmitClock = Clock.Create(transmitCostSeconds, TransmitComplete);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (transmitClock != null)
|
| | | totalExp = 0;
|
| | | var level = PlayerDatas.Instance.baseData.LV;
|
| | | var worldLevel = PlayerDatas.Instance.worldLv;
|
| | | for (int i = 0; i < riseLevel; i++)
|
| | | {
|
| | | transmitClock.Stop();
|
| | | transmitClock = null;
|
| | | var config = Config.Instance.Get<PlayerLVConfig>(level + 1);
|
| | | totalExp += (ulong)config.EXP1 * Constants.ExpPointValue + (ulong)config.EXP2;
|
| | | }
|
| | | transmitCompleteTime = TimeUtility.ClientOriginalTime;
|
| | | }
|
| | | if (transmitStateUpdate != null)
|
| | | {
|
| | | transmitStateUpdate();
|
| | | var levelConfig = Config.Instance.Get<PlayerLVConfig>(level + riseLevel);
|
| | | Equation.Instance.Clear();
|
| | | Equation.Instance.AddKeyValue("worldlv", worldLevel);
|
| | | Equation.Instance.AddKeyValue("reLV", level + riseLevel);
|
| | | Equation.Instance.AddKeyValue("reExp", levelConfig.ReExp);
|
| | | totalExp += Equation.Instance.Eval<ulong>(expFormula);
|
| | | FairyFeastTransmitShow.Instance.Open();
|
| | | }
|
| | | }
|
| | |
|
| | | void TransmitComplete()
|
| | | public void TransmitComplete()
|
| | | {
|
| | | transmitClock = null;
|
| | | CA508_tagCMDoFBAction pak = new CA508_tagCMDoFBAction();
|
| | | pak.ActionType = 1;
|
| | | pak.ActionInfo = 0;
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | if (transmitStateUpdate != null)
|
| | | }
|
| | |
|
| | | public List<PlayerFairyData.FairyMember> displayFairyMembers = new List<PlayerFairyData.FairyMember>();
|
| | | public uint transmitPlayer = 0;
|
| | |
|
| | | public void Transmit(PlayerFairyData.FairyMember fairyMember)
|
| | | {
|
| | | if (fairyMember.PlayerID == PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | transmitStateUpdate();
|
| | | return;
|
| | | }
|
| | | if (fairyMember.Exattr2 != 0)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FairyFeastPlayerOffline");
|
| | | return;
|
| | | }
|
| | | if (!fairyFeastPlayers.Contains(fairyMember.PlayerID))
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FairyFeastPlayerFarfrom");
|
| | | return;
|
| | | }
|
| | | transmitPlayer = fairyMember.PlayerID;
|
| | | roleParticularModel.ViewFairyFeastTransmit((int)fairyMember.PlayerID);
|
| | | CA508_tagCMDoFBAction pak = new CA508_tagCMDoFBAction();
|
| | | pak.ActionType = 0;
|
| | | pak.ActionInfo = transmitPlayer;
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | |
|
| | | private void ViewPlayerUpdate(int type, RoleParticularModel.ViewPlayerData data)
|
| | | {
|
| | | if (type == 3)
|
| | | {
|
| | |
|
| | | }
|
| | | }
|
| | | #endregion
|
| | | }
|
| | | } |
| | | |
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Friday, December 07, 2018
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System;
|
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class FairyFeastTransmitListWin : Window
|
| | | {
|
| | | [SerializeField] Button m_Close; |
| | | [SerializeField] Button m_Refresh; |
| | | [SerializeField] ScrollerController m_ScrollerControl;
|
| | |
|
| | | FairyModel model
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<FairyModel>(); }
|
| | | }
|
| | |
|
| | | FairyFeastModel fairyFeastModel
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<FairyFeastModel>(); }
|
| | | }
|
| | |
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_Close.onClick.AddListener(CloseClick);
|
| | | m_Refresh.onClick.AddListener(Refresh);
|
| | | m_ScrollerControl.OnRefreshCell += OnRefreshCell;
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | C0F07_tagCGetFamilyInfo pak = new C0F07_tagCGetFamilyInfo(); |
| | | pak.Type = 0; |
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | |
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo += DisplayFairyMembers;
|
| | | fairyFeastModel.fairyFeastPlayerUpdate += FairyFeastPlayerUpdate;
|
| | | DisplayFairyMembers();
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo -= DisplayFairyMembers;
|
| | | fairyFeastModel.fairyFeastPlayerUpdate -= FairyFeastPlayerUpdate;
|
| | | fairyFeastModel.displayFairyMembers.Clear();
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void Refresh()
|
| | | {
|
| | | C0F07_tagCGetFamilyInfo pak = new C0F07_tagCGetFamilyInfo(); |
| | | pak.Type = 0; |
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | |
|
| | | private void OnRefreshCell(ScrollerDataType type, CellView cell)
|
| | | {
|
| | | var fairyMemberCell = cell as FairyFeastMemberCell;
|
| | | fairyMemberCell.Display(cell.index);
|
| | | }
|
| | |
|
| | | private void FairyFeastPlayerUpdate()
|
| | | {
|
| | | m_ScrollerControl.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | |
|
| | | void DisplayFairyMembers()
|
| | | {
|
| | | fairyFeastModel.displayFairyMembers.Clear(); |
| | | m_ScrollerControl.Refresh(); |
| | | PlayerFairyData.FairyData fairy = PlayerDatas.Instance.fairyData.fairy; |
| | | if (fairy != null)
|
| | | { |
| | | List<PlayerFairyData.FairyMember> list = fairy.Member; |
| | | if (list != null)
|
| | | { |
| | | fairyFeastModel.displayFairyMembers.AddRange(list); |
| | | } |
| | | fairyFeastModel.displayFairyMembers.Sort(Compare); |
| | | for (int i = 0; i < fairyFeastModel.displayFairyMembers.Count; i++) |
| | | { |
| | | m_ScrollerControl.AddCell(i % 2 == 0 ? ScrollerDataType.Header : ScrollerDataType.Normal, i); |
| | | } |
| | | } |
| | | m_ScrollerControl.Restart();
|
| | | }
|
| | |
|
| | | int Compare(PlayerFairyData.FairyMember lhs, PlayerFairyData.FairyMember rhs)
|
| | | {
|
| | | bool lOnline = lhs.Exattr2 == 0;
|
| | | bool rOnline = rhs.Exattr2 == 0;
|
| | | if (lOnline.CompareTo(rOnline) != 0)
|
| | | {
|
| | | return lhs.Exattr2.CompareTo(rhs.Exattr2);
|
| | | }
|
| | | if (lhs.LV.CompareTo(rhs.LV) != 0)
|
| | | {
|
| | | return -lhs.LV.CompareTo(rhs.LV);
|
| | | }
|
| | | if (lhs.FamilyLV.CompareTo(rhs.FamilyLV) != 0)
|
| | | {
|
| | | return -lhs.FamilyLV.CompareTo(rhs.FamilyLV);
|
| | | }
|
| | | return 1;
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to System/FairyAu/FairyFeastTransmitListWin.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: 687f7ee760838274bbf9f16e2bf270de |
| | | timeCreated: 1544181539 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using System;
|
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using TableConfig;
|
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class FairyFeastTransmitShow : MonoBehaviour
|
| | | {
|
| | | static FairyFeastTransmitShow s_Instance = null;
|
| | | public static FairyFeastTransmitShow Instance
|
| | | {
|
| | | get
|
| | | {
|
| | | if (s_Instance == null)
|
| | | {
|
| | | var gameObject = Instantiate(UILoader.LoadPrefab("FairyFeastTransmitShow"));
|
| | | s_Instance = gameObject.GetComponent<FairyFeastTransmitShow>();
|
| | | s_Instance.transform.position = new Vector3(0, 4000, 5000);
|
| | | s_Instance.name = "FairyFeastTransmitShow";
|
| | | s_Instance.IsOpen = false;
|
| | | s_Instance.gameObject.SetActive(true);
|
| | | DontDestroyOnLoad(gameObject);
|
| | | }
|
| | | return s_Instance;
|
| | | }
|
| | | }
|
| | |
|
| | | Camera m_ShowCamera;
|
| | | Transform m_ShowPoint1;
|
| | | Transform m_ShowPoint2;
|
| | |
|
| | | FairyTransmitModel m_Hero;
|
| | | FairyTransmitModel m_Player;
|
| | |
|
| | | SFXController m_Effect;
|
| | |
|
| | | public Camera showCamera
|
| | | {
|
| | | get { return m_ShowCamera; }
|
| | | }
|
| | |
|
| | | public FairyTransmitModel hero
|
| | | {
|
| | | get { return m_Hero; }
|
| | | }
|
| | |
|
| | | public FairyTransmitModel player
|
| | | {
|
| | | get { return m_Player; }
|
| | | }
|
| | |
|
| | | public bool IsOpen
|
| | | {
|
| | | get; private set;
|
| | | }
|
| | |
|
| | | public float progress
|
| | | {
|
| | | get
|
| | | {
|
| | | return timer / model.transmitCostSeconds;
|
| | | }
|
| | | }
|
| | |
|
| | | float timer = 0f;
|
| | | int stage = 0;
|
| | |
|
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | | RoleParticularModel roleParticularModel { get { return ModelCenter.Instance.GetModel<RoleParticularModel>(); } }
|
| | | FairyFeastModel model { get { return ModelCenter.Instance.GetModel<FairyFeastModel>(); } }
|
| | |
|
| | | public event Action<ulong> popUpExpEvent;
|
| | | public event Action onComplete;
|
| | |
|
| | | public void Open()
|
| | | {
|
| | | if (IsOpen)
|
| | | {
|
| | | return;
|
| | | }
|
| | | try
|
| | | {
|
| | | IsOpen = true;
|
| | | timer = 0f;
|
| | | stage = 0;
|
| | |
|
| | | transform.position = Vector3.zero;
|
| | |
|
| | | if (m_Effect != null)
|
| | | {
|
| | | SFXPlayUtility.Instance.Release(m_Effect);
|
| | | m_Effect = null;
|
| | | }
|
| | |
|
| | | m_Effect = SFXPlayUtility.Instance.Play(3075, transform);
|
| | | m_Effect.transform.SetParent(transform);
|
| | | m_Effect.gameObject.SetActive(true);
|
| | | m_Effect.duration = 0;
|
| | | m_Effect.transform.localPosition = Vector3.zero;
|
| | | LayerUtility.SetLayer(m_Effect.gameObject, LayerUtility.BossShow, true);
|
| | |
|
| | | m_ShowCamera = m_Effect.transform.GetComponentInChildren<Camera>();
|
| | | m_ShowPoint1 = m_Effect.transform.Find("Ca/Animaiotn/gua1");
|
| | | m_ShowPoint2 = m_Effect.transform.Find("Ca/Animaiotn/gua2");
|
| | | m_ShowCamera.enabled = true;
|
| | |
|
| | | WindowJumpMgr.Instance.ClearJumpData();
|
| | | WindowCenter.Instance.CloseAll(WindowCenter.CloseAllIgnoreType.BaseAndCustom);
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | HideUI();
|
| | |
|
| | | DisplayPlayer();
|
| | |
|
| | | WindowCenter.Instance.Open<FairyFeastTransmitShowWin>(true);
|
| | |
|
| | | m_ShowCamera.gameObject.SetActive(true);
|
| | | CameraController.Instance.CameraObject.gameObject.SetActive(false);
|
| | |
|
| | | StageManager.Instance.onStartStageLoadingEvent -= OnStartStageLoadingEvent;
|
| | | StageManager.Instance.onStartStageLoadingEvent += OnStartStageLoadingEvent;
|
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | Stop();
|
| | | DebugEx.LogError(e.StackTrace);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | private void OnStartStageLoadingEvent(int obj)
|
| | | {
|
| | | Stop();
|
| | | }
|
| | |
|
| | | private void LateUpdate()
|
| | | {
|
| | | if (IsOpen)
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | | if (timer >= model.transmitCostSeconds)
|
| | | {
|
| | | Stop();
|
| | | return;
|
| | | }
|
| | | if (timer >= stage * model.transmitCostSeconds / (model.expFlyStage + 1))
|
| | | {
|
| | | StepStage();
|
| | | stage++;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | void StepStage()
|
| | | {
|
| | | if (stage > 0 && stage <= model.expFlyStage)
|
| | | {
|
| | | if (popUpExpEvent != null)
|
| | | {
|
| | | var exp = model.totalExp
|
| | | / (ulong)model.expFlyStage
|
| | | / (ulong)model.expFlyCount;
|
| | | for (int i = 0; i < model.expFlyCount; i++)
|
| | | {
|
| | | popUpExpEvent(exp);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | void HideUI()
|
| | | {
|
| | | UIRoot uiRoot = WindowCenter.Instance.uiRoot;
|
| | | uiRoot.EnableCanvas(false, uiRoot.baseCanvas,
|
| | | uiRoot.lifeBarCanvas,
|
| | | uiRoot.nameCanvas,
|
| | | uiRoot.normalCanvas,
|
| | | uiRoot.modalCanvas,
|
| | | uiRoot.tipsCanvas,
|
| | | uiRoot.systemCanvas,
|
| | | uiRoot.recycleBin,
|
| | | uiRoot.fightCanvasGroup.damageNumGroups[0].parent);
|
| | | CameraUtility.RemoveCullingMask(CameraManager.uiCamera, LayerUtility.UIEffectLayer);
|
| | | }
|
| | |
|
| | | void OpenUI()
|
| | | {
|
| | | UIRoot uiRoot = WindowCenter.Instance.uiRoot;
|
| | | uiRoot.EnableCanvas(true, uiRoot.baseCanvas,
|
| | | uiRoot.lifeBarCanvas,
|
| | | uiRoot.nameCanvas,
|
| | | uiRoot.normalCanvas,
|
| | | uiRoot.modalCanvas,
|
| | | uiRoot.tipsCanvas,
|
| | | uiRoot.systemCanvas,
|
| | | uiRoot.recycleBin,
|
| | | uiRoot.fightCanvasGroup.damageNumGroups[0].parent);
|
| | | CameraUtility.AddCullingMask(CameraManager.uiCamera, LayerUtility.UIEffectLayer);
|
| | | }
|
| | |
|
| | | void DisplayPlayer()
|
| | | {
|
| | | var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | |
|
| | | var wings = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWing);
|
| | | var wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
|
| | |
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | |
|
| | | var magicianModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | var godWeapon1 = magicianModel.GetGodWeaponInfo(1);
|
| | | var godWeapon2 = magicianModel.GetGodWeaponInfo(2);
|
| | | var godWeapon3 = magicianModel.GetGodWeaponInfo(3);
|
| | | var godWeapon4 = magicianModel.GetGodWeaponInfo(4);
|
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = PlayerDatas.Instance.baseData.Job,
|
| | | clothesId = clothesId,
|
| | | suitLevel = 0,
|
| | | weaponId = 0,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = null
|
| | | };
|
| | |
|
| | | if (m_Hero != null)
|
| | | {
|
| | | m_Hero.Dispose();
|
| | | }
|
| | | m_Hero = new FairyTransmitModel();
|
| | | m_Hero.Show(data, m_ShowPoint2);
|
| | | m_Hero.SitDown();
|
| | |
|
| | | var viewPlayerData = roleParticularModel.GetViewPlayerData((int)model.transmitPlayer);
|
| | | if (viewPlayerData != null)
|
| | | {
|
| | | clothesId = 0;
|
| | | var itemData = roleParticularModel.GetItemData(RoleEquipType.retClothes);
|
| | | if (itemData != null)
|
| | | {
|
| | | clothesId = itemData.ItemID;
|
| | | }
|
| | | wingsId = 0;
|
| | | itemData = roleParticularModel.GetItemData(RoleEquipType.retWing);
|
| | | if (itemData != null)
|
| | | {
|
| | | wingsId = itemData.ItemID;
|
| | | }
|
| | | secondaryId = 0;
|
| | | itemData = roleParticularModel.GetItemData(RoleEquipType.retWeapon2);
|
| | | if (itemData != null)
|
| | | {
|
| | | secondaryId = itemData.ItemID;
|
| | | }
|
| | |
|
| | | data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = viewPlayerData.rolePropData.Job,
|
| | | clothesId = clothesId,
|
| | | suitLevel = 0,
|
| | | weaponId = 0,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | godWeapons = null,
|
| | | isDialogue = false,
|
| | | };
|
| | |
|
| | | if (m_Player != null)
|
| | | {
|
| | | m_Player.Dispose();
|
| | | }
|
| | | m_Player = new FairyTransmitModel();
|
| | | m_Player.Show(data, m_ShowPoint1);
|
| | | m_Player.Transmit();
|
| | | }
|
| | | }
|
| | |
|
| | | public void Stop()
|
| | | {
|
| | | IsOpen = false;
|
| | | model.TransmitComplete();
|
| | | OpenUI();
|
| | | WindowCenter.Instance.CloseImmediately<FairyFeastTransmitShowWin>();
|
| | | CameraController.Instance.CameraObject.gameObject.SetActive(true);
|
| | | StageManager.Instance.onStartStageLoadingEvent -= OnStartStageLoadingEvent;
|
| | | transform.localPosition = new Vector3(0, 4000, 5000);
|
| | | if (m_ShowCamera != null)
|
| | | {
|
| | | m_ShowCamera.enabled = false;
|
| | | }
|
| | | if (m_Effect != null)
|
| | | {
|
| | | m_Effect.gameObject.SetActive(false);
|
| | | SFXPlayUtility.Instance.Release(m_Effect);
|
| | | m_Effect = null;
|
| | | }
|
| | | if (m_Hero != null)
|
| | | {
|
| | | m_Hero.Dispose();
|
| | | m_Hero = null;
|
| | | }
|
| | | if (m_Player != null)
|
| | | {
|
| | | m_Player.Dispose();
|
| | | m_Player = null;
|
| | | }
|
| | |
|
| | | if (onComplete != null)
|
| | | {
|
| | | onComplete();
|
| | | }
|
| | | }
|
| | |
|
| | | public class FairyTransmitModel
|
| | | {
|
| | | Transform showPoint;
|
| | | int job = 1;
|
| | |
|
| | | GameObject clothesModel;
|
| | | Animator clothesAnimator;
|
| | | GameObject secondaryModel;
|
| | | GameObject wingsModel;
|
| | | Animator wingsAnimator;
|
| | |
|
| | | public Transform MP_Name { get; private set; }
|
| | |
|
| | | public void Show(UI3DPlayerExhibitionData data, Transform showPoint)
|
| | | {
|
| | | this.showPoint = showPoint;
|
| | | this.job = data.job;
|
| | |
|
| | | var clothes = data.clothesId;
|
| | | var wingsId = data.wingsId;
|
| | | var secondaryId = data.secondaryId;
|
| | | var godWeapons = data.godWeapons;
|
| | |
|
| | | var jobConfig = Config.Instance.Get<JobSetupConfig>(job);
|
| | |
|
| | | var clothesResId = 0;
|
| | | if (clothes == 0)
|
| | | {
|
| | | clothesResId = jobConfig.BaseEquip[0];
|
| | | }
|
| | | else
|
| | | {
|
| | | var item = Config.Instance.Get<ItemConfig>(clothes);
|
| | | clothesResId = item == null ? clothesResId = jobConfig.BaseEquip[0] : item.ChangeOrd;
|
| | | }
|
| | |
|
| | | PutOnClothes(clothesResId);
|
| | |
|
| | | var secondaryResId = 0;
|
| | | if (secondaryId == 0)
|
| | | {
|
| | | if (this.job == 1)
|
| | | {
|
| | | secondaryResId = clothes + 2900;
|
| | | }
|
| | | else
|
| | | {
|
| | | secondaryResId = jobConfig.BaseEquip[2];
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | var item = Config.Instance.Get<ItemConfig>(secondaryId);
|
| | | secondaryResId = item == null ? jobConfig.BaseEquip[2] : item.ChangeOrd;
|
| | | }
|
| | | PutOnSecondary(secondaryResId);
|
| | |
|
| | | var wingsResId = 0;
|
| | | if (wingsId != 0)
|
| | | {
|
| | | var item = Config.Instance.Get<ItemConfig>(wingsId);
|
| | | wingsResId = item == null ? 0 : item.ChangeOrd;
|
| | | }
|
| | | PutOnWing(wingsResId);
|
| | |
|
| | | SwitchMaterial(clothesResId, false);
|
| | | }
|
| | |
|
| | | public void PutOnClothes(int clothesResId)
|
| | | {
|
| | | var config = Config.Instance.Get<JobSetupConfig>(job);
|
| | | var _prefab = InstanceResourcesLoader.LoadModelRes(clothesResId, true);
|
| | | if (!_prefab)
|
| | | {
|
| | | clothesResId = config.BaseEquip[0];
|
| | | }
|
| | |
|
| | | LoadClothes(clothesResId);
|
| | | }
|
| | |
|
| | | private void LoadClothes(int clothesResId)
|
| | | {
|
| | | var prefab = InstanceResourcesLoader.LoadModelRes(clothesResId, true);
|
| | | if (prefab)
|
| | | {
|
| | | clothesModel = GameObject.Instantiate(prefab);
|
| | |
|
| | | LayerUtility.SetLayer(clothesModel, LayerUtility.BossShow, false);
|
| | | var skinnedMeshRenderer = clothesModel.GetComponentInChildren<SkinnedMeshRenderer>(true);
|
| | | LayerUtility.SetLayer(skinnedMeshRenderer.gameObject, LayerUtility.BossShow, false);
|
| | | clothesModel.SetActive(true);
|
| | | clothesModel.transform.SetParentEx(showPoint, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | clothesAnimator = clothesModel.GetComponent<Animator>();
|
| | |
|
| | | MP_Name = clothesModel.transform.GetChildTransformDeeply("A_Name");
|
| | | if (!MP_Name)
|
| | | {
|
| | | MP_Name = clothesModel.transform;
|
| | | }
|
| | |
|
| | | if (clothesAnimator)
|
| | | {
|
| | | RuntimeAnimatorController _controller = AnimatorControllerLoader.Load(AnimatorControllerLoader.controllerUISuffix, clothesResId);
|
| | | clothesAnimator.runtimeAnimatorController = _controller;
|
| | | clothesAnimator.enabled = true;
|
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogErrorFormat("角色资源: {0} 没有动画控制器", clothesResId);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void SwitchMaterial(int clothesId, bool isSuit)
|
| | | {
|
| | | if (clothesModel == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | var smRenderer = clothesModel.GetComponentInChildren<SkinnedMeshRenderer>();
|
| | | if (smRenderer == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | MaterialLoader.Release(smRenderer.material);
|
| | |
|
| | | var newMat = MaterialLoader.LoadClothesMaterial(clothesId, true, isSuit);
|
| | | if (newMat != null)
|
| | | {
|
| | | smRenderer.material = newMat;
|
| | | }
|
| | | }
|
| | |
|
| | | private void PutOnSecondary(int secondaryResId)
|
| | | {
|
| | | if (secondaryResId != 0)
|
| | | {
|
| | | var prefab = InstanceResourcesLoader.LoadModelRes(secondaryResId);
|
| | | if (!prefab)
|
| | | {
|
| | | var config = Config.Instance.Get<JobSetupConfig>(job);
|
| | | secondaryResId = config.BaseEquip[2];
|
| | | prefab = InstanceResourcesLoader.LoadModelRes(secondaryResId);
|
| | | }
|
| | |
|
| | | if (prefab)
|
| | | {
|
| | | secondaryModel = GameObject.Instantiate(prefab);
|
| | | secondaryModel.layer = LayerUtility.BossShow;
|
| | | var parent = clothesModel.transform.GetChildTransformDeeply(GAStaticDefine.SecondaryBindBoneName[job - 1]);
|
| | | secondaryModel.transform.SetParentEx(parent, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void PutOnWing(int resourceId)
|
| | | {
|
| | | var config = Config.Instance.Get<JobSetupConfig>(job);
|
| | |
|
| | | if (resourceId != 0)
|
| | | {
|
| | | var prefab = InstanceResourcesLoader.LoadModelRes(resourceId);
|
| | |
|
| | | if (!prefab)
|
| | | {
|
| | | resourceId = config.BaseEquip[3];
|
| | | prefab = InstanceResourcesLoader.LoadModelRes(resourceId);
|
| | | }
|
| | |
|
| | | if (prefab)
|
| | | {
|
| | | wingsModel = GameObject.Instantiate(prefab);
|
| | |
|
| | | wingsModel.layer = LayerUtility.BossShow;
|
| | | SkinnedMeshRenderer _renderer = wingsModel.GetComponentInChildren<SkinnedMeshRenderer>();
|
| | | if (_renderer)
|
| | | {
|
| | | _renderer.gameObject.layer = LayerUtility.BossShow;
|
| | | }
|
| | |
|
| | | var parent = clothesModel.transform.GetChildTransformDeeply(GAStaticDefine.WingBindBoneName);
|
| | | var modelResConfig = Config.Instance.Get<ModelResConfig>(resourceId);
|
| | | wingsModel.transform.SetParentEx(parent, Vector3.zero, Quaternion.identity, modelResConfig.UIScale);
|
| | |
|
| | | wingsAnimator = wingsModel.GetComponent<Animator>();
|
| | | wingsAnimator.enabled = true;
|
| | | wingsAnimator.Play("UI_Idle", 0);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void Transmit()
|
| | | {
|
| | | if (clothesAnimator)
|
| | | {
|
| | | clothesAnimator.Play(GAStaticDefine.State_Transmit);
|
| | | }
|
| | | }
|
| | |
|
| | | public void SitDown()
|
| | | {
|
| | | if (clothesAnimator)
|
| | | {
|
| | | clothesAnimator.Play(GAStaticDefine.State_SitDown);
|
| | | }
|
| | | }
|
| | |
|
| | | public void Dispose()
|
| | | {
|
| | | if (clothesModel != null)
|
| | | {
|
| | | var smRenderer = clothesModel.GetComponentInChildren<SkinnedMeshRenderer>();
|
| | | if (smRenderer != null)
|
| | | {
|
| | | MaterialLoader.Release(smRenderer.material);
|
| | | smRenderer.material = smRenderer.sharedMaterial = null;
|
| | | smRenderer.materials = smRenderer.sharedMaterials = new Material[0];
|
| | | }
|
| | | Destroy(clothesModel);
|
| | | }
|
| | | if (secondaryModel != null)
|
| | | {
|
| | | Destroy(secondaryModel);
|
| | | }
|
| | | if (wingsModel != null)
|
| | | {
|
| | | Destroy(wingsModel);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | } |
| | | |
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to System/FairyAu/FairyFeastTransmitShow.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: 8e985917b3bb0054c8cb4004183fdf30 |
| | | timeCreated: 1544184132 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Friday, December 07, 2018
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System;
|
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class FairyFeastTransmitShowWin : Window
|
| | | {
|
| | | GameObjectPoolManager.GameObjectPool m_PopUpNumPool;
|
| | |
|
| | | List<ulong> m_PopExpQueue = new List<ulong>();
|
| | | List<FairyTransmitPopUpExp> m_PopUpBehaviours = new List<FairyTransmitPopUpExp>();
|
| | |
|
| | | float lastPopUpTime = 0f;
|
| | |
|
| | | [SerializeField] Transform m_PopUpExpPoint;
|
| | | [SerializeField] SmoothSlider m_Slider;
|
| | | [SerializeField] Text m_Progress;
|
| | | [SerializeField] float m_PopUpInterval = 0.1f;
|
| | | [SerializeField] HeadUpName m_HeadUpHero;
|
| | | [SerializeField] HeadUpName m_HeadUpPlayer;
|
| | |
|
| | | FairyFeastModel model
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<FairyFeastModel>(); }
|
| | | }
|
| | |
|
| | | RoleParticularModel roleParticularModel
|
| | | {
|
| | | get { return ModelCenter.Instance.GetModel<RoleParticularModel>(); }
|
| | | }
|
| | |
|
| | | int progressDisplay = 0;
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | FairyFeastTransmitShow.Instance.popUpExpEvent += PopUpExpEvent;
|
| | | m_Slider.ResetValue(0f);
|
| | | DisplayHeadUpName();
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | m_HeadUpHero.SyncPosition(true);
|
| | | m_HeadUpPlayer.SyncPosition(true);
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | FairyFeastTransmitShow.Instance.popUpExpEvent -= PopUpExpEvent;
|
| | | for (int i = 0; i < m_PopUpBehaviours.Count; i++)
|
| | | {
|
| | | ReleaseTransmitPopExp(m_PopUpBehaviours[i].gameObject);
|
| | | }
|
| | | m_PopUpBehaviours.Clear();
|
| | | m_PopExpQueue.Clear();
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void LateUpdate()
|
| | | {
|
| | | var progress = Mathf.Clamp01(FairyFeastTransmitShow.Instance.progress);
|
| | | m_Slider.value = progress;
|
| | | if ((int)(progress * 100) != progressDisplay)
|
| | | {
|
| | | progressDisplay = (int)(progress * 100);
|
| | | m_Progress.text = StringUtility.Contact(Language.Get("FeastTransmiting"),
|
| | | progressDisplay, "%");
|
| | | }
|
| | |
|
| | | if (m_PopExpQueue.Count > 0)
|
| | | {
|
| | | if (Time.time - lastPopUpTime >= m_PopUpInterval)
|
| | | {
|
| | | lastPopUpTime = Time.time;
|
| | | var exp = m_PopExpQueue[0];
|
| | | m_PopExpQueue.RemoveAt(0);
|
| | | PopUpExp(exp);
|
| | | }
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void DisplayHeadUpName()
|
| | | {
|
| | | m_HeadUpHero.pattern = HeadUpName.Pattern.Hero;
|
| | | m_HeadUpHero.camera = FairyFeastTransmitShow.Instance.showCamera;
|
| | | var hero = FairyFeastTransmitShow.Instance.hero;
|
| | | if (hero != null)
|
| | | {
|
| | | m_HeadUpHero.target = hero.MP_Name;
|
| | | }
|
| | | m_HeadUpHero.offset = new Vector3(0, 0, 0);
|
| | | var realmLevel = PlayerDatas.Instance.baseData.realmLevel;
|
| | | var name = UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName);
|
| | | var familyName = UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.FamilyName);
|
| | | m_HeadUpHero.SetPlayerInfo(realmLevel, 0, name, familyName, false);
|
| | | m_HeadUpHero.SyncPosition(true);
|
| | |
|
| | | m_HeadUpPlayer.pattern = HeadUpName.Pattern.Player;
|
| | | m_HeadUpPlayer.camera = FairyFeastTransmitShow.Instance.showCamera;
|
| | | var player = FairyFeastTransmitShow.Instance.player;
|
| | | if (player != null)
|
| | | {
|
| | | m_HeadUpPlayer.target = player.MP_Name;
|
| | | }
|
| | | m_HeadUpPlayer.offset = new Vector3(0, 0, 0);
|
| | | var viewPlayerData = roleParticularModel.GetViewPlayerData((int)model.transmitPlayer);
|
| | | if (viewPlayerData != null)
|
| | | {
|
| | | realmLevel = (byte)viewPlayerData.rolePropData.RealmLV;
|
| | | name = UIHelper.ServerStringTrim(viewPlayerData.rolePropData.Name);
|
| | | familyName = UIHelper.ServerStringTrim(viewPlayerData.rolePropData.FamilyName);
|
| | | m_HeadUpPlayer.SetPlayerInfo(realmLevel, 0, name, familyName, false);
|
| | | }
|
| | | }
|
| | |
|
| | | private void PopUpExpEvent(ulong exp)
|
| | | {
|
| | | m_PopExpQueue.Add(exp);
|
| | | }
|
| | |
|
| | | private void PopUpExp(ulong exp)
|
| | | {
|
| | | var go = RequireTransmitPopExp();
|
| | | if (go)
|
| | | {
|
| | | var popUpExp = go.GetComponent<FairyTransmitPopUpExp>();
|
| | | popUpExp.transform.SetParent(m_PopUpExpPoint);
|
| | | popUpExp.transform.localPosition = Vector3.zero;
|
| | | popUpExp.transform.localEulerAngles = Vector3.zero;
|
| | | popUpExp.transform.localScale = Vector3.one;
|
| | | popUpExp.gameObject.SetActive(true);
|
| | | popUpExp.DisplayExp(exp);
|
| | | popUpExp.onDie -= OnTransmitPopUpExpDie;
|
| | | popUpExp.onDie += OnTransmitPopUpExpDie;
|
| | | m_PopUpBehaviours.Add(popUpExp);
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnTransmitPopUpExpDie(FairyTransmitPopUpExp popUpExp)
|
| | | {
|
| | | if (m_PopUpBehaviours.Contains(popUpExp))
|
| | | {
|
| | | m_PopUpBehaviours.Remove(popUpExp);
|
| | | }
|
| | | ReleaseTransmitPopExp(popUpExp.gameObject);
|
| | | }
|
| | |
|
| | | GameObject RequireTransmitPopExp()
|
| | | {
|
| | | if (m_PopUpNumPool == null)
|
| | | {
|
| | | var prefab = UILoader.LoadPrefab("PopUpNum_FairyFeast");
|
| | | if (prefab)
|
| | | {
|
| | | m_PopUpNumPool = GameObjectPoolManager.Instance.RequestPool(prefab);
|
| | | }
|
| | | }
|
| | | if (m_PopUpNumPool != null)
|
| | | {
|
| | | return m_PopUpNumPool.Request();
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
|
| | | void ReleaseTransmitPopExp(GameObject prefab)
|
| | | {
|
| | | prefab.gameObject.SetActive(false);
|
| | | if (m_PopUpNumPool != null)
|
| | | {
|
| | | m_PopUpNumPool.Release(prefab);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to System/FairyAu/FairyFeastTransmitShowWin.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: c9982d7e25fb18b4a804aa91da86ba5a |
| | | timeCreated: 1544188071 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using System;
|
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FairyTransmitPopUpExp : MonoBehaviour
|
| | | {
|
| | | [SerializeField] Animation m_Animation;
|
| | | [SerializeField] Text m_Exp;
|
| | |
|
| | | float overLifeTime = 0f;
|
| | | bool alive = false;
|
| | |
|
| | | public event Action<FairyTransmitPopUpExp> onDie;
|
| | |
|
| | | public void DisplayExp(ulong exp)
|
| | | {
|
| | | alive = true;
|
| | | m_Exp.transform.localScale = Vector3.zero;
|
| | | m_Exp.text = StringUtility.Contact("EXP+", exp);
|
| | | m_Animation.Play();
|
| | | overLifeTime = Time.time + 2.0f;
|
| | | }
|
| | |
|
| | | private void LateUpdate()
|
| | | {
|
| | | if (!alive)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (Time.time >= overLifeTime)
|
| | | {
|
| | | alive = false;
|
| | | if (onDie != null)
|
| | | {
|
| | | onDie(this);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | } |
| | | |
copy from System/FairyAu/FairyFeastBehaviour.cs.meta
copy to System/FairyAu/FairyTransmitPopUpExp.cs.meta
| File was copied from System/FairyAu/FairyFeastBehaviour.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e45b19a89d401543bc629f6e4b85599 |
| | | timeCreated: 1529473535 |
| | | guid: 784c482b71a4d0b4db66b4c257120440 |
| | | timeCreated: 1544188861 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | [SerializeField] RedpointBehaviour m_RealmRed;
|
| | | [SerializeField] UIEffect m_RealmSfx;
|
| | |
|
| | | [SerializeField] FairyFeastBehaviour m_FairyFeast;
|
| | | List<int> OneKeyList = new List<int>();
|
| | | TeamModel m_Model;
|
| | | TeamModel model { get { return m_Model ?? (m_Model = ModelCenter.Instance.GetModel<TeamModel>()); } }
|
| | |
| | | _TeamChatBtn.voiceRecordSuccessEvent += OnVoiceRecordTeamSuccessEvent;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += Updatefighting;//数据的刷新(h0418)
|
| | | RedpointCenter.Instance.redpointValueChangeEvent += RedpointValueChangeEvent;
|
| | | m_FairyFeast.Init();
|
| | | _MailBtn.onClick.AddListener(MailButton);
|
| | | _OneKeyBtn.onClick.AddListener(OneKeyButton);
|
| | | _AutoBtn.onClick.AddListener(AutoButton);
|
| | |
| | | MailAllModel.Instance.DeleteMailEvent -= MailCountChange;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= Updatefighting;//数据的刷新(h0418)
|
| | | RedpointCenter.Instance.redpointValueChangeEvent -= RedpointValueChangeEvent;
|
| | | m_FairyFeast.UnInit();
|
| | | m_RealmBtn.RemoveAllListeners();
|
| | | _MailBtn.onClick.RemoveAllListeners();
|
| | | _OneKeyBtn.onClick.RemoveAllListeners();
|
| | |
| | |
|
| | | void HeadButton()
|
| | | {
|
| | | // DesignDebug.Log("头像点击框");
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<RolePanel>();
|
| | | ModelCenter.Instance.GetModel<RoleModel>().OpenRolePanel();
|
| | | }
|
| | |
|
| | | void OnPromoteBtn()
|
| | |
| | |
|
| | | void Role1Button()
|
| | | {
|
| | | |
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<RolePanel>();
|
| | | /* DesignDebug.Log("角色按钮")*/;
|
| | |
|
| | | ModelCenter.Instance.GetModel<RoleModel>().OpenRolePanel();
|
| | |
|
| | | }
|
| | | void OnClickBagualuBtn()
|
| | | {
|
| | |
| | |
|
| | | public void ShowFixedTip(string tip, ArrayList infoList = null)
|
| | | {
|
| | | transform.SetAsLastSibling();
|
| | | m_FixedTip0.SetExtenalData(infoList);
|
| | | m_FixedTip0.text = tip;
|
| | | if (!m_ContianerFixedTip0.gameObject.activeInHierarchy)
|
| | |
| | |
|
| | | public void ShowFixedTips(string tip, ArrayList infoList = null)
|
| | | {
|
| | | transform.SetAsLastSibling();
|
| | | var _index = m_FixedTipDisplays.FindIndex((x) =>
|
| | | {
|
| | | return !x;
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | transform.SetAsLastSibling();
|
| | | var _hint = ServerTipDetails.RequireServerTip();
|
| | | if (_hint != null)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void OpenRolePanel()
|
| | | {
|
| | | var functionOrder = 0;
|
| | | var godWeaponModel = ModelCenter.Instance.GetModel<MagicianModel>();
|
| | | var gatherSoulModel = ModelCenter.Instance.GetModel<GatheringSoulModel>();
|
| | | if (MainRedDot.Instance.roleRedpoint.state != RedPointState.None)
|
| | | {
|
| | | functionOrder = 0;
|
| | | }
|
| | | else if (godWeaponModel.magicianRedpoint.state != RedPointState.None)
|
| | | {
|
| | | functionOrder = 3;
|
| | | }
|
| | | else if (gatherSoulModel.redpoint.state != RedPointState.None)
|
| | | {
|
| | | functionOrder = 4;
|
| | | }
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<RolePanel>(false, functionOrder);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | public int viewPlayer { get; private set; }
|
| | |
|
| | | public int viewPlayerType { get; private set; } //0-查看装备 1-查看战力
|
| | | public int viewPlayerType { get; private set; } //0-查看装备 1-查看战力 2-王者仙盟 3-仙盟宴会传功
|
| | |
|
| | | private Dictionary<int, ViewPlayerData> viewPlayerDataDic = new Dictionary<int, ViewPlayerData>();
|
| | | private Dictionary<int, ulong> funcFightPowerDict = new Dictionary<int, ulong>();
|
| | |
| | | public void ViewKingFairyLeader(int _playerId)
|
| | | {
|
| | | viewPlayerType = 2;
|
| | | ViewRoleParticulars(_playerId);
|
| | | }
|
| | |
|
| | | public void ViewFairyFeastTransmit(int _playerId)
|
| | | {
|
| | | viewPlayerType = 3;
|
| | | ViewRoleParticulars(_playerId);
|
| | | }
|
| | |
|
| | |
| | | #endregion
|
| | |
|
| | | public event Action<ViewPlayerData> UpdatePlayerParticularEvent;
|
| | | public event Action<int, ViewPlayerData> viewPlayerUpdate;
|
| | | private void ShowRoleParticulars(ViewPlayerData _viewPlayerData)
|
| | | {
|
| | | switch (viewPlayerType)
|
| | |
| | | UpdatePlayerParticularEvent(_viewPlayerData);
|
| | | }
|
| | | break;
|
| | | case 3:
|
| | | if (viewPlayerUpdate != null)
|
| | | {
|
| | | viewPlayerUpdate(3, _viewPlayerData);
|
| | | }
|
| | | break;
|
| | | }
|
| | | viewPlayerType = -1;
|
| | | }
|