少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-15 0012445c0109fa67987800a1bac8f32e989b2d19
System/Welfare/MultipleRealmPointModel.cs
@@ -3,13 +3,17 @@
namespace Snxxz.UI
{
    public class MultipleRealmPointModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
    public class MultipleRealmPointModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
    {
        public Redpoint multipleRed = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, 20908);
        public string LocalRecord_Key = "MultipleRealmRecord";
        bool isNewDay = false;
        public event Action<int> onStateUpate;
        public override void Init()
        {
            OpenServerActivityCenter.Instance.Register(8, this);
          
        }
@@ -50,16 +54,32 @@
            }
        }
        public bool priorityOpen
        {
            get
            {
                return multipleRed.state == RedPointState.Simple;
            }
        }
        private void RefreshOperationClose(Operation type)
        {
            if (type != Operation.MultipRealmPoint) return;
            CheckShowRed();
            if (onStateUpate != null)
            {
                onStateUpate(8);
            }
        }
        private void RefreshOperationState(Operation type, int arg2)
        {
            if (type != Operation.MultipRealmPoint) return;
            CheckShowRed();
            if (onStateUpate != null)
            {
                onStateUpate(8);
            }
        }
        public void CheckShowRed(bool isClick = false)