You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
398 B
15 lines
398 B
10 months ago
|
public partial class Players : Node
|
||
|
, IReadOnlyCollection<Player>
|
||
|
{
|
||
|
public int Count
|
||
|
=> GetChildCount();
|
||
|
|
||
|
public Player ByPeerId(int peerId)
|
||
|
=> this.GetNodeOrThrow<Player>(peerId.ToString());
|
||
|
|
||
|
public IEnumerator<Player> GetEnumerator()
|
||
|
=> GetChildren().Cast<Player>().GetEnumerator();
|
||
|
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
|
||
|
=> GetEnumerator();
|
||
|
}
|