| | |
| | |
|
| | | 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);
|
| | |
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | 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)
|