C# Class HappyFunTimes.HFTGameManager

Afficher le fichier Open project: greggman/hft-unity-gamepad Class Usage Examples

Méthodes publiques

Méthode Description
AddPlayer ( HFTSocket client ) : void
AddPlayerToGame ( HFTPlayer player, string gameId, object data ) : HFTGame
AssignAsClientForGame ( HFTRuntimeOptions data, HFTSocket client ) : void
Close ( ) : void
GetGameGroup ( string gameId, bool makeGroup = false ) : HFTGameGroup
GetInstance ( ) : HFTGameManager
HaveGame ( ) : bool
RemoveGameGroup ( string gameId ) : void

Private Methods

Méthode Description
HFTGameManager ( ) : System

Method Details

AddPlayer() public méthode

public AddPlayer ( HFTSocket client ) : void
client HFTSocket
Résultat void

AddPlayerToGame() public méthode

public AddPlayerToGame ( HFTPlayer player, string gameId, object data ) : HFTGame
player HFTPlayer
gameId string
data object
Résultat HFTGame

AssignAsClientForGame() public méthode

public AssignAsClientForGame ( HFTRuntimeOptions data, HFTSocket client ) : void
data HFTRuntimeOptions
client HFTSocket
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

GetGameGroup() public méthode

public GetGameGroup ( string gameId, bool makeGroup = false ) : HFTGameGroup
gameId string
makeGroup bool
Résultat HFTGameGroup

GetInstance() public static méthode

public static GetInstance ( ) : HFTGameManager
Résultat HFTGameManager

HaveGame() public méthode

public HaveGame ( ) : bool
Résultat bool

RemoveGameGroup() public méthode

public RemoveGameGroup ( string gameId ) : void
gameId string
Résultat void