C# Class EzGame.MultiPlayer

Exibir arquivo Open project: CodeTreeCommunity/Shooter2D Class Usage Examples

Public Properties

Property Type Description
Peers NetPeer>.Dictionary

Public Methods

Method 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 method

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

Connect() public static method

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

Construct() public static method

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

Construct() public static method

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).
return Lidgren.Network.NetOutgoingMessage

Construct() public static method

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.
return Lidgren.Network.NetOutgoingMessage

Construct() public static method

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).
return Lidgren.Network.NetOutgoingMessage

Flush() public static method

public static Flush ( string Name ) : void
Name string
return void

Initialize() public static method

public static Initialize ( ) : void
return void

IsNullOrServer() public static method

public static IsNullOrServer ( ) : bool
return bool

IsNullOrServer() public static method

public static IsNullOrServer ( string Name ) : bool
Name string
return bool

Peer() public static method

public static Peer ( ) : NetPeer
return Lidgren.Network.NetPeer

Peer() public static method

public static Peer ( string Name ) : NetPeer
Name string
return Lidgren.Network.NetPeer

Read() public static method

public static Read ( string Name ) : NetIncomingMessage
Name string
return Lidgren.Network.NetIncomingMessage

ReadBoundingSphere() public static method

public static ReadBoundingSphere ( this Message ) : BoundingSphere
Message this
return BoundingSphere

ReadLine() public static method

public static ReadLine ( this Message ) : Line
Message this
return Line

ReadMatrix() public static method

public static ReadMatrix ( this Message ) : Matrix
Message this
return Matrix

ReadPoint() public static method

public static ReadPoint ( this Message ) : Point
Message this
return Point

ReadPolygon() public static method

public static ReadPolygon ( this Message ) : Polygon
Message this
return EzGame.Collision.Polygon

ReadQuaternion() public static method

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

ReadRectangle() public static method

public static ReadRectangle ( this Message ) : Rectangle
Message this
return Microsoft.Xna.Framework.Rectangle

ReadVector2() public static method

public static ReadVector2 ( this Message ) : Vector2
Message this
return Vector2

ReadVector3() public static method

public static ReadVector3 ( this Message ) : Vector3
Message this
return Vector3

ReadVector4() public static method

public static ReadVector4 ( this Message ) : Vector4
Message this
return Vector4

Send() public static method

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
return void

Send() public static method

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

Send() public static method

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
return void

Send() public static method

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

SendTo() public static method

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
return void

SendTo() public static method

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
return void

Shutdown() public static method

public static Shutdown ( string Name, string Reason ) : void
Name string
Reason string
return void

Start() public static method

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.
return Lidgren.Network.NetPeer

Start() public static method

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.
return Lidgren.Network.NetPeer

Type() public static method

public static Type ( ) : Types?
return Types?

Type() public static method

public static Type ( string Name ) : Types?
Name string
return Types?

Write() public static method

public static Write ( this Message, BoundingSphere BoundingSphere ) : void
Message this
BoundingSphere BoundingSphere
return void

Write() public static method

public static Write ( this Message, Line Variable ) : void
Message this
Variable Line
return void

Write() public static method

public static Write ( this Message, Matrix Variable ) : void
Message this
Variable Matrix
return void

Write() public static method

public static Write ( this Message, Point Variable ) : void
Message this
Variable Point
return void

Write() public static method

public static Write ( this Message, Polygon Variable ) : void
Message this
Variable EzGame.Collision.Polygon
return void

Write() public static method

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

Write() public static method

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

Write() public static method

public static Write ( this Message, Vector2 Variable ) : void
Message this
Variable Vector2
return void

Write() public static method

public static Write ( this Message, Vector3 Variable ) : void
Message this
Variable Vector3
return void

Write() public static method

public static Write ( this Message, Vector4 Variable ) : void
Message this
Variable Vector4
return void

Write() public static method

public static Write ( this Message, object Variable ) : void
Message this
Variable object
return void

Property Details

Peers public_oe static_oe property

public static Dictionary Peers
return NetPeer>.Dictionary