Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions.

Team๐Ÿ”—

Inherits: RefCounted

This class defines a Team.

Properties๐Ÿ”—

String

name

Dictionary

players

{}

int

_iter_cursor

0

Methoden๐Ÿ”—

void

_init(team_name: String, team_players: Dictionary = {})

bool

_iter_init(_arg: Variant)

bool

_iter_next(_arg: Variant)

int

_iter_get(_arg: Variant)

void

add(peer_id: int, username: String = "")

bool

erase(peer_id: int)

String

pop(peer_id: int)

int

size()

Variant

serialize()

String

_to_string()


Signals๐Ÿ”—

renamed(team_name: String) ๐Ÿ”—

Emitted when the Team is renamed.


player_added(team_name: String, peer_id: int, username: String) ๐Ÿ”—

Emitted when a peer_id is added to the Team.


player_erased(team_name: String, peer_id: int) ๐Ÿ”—

Emitted when a peer_id is erased from the Team.


Eigenschaftsbeschreibungen๐Ÿ”—

String name ๐Ÿ”—

  • void @name_setter(value: String)

There is currently no description for this property. Please help us by contributing one!


Dictionary players = {} ๐Ÿ”—

There is currently no description for this property. Please help us by contributing one!


int _iter_cursor = 0 ๐Ÿ”—

There is currently no description for this property. Please help us by contributing one!


Methodenbeschreibungen๐Ÿ”—

void _init(team_name: String, team_players: Dictionary = {}) ๐Ÿ”—

Constructor.


bool _iter_init(_arg: Variant) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


bool _iter_next(_arg: Variant) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


int _iter_get(_arg: Variant) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


void add(peer_id: int, username: String = "") ๐Ÿ”—

Add peer_id to the Team if not already present.


bool erase(peer_id: int) ๐Ÿ”—

Erase peer_id from the Team.


String pop(peer_id: int) ๐Ÿ”—

This method pops out the related peer_id string.


int size() ๐Ÿ”—

Returns the size of the team.


Variant serialize() ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


String _to_string() ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!