Свойство | Тип | Описание | |
---|---|---|---|
session | Microsoft.Xna.Framework.Net.NetworkSession |
Метод | Описание | |
---|---|---|
DrawDebug ( |
||
HostGame ( ) : void | ||
JoinGame ( ) : void |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | ||
Результат | void |
protected GamerJoinedEventHandler ( object sender, Microsoft.Xna.Framework.Net.GamerJoinedEventArgs e ) : void | ||
sender | object | |
e | Microsoft.Xna.Framework.Net.GamerJoinedEventArgs | |
Результат | void |
protected GamerLeftEventHandler ( object sender, Microsoft.Xna.Framework.Net.GamerLeftEventArgs e ) : void | ||
sender | object | |
e | Microsoft.Xna.Framework.Net.GamerLeftEventArgs | |
Результат | void |
protected ReadIncomingPackets ( Microsoft.Xna.Framework.Net.LocalNetworkGamer gamer ) : void | ||
gamer | Microsoft.Xna.Framework.Net.LocalNetworkGamer | |
Результат | void |
protected SessionEndedEventHandler ( object sender, Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs e ) : void | ||
sender | object | |
e | Microsoft.Xna.Framework.Net.NetworkSessionEndedEventArgs | |
Результат | void |