C# Class Sanguosha.UI.Controls.LobbyViewModel

Inheritance: IGameClient, INotifyPropertyChanged
Mostrar archivo Open project: RagingBigFemaleBird/sgs

Public Methods

Method Description
CloseSeat ( SeatViewModel seat ) : bool
CreateRoom ( RoomSettings settings ) : void

Creates and enters a new room.

EnterRoom ( ) : bool
ExitRoom ( ) : bool
JoinSeat ( SeatViewModel seat ) : bool
KickPlayer ( SeatViewModel seat ) : bool
Logout ( ) : void
NotifyChat ( Account act, string message ) : void
NotifyGameStart ( string connectionString, LoginToken token ) : void
NotifyKicked ( ) : void
NotifyRoomUpdate ( int id, Room room ) : void
OpenSeat ( SeatViewModel seat ) : bool
Ping ( ) : bool
SendMessage ( string msg ) : bool
SpectateGame ( ) : bool
StartGame ( ) : bool
UpdateRooms ( ) : void

Updates all rooms in the lobby.

Protected Methods

Method Description
OnPropertyChanged ( string name ) : void

Private Methods

Method Description
LobbyViewModel ( ) : System
PlayerCancelReady ( ) : void
PlayerReady ( ) : void
_IsSuccess ( RoomOperationResult result ) : bool

Method Details

CloseSeat() public method

public CloseSeat ( SeatViewModel seat ) : bool
seat SeatViewModel
return bool

CreateRoom() public method

Creates and enters a new room.
public CreateRoom ( RoomSettings settings ) : void
settings Sanguosha.Lobby.Core.RoomSettings
return void

EnterRoom() public method

public EnterRoom ( ) : bool
return bool

ExitRoom() public method

public ExitRoom ( ) : bool
return bool

JoinSeat() public method

public JoinSeat ( SeatViewModel seat ) : bool
seat SeatViewModel
return bool

KickPlayer() public method

public KickPlayer ( SeatViewModel seat ) : bool
seat SeatViewModel
return bool

Logout() public method

public Logout ( ) : void
return void

NotifyChat() public method

public NotifyChat ( Account act, string message ) : void
act Sanguosha.Lobby.Core.Account
message string
return void

NotifyGameStart() public method

public NotifyGameStart ( string connectionString, LoginToken token ) : void
connectionString string
token Sanguosha.Lobby.Core.LoginToken
return void

NotifyKicked() public method

public NotifyKicked ( ) : void
return void

NotifyRoomUpdate() public method

public NotifyRoomUpdate ( int id, Room room ) : void
id int
room Sanguosha.Lobby.Core.Room
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( string name ) : void
name string
return void

OpenSeat() public method

public OpenSeat ( SeatViewModel seat ) : bool
seat SeatViewModel
return bool

Ping() public method

public Ping ( ) : bool
return bool

SendMessage() public method

public SendMessage ( string msg ) : bool
msg string
return bool

SpectateGame() public method

public SpectateGame ( ) : bool
return bool

StartGame() public method

public StartGame ( ) : bool
return bool

UpdateRooms() public method

Updates all rooms in the lobby.
public UpdateRooms ( ) : void
return void