Esempio n. 1
0
 public override void Bind()
 {
     base.Bind();
     this.InitGame         = new Signal <InitGameCommand>(this);
     this.DoLogin          = new Signal <DoLoginCommand>(this);
     this.DoLogout         = new Signal <DoLogoutCommand>(this);
     this.DoEnterRoom      = new Signal <DoEnterRoomCommand>(this);
     this.DoQuitRoom       = new Signal <DoQuitRoomCommand>(this);
     this.DoDisconnect     = new Signal <DoDisconnectCommand>(this);
     _CanvasRootProperty   = new P <CanvasRootViewModel>(this, "CanvasRoot");
     _UIFlowStatusProperty = new UIFlowSM(this, "UIFlowStatus");
     DoLogin.Subscribe(_ => UIFlowStatusProperty.Login.OnNext(true));
     DoLogout.Subscribe(_ => UIFlowStatusProperty.Logout.OnNext(true));
     DoEnterRoom.Subscribe(_ => UIFlowStatusProperty.EnterRoom.OnNext(true));
     DoQuitRoom.Subscribe(_ => UIFlowStatusProperty.QuitRoom.OnNext(true));
     DoDisconnect.Subscribe(_ => UIFlowStatusProperty.Disconnect.OnNext(true));
 }
Esempio n. 2
0
 public void Handle(DoLogout message) => Open();