Inventory management focused game written in Godot / C#
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.
|
|
|
public partial class Players : Node
|
|
|
|
, IReadOnlyCollection<Player>
|
|
|
|
{
|
|
|
|
public Player ByPeerId(int peerId)
|
|
|
|
=> this.GetNodeOrThrow<Player>(peerId.ToString());
|
|
|
|
|
|
|
|
// IReadOnlyCollection implementation
|
|
|
|
|
|
|
|
public int Count
|
|
|
|
=> GetChildCount();
|
|
|
|
public IEnumerator<Player> GetEnumerator()
|
|
|
|
=> GetChildren().Cast<Player>().GetEnumerator();
|
|
|
|
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
|
|
|
|
=> GetEnumerator();
|
|
|
|
}
|