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🔗

Hérite: RefCounted

This class defines a Team.

Propriétés🔗

String

name

Dictionary

players

{}

int

_iter_cursor

0

Méthodes🔗

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()


Signaux🔗

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.


Descriptions de propriété🔗

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!


Descriptions de méthode🔗

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!