C# Class MiningGameServer.ServerNetworkManager

显示文件 Open project: geel9/Minor-Destruction Class Usage Examples

Public Properties

Property Type Description
NetServer Lidgren.Network.NetServer
NumNetworkPlayers int

Public Methods

Method Description
HandleClient ( NetworkPlayer player ) : void
HandlePacket ( Packet p, NetworkPlayer player ) : void
Host ( int port ) : bool
SendPacket ( Packet p, NetConnection stream = null, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered ) : void
ServerNetworkManager ( ) : System.Linq
Update ( ) : void

Method Details

HandleClient() public method

public HandleClient ( NetworkPlayer player ) : void
player NetworkPlayer
return void

HandlePacket() public method

public HandlePacket ( Packet p, NetworkPlayer player ) : void
p Packet
player NetworkPlayer
return void

Host() public method

public Host ( int port ) : bool
port int
return bool

SendPacket() public method

public SendPacket ( Packet p, NetConnection stream = null, NetDeliveryMethod method = NetDeliveryMethod.ReliableOrdered ) : void
p Packet
stream Lidgren.Network.NetConnection
method NetDeliveryMethod
return void

ServerNetworkManager() public method

public ServerNetworkManager ( ) : System.Linq
return System.Linq

Update() public method

public Update ( ) : void
return void

Property Details

NetServer public_oe property

public NetServer,Lidgren.Network NetServer
return Lidgren.Network.NetServer

NumNetworkPlayers public_oe property

public int NumNetworkPlayers
return int