C# Class Sanguosha.UI.Controls.LobbyViewModel

Inheritance: IGameClient, INotifyPropertyChanged
Afficher le fichier Open project: RagingBigFemaleBird/sgs

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnPropertyChanged ( string name ) : void

Private Methods

Méthode Description
LobbyViewModel ( ) : System
PlayerCancelReady ( ) : void
PlayerReady ( ) : void
_IsSuccess ( RoomOperationResult result ) : bool

Method Details

CloseSeat() public méthode

public CloseSeat ( SeatViewModel seat ) : bool
seat SeatViewModel
Résultat bool

CreateRoom() public méthode

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

EnterRoom() public méthode

public EnterRoom ( ) : bool
Résultat bool

ExitRoom() public méthode

public ExitRoom ( ) : bool
Résultat bool

JoinSeat() public méthode

public JoinSeat ( SeatViewModel seat ) : bool
seat SeatViewModel
Résultat bool

KickPlayer() public méthode

public KickPlayer ( SeatViewModel seat ) : bool
seat SeatViewModel
Résultat bool

Logout() public méthode

public Logout ( ) : void
Résultat void

NotifyChat() public méthode

public NotifyChat ( Account act, string message ) : void
act Sanguosha.Lobby.Core.Account
message string
Résultat void

NotifyGameStart() public méthode

public NotifyGameStart ( string connectionString, LoginToken token ) : void
connectionString string
token Sanguosha.Lobby.Core.LoginToken
Résultat void

NotifyKicked() public méthode

public NotifyKicked ( ) : void
Résultat void

NotifyRoomUpdate() public méthode

public NotifyRoomUpdate ( int id, Room room ) : void
id int
room Sanguosha.Lobby.Core.Room
Résultat void

OnPropertyChanged() protected méthode

protected OnPropertyChanged ( string name ) : void
name string
Résultat void

OpenSeat() public méthode

public OpenSeat ( SeatViewModel seat ) : bool
seat SeatViewModel
Résultat bool

Ping() public méthode

public Ping ( ) : bool
Résultat bool

SendMessage() public méthode

public SendMessage ( string msg ) : bool
msg string
Résultat bool

SpectateGame() public méthode

public SpectateGame ( ) : bool
Résultat bool

StartGame() public méthode

public StartGame ( ) : bool
Résultat bool

UpdateRooms() public méthode

Updates all rooms in the lobby.
public UpdateRooms ( ) : void
Résultat void