C# Class HappyFunTimes.HFTGameGroup

显示文件 Open project: greggman/hft-unity-gamepad Class Usage Examples

Public Methods

Method Description
AddPlayer ( HFTPlayer player, object data ) : HFTGame
AddPlayerToGame ( HFTPlayer player, string id, object data ) : HFTGame
AssignClient ( HFTSocket client, HFTRuntimeOptions data ) : HFTGame
BroadcastMessageToGames ( string senderId, string receiverId, object data ) : void
Close ( ) : void
HFTGameGroup ( string gameId, HFTGameManager relayServer ) : System
HasClient ( ) : bool
RemoveGame ( HFTGame game ) : void
SendMessageToGame ( string senderId, string receiverId, object data ) : void

Private Methods

Method Description
DisconnectGames ( ) : void
GetAnyGame ( ) : HFTGame
GetGameById ( string id ) : HFTGame
GetNumPlayers ( ) : int
SendQuit ( ) : void
ShowInList ( ) : bool

Method Details

AddPlayer() public method

public AddPlayer ( HFTPlayer player, object data ) : HFTGame
player HFTPlayer
data object
return HFTGame

AddPlayerToGame() public method

public AddPlayerToGame ( HFTPlayer player, string id, object data ) : HFTGame
player HFTPlayer
id string
data object
return HFTGame

AssignClient() public method

public AssignClient ( HFTSocket client, HFTRuntimeOptions data ) : HFTGame
client HFTSocket
data HFTRuntimeOptions
return HFTGame

BroadcastMessageToGames() public method

public BroadcastMessageToGames ( string senderId, string receiverId, object data ) : void
senderId string
receiverId string
data object
return void

Close() public method

public Close ( ) : void
return void

HFTGameGroup() public method

public HFTGameGroup ( string gameId, HFTGameManager relayServer ) : System
gameId string
relayServer HFTGameManager
return System

HasClient() public method

public HasClient ( ) : bool
return bool

RemoveGame() public method

public RemoveGame ( HFTGame game ) : void
game HFTGame
return void

SendMessageToGame() public method

public SendMessageToGame ( string senderId, string receiverId, object data ) : void
senderId string
receiverId string
data object
return void