Property | Type | Description | |
---|---|---|---|
session | Microsoft.Xna.Framework.Net.NetworkSession |
Method | Description | |
---|---|---|
DrawDebug ( |
||
HostGame ( ) : void | ||
JoinGame ( ) : void |
Method | Description | |
---|---|---|
CreateSession ( ) : void |
Starts hosting a new network session.
|
|
GamerJoinedEventHandler ( object sender, Microsoft.Xna.Framework.Net.GamerJoinedEventArgs e ) : void |
This event handler will be called whenever a new gamer joins the session.
|
|
GamerLeftEventHandler ( object sender, Microsoft.Xna.Framework.Net.GamerLeftEventArgs e ) : void | ||
HookSessionEvents ( ) : void |
After creating or joining a network session, we must subscribe to some events so we will be notified when the session changes state.
|
|
JoinSession ( ) : void |
Joins an existing network session.
|
|
ReadIncomingPackets ( Microsoft.Xna.Framework.Net.LocalNetworkGamer gamer ) : void |
Helper for reading incoming network packets.
|
|
SessionEndedEventHandler ( object sender, Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs e ) : void |
Event handler notifies us when the network session has ended.
|
|
Updatesession ( ) : void |
Updates the state of the network session.
|
Method | Description | |
---|---|---|
BroadCastPlayerShipData ( Microsoft.Xna.Framework.Net.LocalNetworkGamer server ) : void | ||
ReadPlayerShipData ( Microsoft.Xna.Framework.Net.LocalNetworkGamer gamer ) : void | ||
SendPlayerShipData ( Microsoft.Xna.Framework.Net.LocalNetworkGamer gamer ) : void |
public DrawDebug ( |
||
spriteBatch | ||
font | ||
return | void |
protected GamerJoinedEventHandler ( object sender, Microsoft.Xna.Framework.Net.GamerJoinedEventArgs e ) : void | ||
sender | object | |
e | Microsoft.Xna.Framework.Net.GamerJoinedEventArgs | |
return | void |
protected GamerLeftEventHandler ( object sender, Microsoft.Xna.Framework.Net.GamerLeftEventArgs e ) : void | ||
sender | object | |
e | Microsoft.Xna.Framework.Net.GamerLeftEventArgs | |
return | void |
protected ReadIncomingPackets ( Microsoft.Xna.Framework.Net.LocalNetworkGamer gamer ) : void | ||
gamer | Microsoft.Xna.Framework.Net.LocalNetworkGamer | |
return | void |
protected SessionEndedEventHandler ( object sender, Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs e ) : void | ||
sender | object | |
e | Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs | |
return | void |