| | |
| | | { |
| | | [XLua.Hotfix] |
| | | [XLua.LuaCallCSharp] |
| | | public class CrossServerBossModel : Model, IMapInitOk |
| | | public class CrossServerBossModel : Model, IMapInitOk, IPlayerLoginOk |
| | | { |
| | | public const int DATA_MAPID = 32020; |
| | | public const int REDPOINT = 77002; |
| | | public const int REDPOINT = 21302; |
| | | |
| | | List<int> sortedBossIds = new List<int>(); |
| | | Dictionary<int, CrossServerBossData> bosses = new Dictionary<int, CrossServerBossData>(); |
| | |
| | | } |
| | | } |
| | | |
| | | int m_BigBoxCollectCount = 0; |
| | | public int bigBoxCollectCount { |
| | | get { return m_BigBoxCollectCount; } |
| | | set { |
| | | if (m_BigBoxCollectCount != value) |
| | | { |
| | | m_BigBoxCollectCount = value; |
| | | if (bigBoxCollectCountChangeEvent != null) |
| | | { |
| | | bigBoxCollectCountChangeEvent(); |
| | | } |
| | | } |
| | | } |
| | | get { return dogzDungeonModel.bigBoxCollectCount; } |
| | | } |
| | | |
| | | int m_SmallBoxCollectCount = 0; |
| | |
| | | } |
| | | |
| | | public event Action<int> bossSelectedEvent; |
| | | public event Action bossWearyValueChangeEvent; |
| | | public event Action bigBoxCollectCountChangeEvent; |
| | | public event Action boxSurplusChangeEvent; |
| | | public event Action eliteSurplusChangeEvent; |
| | |
| | | } |
| | | } |
| | | |
| | | private void UpdateRedpoint() |
| | | public void UpdateRedpoint() |
| | | { |
| | | if (!FuncOpen.Instance.IsFuncOpen(162)) |
| | | { |
| | |
| | | { |
| | | var wearyValueLimit = GeneralDefine.bossWearyValues[2]; |
| | | redpoint.count = wearyValueLimit - wearyValue; |
| | | |
| | | } |
| | | |
| | | redpoint.state = redpoint.count > 0 ? RedPointState.Quantity : RedPointState.None; |
| | | CrossServerUtility.UpdateCrossServerRedpoint(); |
| | | } |
| | | |
| | | private void ParseConfig() |