C# Class EzGame.MultiPlayer

Afficher le fichier Open project: CodeTreeCommunity/Shooter2D Class Usage Examples

Méthodes publiques

Свойство Type Description
Peers NetPeer>.Dictionary

Méthodes publiques

Méthode Description
Connect ( string Name, string Host, int Port ) : NetPeer
Connect ( string Name, string Host, int Port, Lidgren.Network.NetPeerConfiguration Configuration ) : NetPeer
Construct ( ) : NetOutgoingMessage

Construct an outbound message without any built variables.

Construct ( Enum Packet ) : NetOutgoingMessage

Construct an outbound message with the following packet (byte).

Construct ( string Name ) : NetOutgoingMessage

Construct an outbound message without any built variables.

Construct ( string Name, Enum Packet ) : NetOutgoingMessage

Construct an outbound message with the following packet (byte).

Flush ( string Name ) : void
Initialize ( ) : void
IsNullOrServer ( ) : bool
IsNullOrServer ( string Name ) : bool
Peer ( ) : NetPeer
Peer ( string Name ) : NetPeer
Read ( string Name ) : NetIncomingMessage
ReadBoundingSphere ( this Message ) : BoundingSphere
ReadLine ( this Message ) : Line
ReadMatrix ( this Message ) : Matrix
ReadPoint ( this Message ) : Point
ReadPolygon ( this Message ) : Polygon
ReadQuaternion ( this Message, int Bits ) : Microsoft.Xna.Framework.Quaternion
ReadRectangle ( this Message ) : Rectangle
ReadVector2 ( this Message ) : Vector2
ReadVector3 ( this Message ) : Vector3
ReadVector4 ( this Message ) : Vector4
Send ( NetOutgoingMessage Message, NetConnection Except, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Send ( NetOutgoingMessage Message, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Send ( string Name, NetOutgoingMessage Message, NetConnection Except, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Send ( string Name, NetOutgoingMessage Message, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
SendTo ( NetOutgoingMessage Message, NetConnection To, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
SendTo ( string Name, NetOutgoingMessage Message, NetConnection To, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Shutdown ( string Name, string Reason ) : void
Start ( string Name, Lidgren.Network.NetPeerConfiguration Configuration ) : NetPeer

Start a server on a peer.

Start ( string Name, int Port, int MaximumConnections ) : NetPeer

Start a server on a peer.

Type ( ) : Types?
Type ( string Name ) : Types?
Write ( this Message, BoundingSphere BoundingSphere ) : void
Write ( this Message, Line Variable ) : void
Write ( this Message, Matrix Variable ) : void
Write ( this Message, Point Variable ) : void
Write ( this Message, Polygon Variable ) : void
Write ( this Message, Microsoft.Xna.Framework.Quaternion Quaternion, int Bits ) : void
Write ( this Message, Rectangle Variable ) : void
Write ( this Message, Vector2 Variable ) : void
Write ( this Message, Vector3 Variable ) : void
Write ( this Message, Vector4 Variable ) : void
Write ( this Message, object Variable ) : void

Method Details

Connect() public static méthode

public static Connect ( string Name, string Host, int Port ) : NetPeer
Name string
Host string
Port int
Résultat Lidgren.Network.NetPeer

Connect() public static méthode

public static Connect ( string Name, string Host, int Port, Lidgren.Network.NetPeerConfiguration Configuration ) : NetPeer
Name string
Host string
Port int
Configuration Lidgren.Network.NetPeerConfiguration
Résultat Lidgren.Network.NetPeer

Construct() public static méthode

Construct an outbound message without any built variables.
public static Construct ( ) : NetOutgoingMessage
Résultat Lidgren.Network.NetOutgoingMessage

Construct() public static méthode

Construct an outbound message with the following packet (byte).
public static Construct ( Enum Packet ) : NetOutgoingMessage
Packet System.Enum The packet to send at the start of the message (will be converted to a byte).
Résultat Lidgren.Network.NetOutgoingMessage

Construct() public static méthode

Construct an outbound message without any built variables.
public static Construct ( string Name ) : NetOutgoingMessage
Name string The name of the peer to construct the message from.
Résultat Lidgren.Network.NetOutgoingMessage

Construct() public static méthode

Construct an outbound message with the following packet (byte).
public static Construct ( string Name, Enum Packet ) : NetOutgoingMessage
Name string The name of the peer to construct the message from.
Packet System.Enum The packet to send at the start of the message (will be converted to a byte).
Résultat Lidgren.Network.NetOutgoingMessage

Flush() public static méthode

public static Flush ( string Name ) : void
Name string
Résultat void

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

IsNullOrServer() public static méthode

public static IsNullOrServer ( ) : bool
Résultat bool

IsNullOrServer() public static méthode

public static IsNullOrServer ( string Name ) : bool
Name string
Résultat bool

Peer() public static méthode

public static Peer ( ) : NetPeer
Résultat Lidgren.Network.NetPeer

Peer() public static méthode

public static Peer ( string Name ) : NetPeer
Name string
Résultat Lidgren.Network.NetPeer

Read() public static méthode

public static Read ( string Name ) : NetIncomingMessage
Name string
Résultat Lidgren.Network.NetIncomingMessage

ReadBoundingSphere() public static méthode

public static ReadBoundingSphere ( this Message ) : BoundingSphere
Message this
Résultat BoundingSphere

ReadLine() public static méthode

public static ReadLine ( this Message ) : Line
Message this
Résultat Line

ReadMatrix() public static méthode

public static ReadMatrix ( this Message ) : Matrix
Message this
Résultat Matrix

ReadPoint() public static méthode

public static ReadPoint ( this Message ) : Point
Message this
Résultat Point

ReadPolygon() public static méthode

public static ReadPolygon ( this Message ) : Polygon
Message this
Résultat EzGame.Collision.Polygon

ReadQuaternion() public static méthode

public static ReadQuaternion ( this Message, int Bits ) : Microsoft.Xna.Framework.Quaternion
Message this
Bits int
Résultat Microsoft.Xna.Framework.Quaternion

ReadRectangle() public static méthode

public static ReadRectangle ( this Message ) : Rectangle
Message this
Résultat Microsoft.Xna.Framework.Rectangle

ReadVector2() public static méthode

public static ReadVector2 ( this Message ) : Vector2
Message this
Résultat Vector2

ReadVector3() public static méthode

public static ReadVector3 ( this Message ) : Vector3
Message this
Résultat Vector3

ReadVector4() public static méthode

public static ReadVector4 ( this Message ) : Vector4
Message this
Résultat Vector4

Send() public static méthode

public static Send ( NetOutgoingMessage Message, NetConnection Except, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Message Lidgren.Network.NetOutgoingMessage
Except Lidgren.Network.NetConnection
Method NetDeliveryMethod
Channel int
Résultat void

Send() public static méthode

public static Send ( NetOutgoingMessage Message, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Message Lidgren.Network.NetOutgoingMessage
Method NetDeliveryMethod
Channel int
Résultat void

Send() public static méthode

public static Send ( string Name, NetOutgoingMessage Message, NetConnection Except, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Name string
Message Lidgren.Network.NetOutgoingMessage
Except Lidgren.Network.NetConnection
Method NetDeliveryMethod
Channel int
Résultat void

Send() public static méthode

public static Send ( string Name, NetOutgoingMessage Message, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Name string
Message Lidgren.Network.NetOutgoingMessage
Method NetDeliveryMethod
Channel int
Résultat void

SendTo() public static méthode

public static SendTo ( NetOutgoingMessage Message, NetConnection To, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Message Lidgren.Network.NetOutgoingMessage
To Lidgren.Network.NetConnection
Method NetDeliveryMethod
Channel int
Résultat void

SendTo() public static méthode

public static SendTo ( string Name, NetOutgoingMessage Message, NetConnection To, NetDeliveryMethod Method = NetDeliveryMethod.ReliableOrdered, int Channel ) : void
Name string
Message Lidgren.Network.NetOutgoingMessage
To Lidgren.Network.NetConnection
Method NetDeliveryMethod
Channel int
Résultat void

Shutdown() public static méthode

public static Shutdown ( string Name, string Reason ) : void
Name string
Reason string
Résultat void

Start() public static méthode

Start a server on a peer.
public static Start ( string Name, Lidgren.Network.NetPeerConfiguration Configuration ) : NetPeer
Name string The name of the peer.
Configuration Lidgren.Network.NetPeerConfiguration The configuration for the server.
Résultat Lidgren.Network.NetPeer

Start() public static méthode

Start a server on a peer.
public static Start ( string Name, int Port, int MaximumConnections ) : NetPeer
Name string The name of the peer.
Port int The port of the server.
MaximumConnections int The maximum connections on the server.
Résultat Lidgren.Network.NetPeer

Type() public static méthode

public static Type ( ) : Types?
Résultat Types?

Type() public static méthode

public static Type ( string Name ) : Types?
Name string
Résultat Types?

Write() public static méthode

public static Write ( this Message, BoundingSphere BoundingSphere ) : void
Message this
BoundingSphere BoundingSphere
Résultat void

Write() public static méthode

public static Write ( this Message, Line Variable ) : void
Message this
Variable Line
Résultat void

Write() public static méthode

public static Write ( this Message, Matrix Variable ) : void
Message this
Variable Matrix
Résultat void

Write() public static méthode

public static Write ( this Message, Point Variable ) : void
Message this
Variable Point
Résultat void

Write() public static méthode

public static Write ( this Message, Polygon Variable ) : void
Message this
Variable EzGame.Collision.Polygon
Résultat void

Write() public static méthode

public static Write ( this Message, Microsoft.Xna.Framework.Quaternion Quaternion, int Bits ) : void
Message this
Quaternion Microsoft.Xna.Framework.Quaternion
Bits int
Résultat void

Write() public static méthode

public static Write ( this Message, Rectangle Variable ) : void
Message this
Variable Microsoft.Xna.Framework.Rectangle
Résultat void

Write() public static méthode

public static Write ( this Message, Vector2 Variable ) : void
Message this
Variable Vector2
Résultat void

Write() public static méthode

public static Write ( this Message, Vector3 Variable ) : void
Message this
Variable Vector3
Résultat void

Write() public static méthode

public static Write ( this Message, Vector4 Variable ) : void
Message this
Variable Vector4
Résultat void

Write() public static méthode

public static Write ( this Message, object Variable ) : void
Message this
Variable object
Résultat void

Property Details

Peers public_oe static_oe property

public static Dictionary Peers
Résultat NetPeer>.Dictionary