C# Class SanderVantEinde.SecretHitlerBot.GameRegistry

Afficher le fichier Open project: sandervanteinde/TelegramBot

Méthodes publiques

Свойство Type Description
PlayerRoles SanderVantEinde.SecretHitlerBot.PlayerRole[]

Private Properties

Свойство Type Description
GetGameForHost Game

Méthodes publiques

Méthode Description
GetGames ( ) : Game[]
HostGame ( User host ) : Game
IsInGame ( User user ) : bool
IsInGame ( User user, Game &game ) : bool
JoinGame ( User host, User join ) : int
RemoveGame ( Game game ) : void

Private Methods

Méthode Description
GetGameForHost ( User from ) : Game

Method Details

GetGames() public static méthode

public static GetGames ( ) : Game[]
Résultat Game[]

HostGame() public static méthode

public static HostGame ( User host ) : Game
host SanderVantEinde.TelegramBot.User
Résultat Game

IsInGame() public static méthode

public static IsInGame ( User user ) : bool
user SanderVantEinde.TelegramBot.User
Résultat bool

IsInGame() public static méthode

public static IsInGame ( User user, Game &game ) : bool
user SanderVantEinde.TelegramBot.User
game Game
Résultat bool

JoinGame() public static méthode

public static JoinGame ( User host, User join ) : int
host SanderVantEinde.TelegramBot.User
join SanderVantEinde.TelegramBot.User
Résultat int

RemoveGame() public static méthode

public static RemoveGame ( Game game ) : void
game Game
Résultat void

Property Details

PlayerRoles public_oe static_oe property

public static PlayerRole[],SanderVantEinde.SecretHitlerBot PlayerRoles
Résultat SanderVantEinde.SecretHitlerBot.PlayerRole[]