C# Class PerformanceMeasuring.GameDebugTools.RemoteDebugCommand

Remote debug component.
This is the game component that supports remote debug command. When you use "remote" command on Windows side, it connect to Xbox 360 game via SystemLink. After you connected to Xbox 360, you can type debug command on Windows side that actually executed on Xbox 360 game. So, you can run debug command without connect a keyboard to the Xbox 360 console. To quit remote debug command more, simply type 'quit' command.
Inheritance: Microsoft.Xna.Framework.GameComponent, IDebugCommandExecutioner, IDebugEchoListner
Datei anzeigen Open project: vchelaru/FlatRedBall

Public Methods

Method Description
ConnectedToRemote ( ) : void

Start remote debug command.

DisconnectedFromRemote ( ) : void

End remote debug command.

Echo ( DebugCommandMessage messageType, string text ) : void
ExecuteCommand ( string command ) : void
Initialize ( ) : void
NetworkSession_SessionEnded ( object sender, Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs e ) : void

Handle the case host machine is gone.

ProcessRecievedPacket ( string packetString ) : bool

Process recieved packet string.

You can call this method if you own network session on the game side.

RemoteDebugCommand ( Microsoft.Xna.Framework.Game game ) : System
SendPacket ( string header, string text ) : void

Send remote debug command packet.

Update ( GameTime gameTime ) : void

Update

Private Methods

Method Description
ExecuteQuitCommand ( IDebugCommandHost host, string command, IList arguments ) : void
ExecuteRemoteCommand ( IDebugCommandHost host, string command, IList arguments ) : void

Method Details

ConnectedToRemote() public method

Start remote debug command.
public ConnectedToRemote ( ) : void
return void

DisconnectedFromRemote() public method

End remote debug command.
public DisconnectedFromRemote ( ) : void
return void

Echo() public method

public Echo ( DebugCommandMessage messageType, string text ) : void
messageType DebugCommandMessage
text string
return void

ExecuteCommand() public method

public ExecuteCommand ( string command ) : void
command string
return void

Initialize() public method

public Initialize ( ) : void
return void

NetworkSession_SessionEnded() public method

Handle the case host machine is gone.
public NetworkSession_SessionEnded ( object sender, Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs e ) : void
sender object
e Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs
return void

ProcessRecievedPacket() public method

Process recieved packet string.
You can call this method if you own network session on the game side.
public ProcessRecievedPacket ( string packetString ) : bool
packetString string
return bool

RemoteDebugCommand() public method

public RemoteDebugCommand ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

SendPacket() public method

Send remote debug command packet.
public SendPacket ( string header, string text ) : void
header string
text string
return void

Update() public method

Update
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void