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.
- Listed in Global namespace: P
- Inherits or implements IEnumerable<IPlayer>,
IEnumerable - Attributes
TypeConverter - Documented in Arguments and results
Constructors
| Member | What it is |
|---|---|
PlayerList(IEnumerable<IPlayer> range) | Creates a PlayerList from range. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private readonly IEnumerable<IPlayer> players | The players in the list. |
Properties
| Member | What it is |
|---|---|
static IEnumerable<IPlayer> LastList { get; private set; } | The players from the most recently made list. |
Methods
| Member | What 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
Used in
Members of other types that take, return or hold a PlayerList:
SpawnCommandModule.FindPrefabAndSpawn, SpawnCommandModule.For, SpawnCommandModule.SpawnString, SpawnCommandModule.Moulds.DropPackage, SpawnCommandModule.Packages.DropPackage, SpawnCommandModule.Pages.DropPackage, WorldCommandModule.CaveCommandModule.CaveTeleport, WorldCommandModule.ForestCommandModule.Teleport.