C# Class fCraft.PlayerEnumerable

Contains a set of utilities that simplify working with sets of players. All the utilities are implemented as extension methods, and it is recommended that you invoke them as extension methods.
Show file Open project: fragmer/fCraft

Public Methods

Method Description
Message ( [ source, [ message ) : int

Broadcasts a message.

Message ( [ source, [ except, [ message ) : int

Broadcasts a message.

MessagePrefixed ( [ source, [ prefix, [ message ) : int

Broadcasts a message, prefixing wrapped lines.

Send ( [ source, Packet packet ) : int

Broadcasts a packet with normal priority.

Send ( [ source, [ except, Packet packet ) : int

Broadcasts a packet with normal priority.

SendLowPriority ( [ source, Packet packet ) : int

Broadcasts a packet with low priority.

SendLowPriority ( [ source, [ except, Packet packet ) : int

Broadcasts a packet with low priority.

Private Methods

Method Description
Can ( [ source, Permission permission ) : IEnumerable
Can ( [ source, Permission permission, [ affectedRank ) : IEnumerable
CanBeSeen ( [ source, [ observer ) : IEnumerable
CanSee ( [ source, [ targetPlayer ) : IEnumerable
Cant ( [ source, Permission permission ) : IEnumerable
Cant ( [ source, Permission permission, [ affectedRank ) : IEnumerable
CantBeSeen ( [ source, [ observer ) : IEnumerable
CantSee ( [ source, [ targetPlayer ) : IEnumerable
Except ( [ source, [ excludedPlayer ) : IEnumerable
FromIP ( [ source, [ ip ) : IEnumerable
IgnoredBy ( [ source, [ ignorer ) : IEnumerable
Ignoring ( [ source, [ player ) : IEnumerable
InWorld ( [ source, [ world ) : IEnumerable
MessageAlt ( [ source, [ message ) : int
MessageWoMAlert ( [ source, [ message ) : int
NotFromIP ( [ source, [ ip ) : IEnumerable
NotIgnoredBy ( [ source, [ ignorer ) : IEnumerable
NotIgnoring ( [ source, [ player ) : IEnumerable
NotInWorld ( [ source, [ world ) : IEnumerable
NotRanked ( [ source, [ rank ) : IEnumerable
NotRanked ( this source, Rank rank ) : IEnumerable
NotSpectating ( [ source, [ player ) : IEnumerable
Ranked ( [ source, [ rank ) : IEnumerable
Ranked ( this source, Rank rank ) : IEnumerable
RankedAbove ( [ source, [ minRank ) : IEnumerable
RankedAbove ( this source, Rank minRank ) : IEnumerable
RankedAtLeast ( [ source, [ minRank ) : IEnumerable
RankedAtLeast ( this source, Rank minRank ) : IEnumerable
RankedAtMost ( [ source, [ maxRank ) : IEnumerable
RankedAtMost ( this source, Rank maxRank ) : IEnumerable
RankedBelow ( [ source, [ maxRank ) : IEnumerable
RankedBelow ( this source, Rank maxRank ) : IEnumerable
Spectating ( [ source, [ player ) : IEnumerable
Union ( [ source, [ includedPlayer ) : IEnumerable

Method Details

Message() public static method

Broadcasts a message.
public static Message ( [ source, [ message ) : int
source [ List of players who will receive the message.
message [ String/message to send.
return int

Message() public static method

Broadcasts a message.
public static Message ( [ source, [ except, [ message ) : int
source [ List of players who will receive the message.
except [ Player to exclude from the recepient list.
message [ String/message to send.
return int

MessagePrefixed() public static method

Broadcasts a message, prefixing wrapped lines.
public static MessagePrefixed ( [ source, [ prefix, [ message ) : int
source [ List of players who will receive the message.
prefix [ Prefix to prepend to prepend to each line after the 1st, /// if any line-wrapping occurs. Does NOT get prepended to first line.
message [ String/message to send.
return int

Send() public static method

Broadcasts a packet with normal priority.
public static Send ( [ source, Packet packet ) : int
source [ List of players who will receive the packet.
packet Packet Packet to send.
return int

Send() public static method

Broadcasts a packet with normal priority.
public static Send ( [ source, [ except, Packet packet ) : int
source [ List of players who will receive the packet.
except [ Player to exclude from the recepient list.
packet Packet Packet to send.
return int

SendLowPriority() public static method

Broadcasts a packet with low priority.
public static SendLowPriority ( [ source, Packet packet ) : int
source [ List of players who will receive the packet.
packet Packet Packet to send.
return int

SendLowPriority() public static method

Broadcasts a packet with low priority.
public static SendLowPriority ( [ source, [ except, Packet packet ) : int
source [ List of players who will receive the packet.
except [ Player to exclude from the recepient list.
packet Packet Packet to send.
return int