Class PacketExtensions
Inherited Members
Namespace: SlipeServer.Server.Extensions
Assembly: SlipeServer.Server.dll
Syntax
public static class PacketExtensions
  Methods
| Edit this page View SourceSendTo(Packet, IClient)
Sends a packet to a specific client
Declaration
public static void SendTo(this Packet packet, IClient client)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Packet | packet | |
| IClient | client | 
SendTo(Packet, Player)
Sends a packet to a specific player
Declaration
public static void SendTo(this Packet packet, Player player)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Packet | packet | |
| Player | player | 
SendTo(Packet, IEnumerable<IClient>)
Sends a packet to specific clients. This is more optimised than looping through a packet and calling SendTo on individual clients
Declaration
public static void SendTo(this Packet packet, IEnumerable<IClient> clients)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Packet | packet | |
| IEnumerable<IClient> | clients | 
SendTo(Packet, IEnumerable<Player>)
Sends a packet to specific players. This is more optimised than looping through a packet and calling SendTo on individual players
Declaration
public static void SendTo(this Packet packet, IEnumerable<Player> players)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Packet | packet | |
| IEnumerable<Player> | players |