C# Class Fusion.Engine.Client.GameClient.Active

Inheritance: State
Afficher le fichier Open project: demiurghg/FusionEngine

Méthodes publiques

Méthode Description
Active ( GameClient gameClient, uint snapshotId, byte initialSnapshot, long svTicks ) : System

Creates instance of Active client state.

DataReceived ( NetCommand command, NetIncomingMessage msg ) : void

Called when data arrived. It could snapshot or notification.

StatusChanged ( NetConnectionStatus status, string message, NetConnection connection ) : void

Called when NetClient changed its status

Update ( GameTime gameTime ) : void

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.

Private Methods

Méthode Description
FeedSnapshot ( byte snapshot, uint ackCmdID, uint snapshotId, long svTicks, long svFrame ) : void

Method Details

Active() public méthode

Creates instance of Active client state.
public Active ( GameClient gameClient, uint snapshotId, byte initialSnapshot, long svTicks ) : System
gameClient GameClient
snapshotId uint
initialSnapshot byte
svTicks long
Résultat System

DataReceived() public méthode

Called when data arrived. It could snapshot or notification.
public DataReceived ( NetCommand command, NetIncomingMessage msg ) : void
command NetCommand
msg Lidgren.Network.NetIncomingMessage
Résultat void

StatusChanged() public méthode

Called when NetClient changed its status
public StatusChanged ( NetConnectionStatus status, string message, NetConnection connection ) : void
status NetConnectionStatus
message string
connection Lidgren.Network.NetConnection
Résultat void

Update() public méthode

Called on each client frame
public Update ( GameTime gameTime ) : void
gameTime Fusion.Engine.Common.GameTime
Résultat void

UserConnect() public méthode

Handles user request for connection.
public UserConnect ( string host, int port ) : void
host string
port int
Résultat void

UserDisconnect() public méthode

Handles user request for disconnection.
public UserDisconnect ( string reason ) : void
reason string
Résultat void