コード例 #1
0
 public virtual void InitializeLobbyPanel(LobbyPanelViewModel viewModel)
 {
     // This is called when a LobbyPanelViewModel is created
     viewModel.EnterRoom.Action = this.EnterRoomHandler;
     viewModel.QuitLobby.Action = this.QuitLobbyHandler;
     LobbyPanelViewModelManager.Add(viewModel);
 }
コード例 #2
0
        public override void QuitLobby(LobbyPanelViewModel viewModel)
        {
            base.QuitLobby(viewModel);

            // 进行登出
            Publish(new NetLogout());
        }
コード例 #3
0
        public override void EnterRoom(LobbyPanelViewModel viewModel)
        {
            base.EnterRoom(viewModel);

            Publish(new NetJoinOrCreateRoom()
            {
                RoomId = viewModel.RoomId
            });
        }
コード例 #4
0
 public virtual void QuitLobby(LobbyPanelViewModel viewModel)
 {
 }
コード例 #5
0
 public virtual void EnterRoom(LobbyPanelViewModel viewModel)
 {
 }
コード例 #6
0
 public override void InitializeLobbyPanel(LobbyPanelViewModel viewModel)
 {
     base.InitializeLobbyPanel(viewModel);
     // This is called when a LobbyPanelViewModel is created
 }