Skip to main content

PlayerList

A class in Root.Township, the global namespace.

A list of players parsed from a console command argument (names or ids separated by commas, or *). See the arguments guide.

Constructors​

MemberWhat it is
PlayerList(IEnumerable<IPlayer> range)Creates a PlayerList from range.

Fields​

1 private and internal field
MemberWhat it is
private readonly IEnumerable<IPlayer> playersThe players in the list.

Properties​

MemberWhat it is
static IEnumerable<IPlayer> LastList { get; private set; }The players from the most recently made list.

Methods​

MemberWhat it is
string CountOrName()"no one", the one player's name, or "N players", for log messages.
IEnumerator<IPlayer> GetEnumerator()Enumerates the players.
1 private and internal method
MemberWhat it is
private IEnumerator System.Collections.IEnumerable.GetEnumerator()Enumerates the players.

Used in​

Members of other types that take, return or hold a PlayerList: