C# Class HappyFunTimes.RealNetPlayer

This object represent the connections between a player's phone and this game.
Inheritance: NetPlayer
ファイルを表示 Open project: greggman/hft-unity-gamepad Class Usage Examples

Public Methods

Method 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

Method Description
SendLowLevelCmd ( string cmd, MessageCmdData data ) : void
SendLowLevelCmd ( string cmd, string subCmd, object data ) : void

Method Details

GetSessionId() public method

public GetSessionId ( ) : string
return string

RealNetPlayer() public method

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

SendCmd() public method

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
return void

SendCmd() public method

public SendCmd ( string cmd, object data ) : void
cmd string
data object
return void

SwitchGame() public method

public SwitchGame ( string gameId, object data ) : void
gameId string
data object
return void