C# Class HappyFunTimes.RealNetPlayer

This object represent the connections between a player's phone and this game.
Inheritance: NetPlayer
Afficher le fichier Open project: greggman/hft-unity-gamepad Class Usage Examples

Méthodes publiques

Méthode Description
GetSessionId ( ) : string
RealNetPlayer ( HappyFunTimes.GameServer server, string id, string name, Options options = null ) : System
SendCmd ( MessageCmdData data ) : void

Sends a message to this player's phone

SendCmd ( string cmd, object data ) : void
SwitchGame ( string gameId, object data ) : void

Private Methods

Méthode Description
SendLowLevelCmd ( string cmd, MessageCmdData data ) : void
SendLowLevelCmd ( string cmd, string subCmd, object data ) : void

Method Details

GetSessionId() public méthode

public GetSessionId ( ) : string
Résultat string

RealNetPlayer() public méthode

public RealNetPlayer ( HappyFunTimes.GameServer server, string id, string name, Options options = null ) : System
server HappyFunTimes.GameServer
id string
name string
options Options
Résultat System

SendCmd() public méthode

Sends a message to this player's phone
public SendCmd ( MessageCmdData data ) : void
data MessageCmdData The message. It must be derived from MessageCmdData and must have a /// CmdName attribute
Résultat void

SendCmd() public méthode

public SendCmd ( string cmd, object data ) : void
cmd string
data object
Résultat void

SwitchGame() public méthode

public SwitchGame ( string gameId, object data ) : void
gameId string
data object
Résultat void