Method | Description | |
---|---|---|
Active ( |
Creates instance of Active client state.
|
|
DataReceived ( NetCommand command, |
Called when data arrived. It could snapshot or notification.
|
|
StatusChanged ( NetConnectionStatus status, string message, |
Called when NetClient changed its status
|
|
Update ( |
Called on each client frame
|
|
UserConnect ( string host, int port ) : void |
Handles user request for connection.
|
|
UserDisconnect ( string reason ) : void |
Handles user request for disconnection.
|
Method | Description | |
---|---|---|
FeedSnapshot ( byte snapshot, uint ackCmdID, uint snapshotId, long svTicks, long svFrame ) : void |
|
public Active ( |
||
gameClient | ||
snapshotId | uint | |
initialSnapshot | byte | |
svTicks | long | |
return | System |
public DataReceived ( NetCommand command, |
||
command | NetCommand | |
msg | ||
return | void |
public StatusChanged ( NetConnectionStatus status, string message, |
||
status | NetConnectionStatus | |
message | string | |
connection | ||
return | void |
public Update ( |
||
gameTime | ||
return | void |
public UserConnect ( string host, int port ) : void | ||
host | string | |
port | int | |
return | void |
public UserDisconnect ( string reason ) : void | ||
reason | string | |
return | void |