Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier grouping of players in PlayerList and Player #138

Open
shakty opened this issue Apr 14, 2020 · 0 comments
Open

Easier grouping of players in PlayerList and Player #138

shakty opened this issue Apr 14, 2020 · 0 comments

Comments

@shakty
Copy link
Member

shakty commented Apr 14, 2020

Extend API to include methods like:

setGroup('GROUP_A', [ player1, player2, ...]); // second param should work with ids also
getPartners(player, [ group1, ...]); // returns the id of 
getOtherPlayers(player)
getGroups(); // list of groups
getGroupMembers('GROUP_A');  // returns list of ids (or player objects).

The methods should be applicable to the playerlist as well as to the player objects themeselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant