Merge branch 'master' into CrossServerBoss
# Conflicts:
# Core/NetworkPackage/DTCFile/ServerPack/H06_PlayerVsNPC/DTC0614_tagUseSkillPos.cs
| | |
| | | public int BasicsDefense;//基础防御
|
| | | public int BasicsScoreAHit;//基础命中
|
| | | public int BasicsDodge;//基础闪避
|
| | | public long treasurePotentialSp {
|
| | | get {
|
| | | public long treasurePotentialSp
|
| | | {
|
| | | get
|
| | | {
|
| | | return ExAttr8 * (long)100000000 + ExAttr7;
|
| | | }
|
| | | }
|
| | |
| | | ExpPoint = _serverInfo.ExpPoint;
|
| | | TotalExp = _serverInfo.TotalExp;
|
| | | Family = _serverInfo.Family;
|
| | | if (PlayerDatas.Instance. hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.familyID = Family;
|
| | | }
|
| | | FamilyName = _serverInfo.FamilyName.Trim().Replace(" ", "");
|
| | | Gold = _serverInfo.Gold;
|
| | | GoldPaper = _serverInfo.GoldPaper;
|
| | |
| | | PosX = _serverInfo.PosX;
|
| | | PosY = _serverInfo.PosY;
|
| | | State = _serverInfo.State;
|
| | | HP = _serverInfo.HP;
|
| | | XP = _serverInfo.XP;
|
| | | FreePoint = _serverInfo.FreePoint;
|
| | | FreeSkillPoint = _serverInfo.FreeSkillPoint;
|
| | |
| | | godWeaponLV_3 = (int)_serverInfo.ExAttr17;
|
| | | godWeaponLV_4 = (int)_serverInfo.ExAttr18;
|
| | |
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | if (_serverInfo.socketType == GameNetSystem.SocketType.CrossSever)
|
| | | {
|
| | | HP = _serverInfo.HP;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | HP = _serverInfo.HP;
|
| | | }
|
| | |
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.familyID = Family;
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | if (_serverInfo.socketType == GameNetSystem.SocketType.CrossSever)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.ResetHp((int)_serverInfo.HP);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.ResetHp((int)_serverInfo.HP);
|
| | | }
|
| | | }
|
| | |
|
| | | if (_serverInfo.socketType == GameNetSystem.SocketType.Main)
|
| | | {
|
| | | mainServerDataBuf.PlayerName = PlayerName;
|
| | |
| | |
|
| | | public class PlayerExtersionData
|
| | | {
|
| | |
|
| | | public int MaxHP; // 最大HP 28,
|
| | | private int aaa;
|
| | | public int MaxHP
|
| | | {
|
| | | get { return aaa; }
|
| | | set
|
| | | {
|
| | | aaa = value;
|
| | | #if UNITY_EDITOR
|
| | | Debug.Log("Maxhp: " + aaa);
|
| | | #endif
|
| | | }
|
| | | } // 最大HP 28,
|
| | | public int MaxMP; // 最大MP 30,
|
| | | public int ExpRate; // 当前经验倍率 单位为百分比 35,
|
| | | public int DEF; // 外防 42
|
| | |
| | | break;
|
| | | case PlayerDataRefresh.HP:
|
| | | baseData.HP = value;
|
| | | if (hero != null)
|
| | | {
|
| | | hero.ActorInfo.SyncServerHp = value;
|
| | | hero.ActorInfo.ResetHp((int)value);
|
| | | }
|
| | | baseData.RecordMainServerData(isMainServerData, _type, value);
|
| | | break;
|
| | | case PlayerDataRefresh.MaxMP:
|
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A8 06 查询充值结果 #tagCMQueryRecharge |
| | | |
| | | public class CA806_tagCMQueryRecharge : GameNetPackBasic { |
| | | |
| | | public CA806_tagCMQueryRecharge () { |
| | | combineCmd = (ushort)0x03FE; |
| | | _cmd = (ushort)0xA806; |
| | | } |
| | | |
| | | public override void WriteToBytes () { |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4df34e8c1837d9446b8c6bd9cf117179 |
| | | timeCreated: 1546668972 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | base.Done(vNetPack);
|
| | |
|
| | | H0102_tagCDBPlayer vNetData = vNetPack as H0102_tagCDBPlayer;
|
| | | StageLoadTimeOutCatcher.got0102Time = DateTime.Now;
|
| | | StageLoadTimeOutCatcher.ReportChangeMapRecord(vNetPack.socketType, "0102", DateTime.Now);
|
| | |
|
| | | DEBUG_0102 = true;
|
| | | DTC0403_tagPlayerLoginLoadOK.finishedLogin = false;
|
| | |
| | | }
|
| | |
|
| | | StageLoadTimeOutCatcher.got0109Time = DateTime.Now;
|
| | | StageLoadTimeOutCatcher.ReportChangeMapRecord(vNetData.socketType, "0109", DateTime.Now);
|
| | |
|
| | | //修改技能快捷设置发包顺序
|
| | | PlayerDatas.Instance.skill.CheckQuickSet();
|
| | |
| | | mapOk.Type = 0;
|
| | | GameNetSystem.Instance.SendInfo(mapOk);
|
| | | DTCA127_tagMCStartChangeMap.isChangeLine = false;
|
| | |
|
| | | StageLoadTimeOutCatcher.send0107Time = DateTime.Now;
|
| | | StageLoadTimeOutCatcher.ReportChangeMapRecord(GameNetSystem.SocketType.Main, "0107", DateTime.Now);
|
| | | }
|
| | | break;
|
| | | case GameNetSystem.SocketType.CrossSever:
|
| | |
| | | mapOk.MapID = PlayerDatas.Instance.baseData.MapID;
|
| | | mapOk.Type = 0;
|
| | | GameNetSystem.Instance.SendToCrossServer(mapOk);
|
| | |
|
| | | StageLoadTimeOutCatcher.send0107Time = DateTime.Now;
|
| | | StageLoadTimeOutCatcher.ReportChangeMapRecord(GameNetSystem.SocketType.CrossSever, "0107", DateTime.Now);
|
| | | }
|
| | | break;
|
| | | default:
|
| | | break;
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | switch (vNetPack.socketType)
|
| | | {
|
| | | case GameNetSystem.SocketType.Main:
|
| | |
| | |
|
| | | if (StageManager.Instance.isLoading)
|
| | | {
|
| | | GAMgr.Instance.reAdjustPosList.Add(_actor);
|
| | | if (!GAMgr.Instance.reAdjustPosList.Contains(_actor))
|
| | | {
|
| | | GAMgr.Instance.reAdjustPosList.Add(_actor);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | { |
| | | if (_actor != null) |
| | | { |
| | | GAMgr.Instance.reAdjustPosList.Add(_actor); |
| | | if (!GAMgr.Instance.reAdjustPosList.Contains(_actor)) |
| | | { |
| | | GAMgr.Instance.reAdjustPosList.Add(_actor); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | OpponentInformation.Instance.GetOpponentInformation0418(vNetData);//用于获取玩家护盾属性 |
| | | if (PlayerDatas.Instance.PlayerId == vNetData.ObjID) |
| | | { |
| | | if ((PlayerDataRefresh)vNetData.RefreshType == PlayerDataRefresh.HP) |
| | | { |
| | | bool _sync = false; |
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne()) |
| | | { |
| | | if (vNetData.socketType == GameNetSystem.SocketType.CrossSever) |
| | | { |
| | | _sync = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | _sync = true; |
| | | } |
| | | |
| | | if (_sync) |
| | | { |
| | | if (PlayerDatas.Instance.hero != null) |
| | | { |
| | | PlayerDatas.Instance.hero.ActorInfo.SyncServerHp = vNetData.Value; |
| | | PlayerDatas.Instance.hero.ActorInfo.ResetHp((int)vNetData.Value); |
| | | } |
| | | } |
| | | } |
| | | PlayerDatas.Instance.RefreshPlayerData(vNetData); |
| | | } |
| | | else |
| | |
| | | _player.SelectTarget = null;
|
| | | _player.InitBornPos(vNetData.PosX, vNetData.PosY);
|
| | | _player.ActorInfo.serverDie = false;
|
| | | _player.ActorInfo.ResetHp((int)_player.ActorInfo.MaxHp, (short)_player.ActorInfo.MaxHpEx);
|
| | | _player.ActorInfo.ResetHp(PlayerDatas.Instance.extersion.MaxHP, (short)_player.ActorInfo.MaxHpEx);
|
| | | _player.SelectTarget = null;
|
| | | _player.StopPathFind();
|
| | | _player.IdleImmediate();
|
| | |
| | | |
| | | if (vNetData.ObjID == PlayerDatas.Instance.PlayerId) |
| | | { |
| | | if (PlayerDatas.Instance.hero != null) |
| | | { |
| | | PlayerDatas.Instance.hero.ActorInfo.SyncServerHp = vNetData.HP; |
| | | PlayerDatas.Instance.hero.ActorInfo.ResetHp((int)vNetData.HP); |
| | | } |
| | | PlayerDatas.Instance.FightRefreshPlayerHp(vNetData.HP); |
| | | } |
| | | |
| | |
| | |
|
| | | _player = GAMgr.Instance.RequestPlayer<GA_Player>(vNetData.PlayerID, E_ActorGroup.Player, vNetData);
|
| | |
|
| | | if (StageManager.Instance.isLoading)
|
| | | {
|
| | | if (!GAMgr.Instance.reAdjustPosList.Contains(_player))
|
| | | {
|
| | | GAMgr.Instance.reAdjustPosList.Add(_player);
|
| | | }
|
| | | }
|
| | |
|
| | | if (vNetData.IsAlive == 1)
|
| | | {
|
| | | if (vNetData.PlayerState == 1)
|
| | |
| | | |
| | | if (StageManager.Instance.isLoading) |
| | | { |
| | | GAMgr.Instance.reAdjustPosList.Add(_pet); |
| | | if (!GAMgr.Instance.reAdjustPosList.Contains(_pet)) |
| | | { |
| | | GAMgr.Instance.reAdjustPosList.Add(_pet); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | PlayerDatas.Instance.hero.Behaviour.StopHandupAI();
|
| | | PlayerDatas.Instance.hero.Behaviour.StopKillUntilDieAI();
|
| | | }
|
| | | |
| | | if (_hero != null)
|
| | | {
|
| | | _hero.ActorInfo.SyncServerHp = 0;
|
| | | _hero.ActorInfo.ResetHp(0);
|
| | | }
|
| | |
|
| | | PlayerDatas.Instance.FightRefreshPlayerHp(0);
|
| | | }
|
| | |
| | | {
|
| | | if (_sTarget.ObjID == PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.SyncServerHp = _sTarget.CurHP;
|
| | | PlayerDatas.Instance.hero.ActorInfo.ResetHp((int)_sTarget.CurHP);
|
| | | }
|
| | | PlayerDatas.Instance.FightRefreshPlayerHp(_sTarget.CurHP);
|
| | | }
|
| | | else
|
| | |
| | | {
|
| | | if (_sTarget.ObjID == PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.SyncServerHp = _sTarget.CurHP;
|
| | | PlayerDatas.Instance.hero.ActorInfo.ResetHp((int)_sTarget.CurHP);
|
| | | }
|
| | | PlayerDatas.Instance.FightRefreshPlayerHp(_sTarget.CurHP);
|
| | | }
|
| | | else
|
| | |
| | | using Snxxz.UI; |
| | | using TableConfig; |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | public class DTCA126_tagMCPrepareChangeMap : DtcBasic |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | StageLoadTimeOutCatcher.gotA126Time = DateTime.Now; |
| | | StageLoadTimeOutCatcher.ReportChangeMapRecord(package.socketType, "A126", DateTime.Now); |
| | | |
| | | #if UNITY_EDITOR |
| | | string _content = string.Format("DTCA126_tagMCPrepareChangeMap => 准备切换地图"); |
| | | Debug.Log(_content); |
| | |
| | | using TableConfig; |
| | | using UnityEngine; |
| | | using System.Collections.Generic; |
| | | using System; |
| | | |
| | | public class DTCA127_tagMCStartChangeMap : DtcBasic |
| | | { |
| | |
| | | DEBUG_A127 = true; |
| | | |
| | | var package = vNetPack as HA127_tagMCStartChangeMap; |
| | | StageLoadTimeOutCatcher.gotA127Time = DateTime.Now; |
| | | StageLoadTimeOutCatcher.ReportChangeMapRecord(package.socketType, "A127", DateTime.Now); |
| | | |
| | | DEBUG_STEP = 0; |
| | | |
| | |
| | | |
| | | if (objId == PlayerDatas.Instance.PlayerId) |
| | | { |
| | | PlayerDatas.Instance.RefreshPlayerData(vNetDatas); |
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne()) |
| | | { |
| | | if (vNetDatas.socketType == GameNetSystem.SocketType.CrossSever) |
| | | { |
| | | PlayerDatas.Instance.RefreshPlayerData(vNetDatas); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | PlayerDatas.Instance.RefreshPlayerData(vNetDatas); |
| | | } |
| | | } |
| | | else |
| | | { |
| | |
| | | _scale = _obstacle.transform.localScale.z * 0.25f;
|
| | | }
|
| | |
|
| | | int _effectID = 1040;
|
| | |
|
| | | if(CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | _effectID = 5206;
|
| | | }
|
| | |
|
| | | if (package.BarrierList[i].Angle == 0)
|
| | | {
|
| | | // 创建特效
|
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(1040, _pos, _isHorizontal ? new Vector3(0, 0, 0) : new Vector3(0, 90, 0));
|
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(_effectID, _pos, _isHorizontal ? new Vector3(0, 0, 0) : new Vector3(0, 90, 0));
|
| | | _sfx.duration = 0;
|
| | | _sfx.transform.localScale = new Vector3(_scale, 1, 1);
|
| | | sfxDict.Add(id, _sfx);
|
| | | }
|
| | | else
|
| | | {
|
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(1040, _pos, new Vector3(0, package.BarrierList[i].Angle, 0));
|
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(_effectID, _pos, new Vector3(0, package.BarrierList[i].Angle, 0));
|
| | | _sfx.duration = 0;
|
| | | _sfx.transform.localScale = new Vector3(_scale, 1, 1);
|
| | | sfxDict.Add(id, _sfx);
|
| | |
| | | if (_sTarget.ObjID == PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | | PlayerDatas.Instance.FightRefreshPlayerHp(_sTarget.CurHP);
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.SyncServerHp = _sTarget.CurHP;
|
| | | PlayerDatas.Instance.hero.ActorInfo.ResetHp((int)_sTarget.CurHP);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | public E_ChannelPlatform ChannelPlatform { get; set; }
|
| | |
|
| | | public static string Yj_AppID {
|
| | | public static string Yj_AppID
|
| | | {
|
| | | get; private set;
|
| | | }
|
| | |
|
| | | public static string Yj_SpID {
|
| | | public static string Yj_SpID
|
| | | {
|
| | | get; private set;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | onFreePlatformPayOk();
|
| | | }
|
| | | SnxxzGame.Instance.StartCoroutine(DelayQueryRecharge());
|
| | | break;
|
| | | case CodeA2U.FreePlatformPayFail:
|
| | | if (onFreePlatformPayFail != null)
|
| | |
| | | private Dictionary<string, string> m_PaymentTable = new Dictionary<string, string>();
|
| | | private string m_EncodeKey = "03sujm7gerywdvyd5vkkk772rs4by230";
|
| | |
|
| | | private IEnumerator DelayQueryRecharge()
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS60000;
|
| | | var _package = new CA806_tagCMQueryRecharge();
|
| | | GameNetSystem.Instance.SendInfo(_package);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 自由SDK支付 fixed sdk 支付逻辑修改
|
| | | /// </summary>
|
| | |
| | | if (!DTC0403_tagPlayerLoginLoadOK.finishedLogin)
|
| | | {
|
| | | Debug.LogWarning("登陆流程尚未完成");
|
| | | stopReason = 1;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (_hero.IsPolyMorph)
|
| | | {
|
| | | stopReason = 2;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (_hero == null || _hero.ActorInfo.serverDie)
|
| | | {
|
| | | stopReason = 3;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (_hero.heavenBattleModel.IsBattlePrepare)
|
| | | {
|
| | | stopReason = 4;
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | if (_hero.IsCollect() && m_UserClickSkillID <= 0)
|
| | | {
|
| | | stopReason = 5;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | _hero.SkillMgr.DoingPrepareSkill = false;
|
| | | }
|
| | | }
|
| | | stopReason = 6;
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | // 释放处于释放需要预备的技能状态下
|
| | | if (_hero.SkillMgr.DoingPrepareSkill)
|
| | | {
|
| | | stopReason = 7;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | // 挂机状态下等待拾取装备
|
| | | if (WaitForPickup())
|
| | | {
|
| | | stopReason = 8;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | // 子类有自己需要在技能释放前处理的逻辑
|
| | | if (OnUpdate())
|
| | | {
|
| | | stopReason = 9;
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | // 子类有自己需要在技能释放前处理的逻辑
|
| | | if (OnUpdate())
|
| | | {
|
| | | stopReason = 10;
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | if (MathUtility.DistanceSqrtXZ(_hero.Pos, m_TargetPos) > 0.25f)
|
| | | {
|
| | | _hero.MoveToPosition(m_TargetPos);
|
| | | stopReason = 11;
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | // 是否处于攻击间隔
|
| | | if (Time.realtimeSinceStartup - m_LastUseSkillTime < (1f / _hero.ActorInfo.atkSpeed))
|
| | | {
|
| | | stopReason = 12;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (_skill == null)
|
| | | {
|
| | | stopReason = 13;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | _hero.Behaviour.DoAttack(_skill);
|
| | | m_DecideSkill = null;
|
| | | m_UserClickSkillID = -1;
|
| | | stopReason = 14;
|
| | | return;
|
| | | }
|
| | |
|
| | | if (_atkTarget == null || !_atkTarget.CanAtked())
|
| | | {
|
| | | _hero.StopRush();
|
| | | stopReason = 15;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | if ((StatusMgr.IsValid()
|
| | | && !StatusMgr.Instance.CanMove(_hero.ServerInstID)))
|
| | | {
|
| | | stopReason = 16;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | _hero.StartRush();
|
| | | }
|
| | |
|
| | | stopReason = 17;
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | stopReason = 255;
|
| | |
|
| | | m_LastUseSkillTime = Time.realtimeSinceStartup;
|
| | | }
|
| | |
| | |
|
| | | public abstract class HeroAI_Base
|
| | | {
|
| | | public static byte stopReason = 0;
|
| | |
|
| | | private SkillModel m_SkillModel;
|
| | | private SkillModel skillModel
|
| | | {
|
| | |
| | | if (_fight == null)
|
| | | {
|
| | | #if UNITY_EDITOR
|
| | | Debug.LogErrorFormat("owner: {0} 类型问题: {1}" ,owner.ServerInstID, owner.GetType());
|
| | | Debug.LogErrorFormat("owner: {0} 类型问题: {1}", owner.ServerInstID, owner.GetType());
|
| | | #endif
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | _target.Die(owner.ServerInstID);
|
| | | }
|
| | | else
|
| | | {
|
| | | _target.ActorInfo.ResetHp((int)_target.ActorInfo.SyncServerHp, (short)_target.ActorInfo.SyncServerHpEx);
|
| | | }
|
| | |
|
| | | _target.ActorInfo.ResetHp((int)_target.ActorInfo.SyncServerHp, (short)_target.ActorInfo.SyncServerHpEx);
|
| | | // 主角血量扣除的补充
|
| | | if (_target.ServerInstID == PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | bool _force = NpcConfig.NPCID != 33409001 && NpcConfig.NPCID != 33409002;
|
| | | // 初始化坐标
|
| | | AdjustPos(_h0406.PosX, _h0406.PosY, NpcConfig.IsBoss > 1);
|
| | | AdjustPos(_h0406.PosX, _h0406.PosY, _force);
|
| | | }
|
| | |
|
| | | GAStaticDefine.NPCLocation _npcLocation;
|
| | |
| | | _player.Collect(); |
| | | } |
| | | } |
| | | |
| | | if (H0812.PlayerID == PlayerDatas.Instance.PlayerId) |
| | | { |
| | | if (PlayerDatas.Instance.hero != null) |
| | | { |
| | | PlayerDatas.Instance.hero.Behaviour.StopHandupAI(true); |
| | | } |
| | | } |
| | | |
| | | break; |
| | | case E_PrepareType.pstCatchPet: |
| | |
| | | {
|
| | | if (!isClientChangeMap)
|
| | | {
|
| | | StageLoadTimeOutCatcher.send0107Time = DateTime.Now;
|
| | | StageLoadTimeOutCatcher.ReportChangeMapRecord(this.socketType, "0107", DateTime.Now);
|
| | |
|
| | | var mapOk = new C0107_tagCInitMapOK();
|
| | | mapOk.MapID = PlayerDatas.Instance.baseData.MapID;
|
| | | mapOk.Type = 0;
|
| | |
| | | }
|
| | |
|
| | | _hero.State = E_ActorState.Idle;
|
| | | _hero.ActorInfo.ResetHp((int)PlayerDatas.Instance.baseData.HP, -1, (int)PlayerDatas.Instance.baseData.HP);
|
| | | _hero.ActorInfo.ResetHp((int)PlayerDatas.Instance.baseData.HP, -1, (int)PlayerDatas.Instance.extersion.MaxHP);
|
| | | _hero.CalculateMoveSpeed((ushort)PlayerDatas.Instance.extersion.SpeedValue);
|
| | | _hero.CalculateAtkSpeed(PlayerDatas.Instance.extersion.battleValEx1);
|
| | | _hero.InitBornPos(PlayerDatas.Instance.baseData.PosX, PlayerDatas.Instance.baseData.PosY);
|
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp118(object p0, ItemWinBtnType p1, object p2) |
| | | public void __Gen_Delegate_Imp118(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_Imp119(object p0, ItemWinBtnType p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp119(object p0, int p1, int p2) |
| | | public void __Gen_Delegate_Imp120(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp120(object p0, PackType p1, int p2) |
| | | public void __Gen_Delegate_Imp121(object p0, PackType p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp121(object p0, UnityEngine.Vector3 p1, UnityEngine.Vector3 p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp122(object p0, UnityEngine.Vector3 p1, UnityEngine.Vector3 p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<int> __Gen_Delegate_Imp122(object p0) |
| | | public System.Collections.Generic.List<int> __Gen_Delegate_Imp123(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> __Gen_Delegate_Imp123(object p0) |
| | | public System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> __Gen_Delegate_Imp124(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, int> __Gen_Delegate_Imp124(object p0) |
| | | public System.Collections.Generic.Dictionary<int, int> __Gen_Delegate_Imp125(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp125(int p0) |
| | | public string __Gen_Delegate_Imp126(int p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp126(object p0, object p1) |
| | | public int __Gen_Delegate_Imp127(object p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp127(object p0, PackType p1) |
| | | public void __Gen_Delegate_Imp128(object p0, PackType p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp128(object p0, out System.Collections.Generic.List<int> p1) |
| | | public bool __Gen_Delegate_Imp129(object p0, out System.Collections.Generic.List<int> p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp129(object p0, int p1) |
| | | public bool __Gen_Delegate_Imp130(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp130(object p0, int p1, ref System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> p2) |
| | | public void __Gen_Delegate_Imp131(object p0, int p1, ref System.Collections.Generic.List<Snxxz.UI.GatherSoulItem> p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp131(object p0, object p1, int p2, out int p3) |
| | | public bool __Gen_Delegate_Imp132(object p0, object p1, int p2, out int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp132(object p0, object p1, out int p2) |
| | | public bool __Gen_Delegate_Imp133(object p0, object p1, out int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp133(object p0, int p1, object p2) |
| | | public bool __Gen_Delegate_Imp134(object p0, int p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp134(object p0, int p1, object p2) |
| | | public int __Gen_Delegate_Imp135(object p0, int p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp135(object p0, int p1, int p2) |
| | | public bool __Gen_Delegate_Imp136(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp136(object p0, object p1, int p2, int p3) |
| | | public bool __Gen_Delegate_Imp137(object p0, object p1, int p2, int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp137(object p0, object p1, int p2) |
| | | public void __Gen_Delegate_Imp138(object p0, object p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | 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_Imp138(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); |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.CrossServerOneVsOneModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 27, 19, 9); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 27, 21, 10); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsMatching", _g_get_IsMatching); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "matchStartTime", _g_get_matchStartTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "roundEndTime", _g_get_roundEndTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsNewDay", _g_get_IsNewDay); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeMaxMatchNum", _g_get_freeMaxMatchNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "buyMaxMatchNum", _g_get_buyMaxMatchNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "priceFormula", _g_get_priceFormula); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dayAwardTypelist", _g_get_dayAwardTypelist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "afterOpenDayOpenCross", _g_get_afterOpenDayOpenCross); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "pkResultInfo", _g_get_pkResultInfo); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalSaveThirdTypeKey", _g_get_LocalSaveThirdTypeKey); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossServerRedpoint", _g_get_crossServerRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossOneVsOneRedpoint", _g_get_crossOneVsOneRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossArenaRedpoint", _g_get_crossArenaRedpoint); |
| | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "isClickCoolTime", _s_set_isClickCoolTime); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsMatching", _s_set_IsMatching); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "matchStartTime", _s_set_matchStartTime); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "LocalSaveThirdTypeKey", _s_set_LocalSaveThirdTypeKey); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossServerRedpoint", _s_set_crossServerRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossOneVsOneRedpoint", _s_set_crossOneVsOneRedpoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "crossArenaRedpoint", _s_set_crossArenaRedpoint); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsNewDay(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsNewDay); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_freeMaxMatchNum(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.pkResultInfo); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_LocalSaveThirdTypeKey(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.LocalSaveThirdTypeKey); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_LocalSaveThirdTypeKey(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.LocalSaveThirdTypeKey = LuaAPI.lua_tostring(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_crossServerRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.GatheringSoulModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 45, 18, 5); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 46, 18, 5); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | 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, "TryExecuteReplaceSoul", _m_TryExecuteReplaceSoul); |
| | | 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.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, "replaceRedHoles", _g_get_replaceRedHoles); |
| | | 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, "topBestSoulIndexs", _s_set_topBestSoulIndexs); |
| | | 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, "replaceRedHoles", _s_set_replaceRedHoles); |
| | | 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.BeginClassRegister(type, L, __CreateInstance, 9, 0, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetEquipHoleName", _m_GetEquipHoleName_xlua_st_); |
| | | |
| | | |
| | |
| | | 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.RegisterObject(L, translator, Utils.CLS_IDX, "RARA_GATHERSOUL_QUALITY", Snxxz.UI.GatheringSoulModel.RARA_GATHERSOUL_QUALITY); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryExecuteReplaceSoul(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)); |
| | | |
| | | gen_to_be_invoked.TryExecuteReplaceSoul( _hole, _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 { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_replaceRedHoles(RealStatePtr L) |
| | | 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); |
| | | translator.Push(L, gen_to_be_invoked.replaceRedHoles); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.replaceRedpointIndex); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_replaceRedHoles(RealStatePtr L) |
| | | 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.replaceRedHoles = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>)); |
| | | gen_to_be_invoked.replaceRedpointIndex = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | |
| | | [SerializeField]
|
| | | Button onekeyPutBtn;
|
| | |
|
| | | [SerializeField] GameObject composeItemSelectObj;
|
| | |
|
| | | [SerializeField] UIEffect oneMatEffect;
|
| | | [SerializeField] UIEffect twoMatEffect;
|
| | | [SerializeField] UIEffect threeMatEffect;
|
| | |
| | | successRateText.text = Language.Get("HallowsWin_Success", StringUtility.Contact(compoundModel.successRate / 100, "%"));
|
| | | composeWinModel.SetCurComposeModel(compoundModel);
|
| | | UpdateComposeMat();
|
| | |
|
| | | composeItemSelectObj.SetActive(compoundModel.secondType < 4);
|
| | | }
|
| | |
|
| | | private bool ChangeFixedMatUI()
|
| | |
| | | CrossServerOneVsOneRewardModel.PkDanLvNow = CrossServerOneVsOnePlayerInfo.Instance.DanLV;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += Updatefighting;//数据的刷新(h0418) |
| | | GA_Player.s_OnRefreshLife += OnRefreshPlayerLifeBar; |
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.OnHpChange += OnHeroHpChanged;
|
| | | } |
| | | _MyBuffSortList.Clear(); |
| | | _OpponentBuffSortList.Clear(); |
| | | SetScoreText();
|
| | |
| | | OnCreateGridLineCel2(m_ScrollerController2);
|
| | | IsShowMyBuffBtn();
|
| | | IsShowOpponentBuffBtn();
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | protected override void OnActived()
|
| | |
| | | Viewport2.gameObject.SetActive(false);
|
| | | } |
| | | protected override void OnAfterOpen() |
| | | { |
| | | |
| | | |
| | | {
|
| | |
|
| | |
|
| | | HeroBehaviour.OnStopHandupAI += OnHeroHandupAIStopPassive;
|
| | | HeroBehaviour.OnStartHandupAI += OnHeroHandupAIStarted;
|
| | | dungeonModel.dungeonCoolDownEvent += DungeonCoolDownEvent; |
| | |
| | | {
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= Updatefighting;//数据的刷新(h0418) |
| | | GA_Player.s_OnRefreshLife -= OnRefreshPlayerLifeBar;
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.ActorInfo.OnHpChange -= OnHeroHpChanged;
|
| | | }
|
| | | HeroBehaviour.OnStopHandupAI -= OnHeroHandupAIStopPassive;
|
| | | HeroBehaviour.OnStartHandupAI -= OnHeroHandupAIStarted;
|
| | | dungeonModel.dungeonCoolDownEvent -= DungeonCoolDownEvent;
|
| | |
| | | OpponentInformation.Instance.ShieldUpdate -= ShieldUpdate; |
| | | }
|
| | |
|
| | | |
| | |
|
| | |
|
| | | protected override void OnAfterClose() |
| | | { |
| | | }
|
| | | protected override void LateUpdate()
|
| | | {
|
| | | if (PlayerDatas.Instance.hero!=null && PlayerDatas.Instance.hero.aiHandler.IsAuto())
|
| | | if (PlayerDatas.Instance.hero != null && PlayerDatas.Instance.hero.aiHandler.IsAuto())
|
| | | {
|
| | | m_AutoImg.SetActive(false);
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | var surplus = dungeonEndTime - DateTime.Now; |
| | | var surplus = dungeonEndTime - DateTime.Now;
|
| | | m_CountdownText.text = (Mathf.CeilToInt((float)surplus.TotalSeconds)).ToString();
|
| | | }
|
| | |
|
| | | }
|
| | | #endregion |
| | |
|
| | | private void OnHeroHpChanged(ulong hp)
|
| | | {
|
| | | PlaceOfBirthUpdate(positionType);
|
| | | } |
| | | |
| | | private void DelBuff()
|
| | | {
|
| | | BuffScheduling();
|
| | |
| | |
|
| | | private void BuffUpdateEvent(int playerID)
|
| | | {
|
| | | |
| | |
|
| | | int opponentPlayerId = CrossServerLogin.Instance.oneVsOnePlayerData.opponentPlayerId;
|
| | | if (playerID == opponentPlayerId)
|
| | | {
|
| | |
| | | }
|
| | | private void OnRefreshPlayerLifeBar(uint _instanceId, ulong _hp, ulong _maxHp)
|
| | | {
|
| | | // DebugEx.LogError("最大血量"+ _maxHp+"当前血量"+ _hp);
|
| | | // DebugEx.LogError("最大血量"+ _maxHp+"当前血量"+ _hp);
|
| | | if (positionType == 1)
|
| | | {
|
| | | m_RoleInformation2.SetHeroHP((int)_maxHp, (int)_hp);
|
| | |
| | | m_RoleInformation1.SetShieldNumber(CrossServerLogin.Instance.oneVsOnePlayerData.MaxProDef, shieldNow);
|
| | | }
|
| | | }
|
| | | // DebugEx.LogError("输出玩家的ID" + playerID+"输出当前护盾值"+ shieldNow);
|
| | | // DebugEx.LogError("输出玩家的ID" + playerID+"输出当前护盾值"+ shieldNow);
|
| | | }
|
| | | private void OnHeroHandupAIStopPassive()
|
| | | {
|
| | |
| | | m_ScoreText2.text = youWin.ToString();
|
| | | }
|
| | | else
|
| | | { |
| | | {
|
| | | m_ScoreText1.text = youWin.ToString();
|
| | | m_ScoreText2.text = myWin.ToString();
|
| | | }
|
| | |
| | | {
|
| | | _ScrollRect2.vertical = true;
|
| | | (Viewport2 as RectTransform).sizeDelta = (Viewport2 as RectTransform).sizeDelta.SetY(MaxHeight + UpperAndLower);
|
| | | } |
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | _ScrollRect2.vertical = false;
|
| | | (Viewport2 as RectTransform).sizeDelta = (Viewport2 as RectTransform).sizeDelta.SetY(_MyBuffSortList.Count * ItemHeight + UpperAndLower);
|
| | | } |
| | | }
|
| | | }
|
| | | }
|
| | | void UpdateControllerPositionOppoent()
|
| | |
| | | m_RoleInformation1.SetHeroLvAndName((int)PlayerDatas.Instance.baseData.LV, PlayerName);
|
| | | m_RoleInformation1.SetHeroHP(PlayerDatas.Instance.extersion.MaxHP, (int)PlayerDatas.Instance.baseData.HP);
|
| | | m_RoleInformation1.SetShieldNumber(PlayerDatas.Instance.extersion.MaxProDef, (int)PlayerDatas.Instance.baseData.ExAttr4);
|
| | | #if UNITY_EDITOR
|
| | | Debug.LogFormat("设置血量: {0}/{1}", PlayerDatas.Instance.baseData.HP, PlayerDatas.Instance.extersion.MaxHP);
|
| | | #endif
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | m_RoleInformation2.SetHeroLvAndName((int)PlayerDatas.Instance.baseData.LV, PlayerName);
|
| | | m_RoleInformation2.SetHeroHP(PlayerDatas.Instance.extersion.MaxHP, (int)PlayerDatas.Instance.baseData.HP);
|
| | | m_RoleInformation2.SetShieldNumber(PlayerDatas.Instance.extersion.MaxProDef, (int)PlayerDatas.Instance.baseData.ExAttr4);
|
| | | #if UNITY_EDITOR
|
| | | Debug.LogFormat("设置血量: {0}/{1}", PlayerDatas.Instance.baseData.HP, PlayerDatas.Instance.extersion.MaxHP);
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | private void GetopponentBuff()//获取对手身上的Buff
|
| | | {
|
| | | List<int> buffIds=new List<int>();
|
| | | List<int> buffIds = new List<int>();
|
| | | _OpponentBuffSortList.Clear();
|
| | | StatusMgr.Instance.GetBuffIds((uint)CrossServerLogin.Instance.oneVsOnePlayerData.opponentPlayerId, ref buffIds);
|
| | | if (buffIds.Count > 0)
|
| | | { |
| | | {
|
| | | for (int i = 0; i < buffIds.Count; i++)
|
| | | {
|
| | | _OpponentBuffSortList.Add(buffIds[i]);
|
| | |
| | | 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()
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | 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,
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public bool TryGetQuestionTime(out HourMinute time)
|
| | | {
|
| | | time = default(HourMinute);
|
| | | bool isSpecial = TimeUtility.OpenWeekCnt <= 1;
|
| | | if (isSpecial)
|
| | | var dayOfWeek = (int)TimeUtility.ServerNow.DayOfWeek;
|
| | | if (normalQuestionTimes.ContainsKey(dayOfWeek))
|
| | | {
|
| | | var openDayWeek = (int)TimeUtility.openServerDayOfWeek;
|
| | | if (specialQuestionTime.ContainsKey(openDayWeek))
|
| | | {
|
| | | 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;
|
| | | }
|
| | | time = normalQuestionTimes[dayOfWeek];
|
| | | return true;
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
| | | model.onFairyLeagueBattleEvent += OnFairyLeagueBattleEvent;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo += OnRefreshFairyInfo;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += PlayerDataRefreshInfoEvent;
|
| | | requireRemind = SatisfyRemindCondition() && model.RequireFairyLeagueRemind(1)
|
| | | && TryGetStartTime(out startTime);
|
| | | && TryGetStartTime(out startTime) && !InCrossServer();
|
| | | m_Container.gameObject.SetActive(requireRemind);
|
| | | if (requireRemind)
|
| | | {
|
| | |
| | | model.onFairyLeagueBattleEvent -= OnFairyLeagueBattleEvent;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent -= OnFuncStateChangeEvent;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyInfo -= OnRefreshFairyInfo;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= PlayerDataRefreshInfoEvent;
|
| | | requireRemind = false;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void PlayerDataRefreshInfoEvent(PlayerDataRefresh refreshType)
|
| | | {
|
| | | if (refreshType == PlayerDataRefresh.ExAttr5)
|
| | | {
|
| | | OnRefreshFairyLeagueEvent();
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnFairyLeagueBattleEvent()
|
| | | {
|
| | | requireRemind = SatisfyRemindCondition() && model.RequireFairyLeagueRemind(1)
|
| | | && TryGetStartTime(out startTime);
|
| | | && TryGetStartTime(out startTime) && !InCrossServer();
|
| | | m_Container.gameObject.SetActive(requireRemind);
|
| | | if (requireRemind)
|
| | | {
|
| | |
| | | private void OnRefreshFairyLeagueEvent()
|
| | | {
|
| | | requireRemind = SatisfyRemindCondition() && model.RequireFairyLeagueRemind(1)
|
| | | && TryGetStartTime(out startTime);
|
| | | && TryGetStartTime(out startTime) && !InCrossServer();
|
| | | m_Container.gameObject.SetActive(requireRemind);
|
| | | if (requireRemind)
|
| | | {
|
| | |
| | | return fairyLeagueStage == FairyLeagueStage.Grouping && session == 1;
|
| | | }
|
| | |
|
| | | bool InCrossServer()
|
| | | {
|
| | | return PlayerDatas.Instance.baseData.ExAttr5 == 1;
|
| | | }
|
| | |
|
| | | bool TryGetStartTime(out DateTime time)
|
| | | {
|
| | | time = DateTime.Now;
|
| | |
| | | var equipCell = cell as GatherSoulEquipCell;
|
| | | if (cell.index < equipList.Count)
|
| | | {
|
| | | equipCell.Display(equipList[cell.index], cell.index == 0);
|
| | | equipCell.Display(equipList[cell.index], false);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | data.SetTipsFuncBtn(ItemWinBtnType.LevelUp, OnTipFunc);
|
| | | }
|
| | | if (model.replaceRedHoles.Contains(hole))
|
| | | List<GatherSoulItem> list = new List<GatherSoulItem>();
|
| | | model.TryGetSatisfyReplaceSouls(hole, ref list);
|
| | | if (list.Count > 0)
|
| | | {
|
| | | data.SetTipsFuncBtn(ItemWinBtnType.Replace, OnTipFunc);
|
| | | list = null;
|
| | | }
|
| | | itemTipsModel.SetItemTipsModel(data);
|
| | | }
|
| | |
| | | void DisplayRedpoint()
|
| | | {
|
| | | bool requireRedpoint = (model.equipRedpoint.state == RedPointState.Simple && model.equipRedpointHole == hole)
|
| | | || (model.levelUpRedpoint.state == RedPointState.Simple && model.levelUpRedpointHole == hole)
|
| | | || (model.replaceRedpoint.state == RedPointState.Simple && model.replaceRedHoles.Contains(hole));
|
| | | || (model.levelUpRedpoint.state == RedPointState.Simple && model.levelUpRedpointHole == hole);
|
| | | m_ContaienrRedpoint.gameObject.SetActive(requireRedpoint);
|
| | | }
|
| | |
|
| | |
| | | if (m_Select != null)
|
| | | {
|
| | | var requireSelect = displayItem.packType == PackType.rptGatherSoul
|
| | | && soulModel.topBestSoulIndexs.Contains(displayItem.index)
|
| | | && soulModel.equipRedpoint.state == RedPointState.Simple;
|
| | | && soulModel.topBestSoulIndexs.Contains(displayItem.index);
|
| | | m_Select.gameObject.SetActive(requireSelect);
|
| | | if (requireSelect)
|
| | | {
|
| | |
| | |
|
| | | int GetDefaultQuality()
|
| | | {
|
| | | for (int i = 4; i >= 2; i--)
|
| | | {
|
| | | model.GetResolveSouls(i, model.resolveItems);
|
| | | if (model.resolveItems.Count > 0)
|
| | | {
|
| | | return i;
|
| | | }
|
| | | }
|
| | | return 2;
|
| | | //for (int i = 4; i >= 2; i--)
|
| | | //{
|
| | | // model.GetResolveSouls(i, model.resolveItems);
|
| | | // if (model.resolveItems.Count > 0)
|
| | | // {
|
| | | // return i;
|
| | | // }
|
| | | //}
|
| | | return GatheringSoulModel.RARA_GATHERSOUL_QUALITY - 1;
|
| | | }
|
| | |
|
| | | private void PlayerDataRefreshInfoEvent(PlayerDataRefresh refreshType)
|
| | |
| | | }
|
| | |
|
| | | bool existUnEquipBetterProperty = false;
|
| | | bool existRareGatherSoul = false;
|
| | |
|
| | | var count = model.holeCount;
|
| | | var error = 0;
|
| | | for (int i = 0; i < model.resolveItems.Count; i++)
|
| | | {
|
| | | var item = model.resolveItems[i];
|
| | |
| | | {
|
| | | continue;
|
| | | }
|
| | | if (model.IsSamePropertyCompareHoles(-1, item) == -1)
|
| | | if (item.itemColor >= GatheringSoulModel.RARA_GATHERSOUL_QUALITY)
|
| | | {
|
| | | existUnEquipBetterProperty = true;
|
| | | existRareGatherSoul = true;
|
| | | break;
|
| | | }
|
| | | for (int k = 0; k < count; k++)
|
| | | }
|
| | | }
|
| | | if (!existRareGatherSoul)
|
| | | {
|
| | | for (int i = 0; i < model.resolveItems.Count; i++)
|
| | | {
|
| | | var item = model.resolveItems[i];
|
| | | if (item != null && model.CheckExist(item))
|
| | | {
|
| | | GatherSoulItem holeItem;
|
| | | if (model.TryGetItem(k, out holeItem))
|
| | | if (item.itemType == GatheringSoulModel.GATHERSOUL_ESSENCE_TYPE)
|
| | | {
|
| | | if (model.SatisfyReplace(k, item) && item.Compare(holeItem) == 1)
|
| | | {
|
| | | existUnEquipBetterProperty = true;
|
| | | break;
|
| | | }
|
| | | continue;
|
| | | }
|
| | | else if (model.SatisfyEquipSoul(item, k, out error))
|
| | | if (model.IsSamePropertyCompareHoles(-1, item) == -1)
|
| | | {
|
| | | existUnEquipBetterProperty = true;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | if (existUnEquipBetterProperty)
|
| | | {
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | if (existUnEquipBetterProperty)
|
| | | if (existRareGatherSoul)
|
| | | {
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("RareGatherSoulResolveConfirm"), (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | TryResolve();
|
| | | }
|
| | | });
|
| | | }
|
| | | else if (existUnEquipBetterProperty)
|
| | | {
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("GatherSoulResolveConfirm"), (bool isOk) =>
|
| | | {
|
| | |
| | | else if (callBackType == ItemWinBtnType.Replace)
|
| | | {
|
| | | m_Redpoints[index].gameObject.SetActive(model.replaceRedpoint.state == RedPointState.Simple
|
| | | && model.replaceRedHoles.Contains(itemTipsModel.curAttrData.equipHole));
|
| | | && itemTipsModel.curAttrData.index == model.replaceRedpointIndex);
|
| | | }
|
| | | }
|
| | | index++;
|
| | |
| | | public const int SOULSPLINTERS_MONEYTYPE = 29;
|
| | | public const int SOULCORE_MONEYTYPE = 30;
|
| | |
|
| | | public const int RARA_GATHERSOUL_QUALITY = 3;
|
| | |
|
| | | const int GATHERSOUL_REDPOINT_BASE = 10102;
|
| | | const int GATHERSOUL_REDPOINT_DEEP = 1010200;
|
| | | static int redpointIndex = 5;
|
| | |
| | | void SelectBestReplaceSoul()
|
| | | {
|
| | | List<int> list;
|
| | | var count = holeCount;
|
| | | if (virtualPack.TryGetItems(PackType.rptGatherSoul, out list))
|
| | | {
|
| | | for (int i = 0; i < list.Count; i++)
|
| | |
| | | GatherSoulItem packItem;
|
| | | if (virtualPack.TryGetItem(PackType.rptGatherSoul, list[i], out packItem))
|
| | | {
|
| | | for (int k = 0; k < count; k++)
|
| | | var hole = 0;
|
| | | if (SatisfyReplace(packItem, out hole))
|
| | | {
|
| | | if (SatisfyReplace(k, packItem))
|
| | | GatherSoulItem item;
|
| | | if (TryGetItem(hole, out item) && packItem.Compare(item) == 1)
|
| | | {
|
| | | GatherSoulItem item;
|
| | | if (TryGetItem(k, out item) && packItem.Compare(item) == 1)
|
| | | if (!packIndexs.Contains(list[i]))
|
| | | {
|
| | | if (!packIndexs.Contains(list[i]))
|
| | | {
|
| | | packIndexs.Add(list[i]);
|
| | | }
|
| | | break;
|
| | | packIndexs.Add(list[i]);
|
| | | }
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | if (TryGetItem(i, out holeItem))
|
| | | {
|
| | | if (item.gatherSoulType == holeItem.gatherSoulType
|
| | | && IsSamePropertyCompareHoles(i, item) == -1)
|
| | | && item.ExistSameProperty(holeItem.id))
|
| | | {
|
| | | hole = i;
|
| | | return true;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | ExecuteResolve(item);
|
| | | if (item.itemColor >= RARA_GATHERSOUL_QUALITY)
|
| | | {
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("BestGatherSoulResolveConfirm"), (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | ExecuteResolve(item);
|
| | | }
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | ExecuteResolve(item);
|
| | | }
|
| | | }
|
| | | break;
|
| | | case ItemWinBtnType.Wear:
|
| | |
| | | list.Add(item);
|
| | | continue;
|
| | | }
|
| | | if (item.itemType == GATHERSOUL_CORE_TYPE)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var propertys = gatherSoulPropertys[item.id];
|
| | | if (propertys.Count > 1)
|
| | | {
|
| | |
| | | }
|
| | | var property = propertys[0];
|
| | | var config = Config.Instance.Get<ItemConfig>(item.id);
|
| | | if (item.itemType == GATHERSOUL_SOUL_TYPE && config.ItemColor <= 2)
|
| | | if (item.itemType == GATHERSOUL_SOUL_TYPE && config.ItemColor < RARA_GATHERSOUL_QUALITY)
|
| | | {
|
| | | list.Add(item);
|
| | | continue;
|
| | |
| | | if (item.itemType == GATHERSOUL_ESSENCE_TYPE)
|
| | | {
|
| | | list.Add(item);
|
| | | continue;
|
| | | }
|
| | | if (item.itemType == GATHERSOUL_CORE_TYPE ||
|
| | | item.itemColor >= RARA_GATHERSOUL_QUALITY)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var propertys = gatherSoulPropertys[item.id];
|
| | |
| | | #region 红点
|
| | | public int equipRedpointHole = 0;
|
| | | public int levelUpRedpointHole = 0;
|
| | | public List<int> replaceRedHoles = new List<int>();
|
| | | public int replaceRedpointIndex = 0;
|
| | | void UpdateRedpoint()
|
| | | {
|
| | | replaceRedHoles.Clear();
|
| | | equipRedpoint.state = RedPointState.None;
|
| | | replaceRedpoint.state = RedPointState.None;
|
| | | resolveRedpoint.state = RedPointState.None;
|
| | |
| | | }
|
| | | }
|
| | | var count = holeCount;
|
| | | if (packIndexs.Count > 0 && topBestSoulIndexs.Count > 0)
|
| | | if (packIndexs.Count > 0)
|
| | | {
|
| | | for (int k = 0; k < count; k++)
|
| | | GatherSoulItem item;
|
| | | virtualPack.TryGetItem(PackType.rptGatherSoul, packIndexs[0], out item);
|
| | | for (int i = 0; i < count; i++)
|
| | | {
|
| | | GatherSoulItem holeItem;
|
| | | if (!TryGetItem(k, out holeItem))
|
| | | if (TryGetItem(i, out holeItem))
|
| | | {
|
| | | continue;
|
| | | }
|
| | | for (int i = 0; i < topBestSoulIndexs.Count; i++)
|
| | | {
|
| | | GatherSoulItem item;
|
| | | if (virtualPack.TryGetItem(PackType.rptGatherSoul, topBestSoulIndexs[i], out item))
|
| | | if (SatisfyReplace(i, item) && item.Compare(holeItem) == 1)
|
| | | {
|
| | | if (SatisfyReplace(k, item) && item.Compare(holeItem) == 1)
|
| | | {
|
| | | replaceRedHoles.Add(k);
|
| | | break;
|
| | | }
|
| | | replaceRedpointIndex = item.index;
|
| | | replaceRedpoint.state = RedPointState.Simple;
|
| | | return;
|
| | | }
|
| | | }
|
| | | }
|
| | | if (replaceRedHoles.Count > 0)
|
| | | {
|
| | | replaceRedpoint.state = RedPointState.Simple;
|
| | | return;
|
| | | }
|
| | | }
|
| | | List<GatherSoulItem> list = new List<GatherSoulItem>();
|
| | | GetResolveSouls(int.MaxValue, list);
|
| | | if (list.Count > 0)
|
| | | {
|
| | | resolveRedpoint.state = RedPointState.Simple;
|
| | | list = null;
|
| | | return;
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | if (list[i] == null)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | if (list[i].itemType == GATHERSOUL_ESSENCE_TYPE
|
| | | || list[i].itemColor < RARA_GATHERSOUL_QUALITY)
|
| | | {
|
| | | resolveRedpoint.state = RedPointState.Simple;
|
| | | list = null;
|
| | | return;
|
| | | }
|
| | | }
|
| | | }
|
| | | GatherSoulItem coreItem;
|
| | | if (TryGetItem(coreHole, out coreItem) &&
|
| | |
| | | if (compareConfig.ItemColor != config.ItemColor)
|
| | | {
|
| | | return config.ItemColor > compareConfig.ItemColor ? 1 : -1;
|
| | | }
|
| | | var compareSort = model.GetPropertyHighestSort(model.gatherSoulPropertys[compare.id]);
|
| | | var sort = model.GetPropertyHighestSort(model.gatherSoulPropertys[id]);
|
| | | if (compareSort != sort)
|
| | | {
|
| | | return sort < compareSort ? 1 : -1;
|
| | | }
|
| | | if (level != compare.level)
|
| | | {
|
| | |
| | |
|
| | | private void UpdateDungeonAssistImag()
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.ExAttr5 == 1)
|
| | | {
|
| | | DungeonAssistImg.gameObject.SetActive(false);
|
| | | return;
|
| | | }
|
| | | DungeonAssistImg.gameObject.SetActive(assistModel.IsNewAssistInfo);
|
| | | }
|
| | |
|
| | | private void UpdateMysticalPurchaseImag()
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.ExAttr5 == 1)
|
| | | {
|
| | | MysticalPurchaseImg.gameObject.SetActive(false);
|
| | | return;
|
| | | }
|
| | | MysticalPurchaseImg.gameObject.SetActive(purchaseModel.priorityOpen);
|
| | | }
|
| | |
|
| | | private void UpdateWishAwardImag()
|
| | | {
|
| | | if(PlayerDatas.Instance.baseData.ExAttr5 == 1)
|
| | | {
|
| | | WishingAwardImg.gameObject.SetActive(false);
|
| | | return;
|
| | | }
|
| | | WishingAwardImg.gameObject.SetActive(wishModel.wishingAwardDict.Count > 0 ? true : false);
|
| | | }
|
| | |
|
| | |
| | | Vector3 _position = Vector3.zero;
|
| | | if (GActor.TryGetValidPos(_navChkPos, ref _position))
|
| | | {
|
| | | Debug.Log("正常点........");
|
| | | Debug.Log("正常点........: " + _position);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | EditorGUILayout.LabelField("技能信息", _content);
|
| | | }
|
| | |
|
| | | EditorGUILayout.IntField("当前主角AI执行状态值: ", HeroAI_Base.stopReason);
|
| | | EditorGUILayout.TextField("队伍ID", _hero.ActorInfo.teamID.ToString());
|
| | | EditorGUILayout.TextField("是否处于地图切换", GA_Hero.s_MapSwitching.ToString());
|
| | | EditorGUILayout.TextField("当前身体状态", _hero.MovingState.ToString());
|
| | |
| | | { |
| | | |
| | | const int timeOut = 20;//秒 |
| | | |
| | | public static DateTime got0102Time = DateTime.MinValue; |
| | | public static DateTime gotA126Time = DateTime.MinValue; |
| | | public static DateTime gotA127Time = DateTime.MinValue; |
| | | public static DateTime got0109Time = DateTime.MinValue; |
| | | public static DateTime send0107Time = DateTime.MinValue; |
| | | |
| | | public static StageLoadTimeOutCatcher Begin(int stageId) |
| | | { |
| | |
| | | var description = StringUtility.Contact( |
| | | "开始时间:", startTime.ToString("HH:mm:ss"), ";", |
| | | "超时时间:", DateTime.Now.ToString("HH:mm:ss"), |
| | | "服务器是否准备中:", StageManager.Instance.isServerPreparing, |
| | | "上一次接收到0109的时间:", got0109Time); |
| | | "0102时间:", got0102Time.ToString("HH:mm:ss"), ";", |
| | | "A126时间:", gotA126Time.ToString("HH:mm:ss"), ";", |
| | | "A127时间:", gotA127Time.ToString("HH:mm:ss"), ";", |
| | | "0109时间:", got0109Time.ToString("HH:mm:ss"), ";", |
| | | "0107时间:", send0107Time.ToString("HH:mm:ss")); |
| | | |
| | | ExceptionCatcher.ReportException(title, description); |
| | | Stop(); |
| | | } |
| | | } |
| | | |
| | | public static void ReportChangeMapRecord(GameNetSystem.SocketType socketType, string protocol, DateTime time) |
| | | { |
| | | try |
| | | { |
| | | var title = StringUtility.Contact("地图加载记录-->玩家名称:", PlayerDatas.Instance.baseData.PlayerName); |
| | | var description = StringUtility.Contact("服务器:", socketType, ";", "协议编号:", protocol, ";", "时间:", time.ToString("HH:mm:ss")); |
| | | |
| | | ExceptionCatcher.ReportException(title, description); |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |