FAForever / FAForever/server

Redesign party commands

Offen
#600 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
72
Forks
84
Ø Merge
5 Std. 11 Min.
Gemergte PRs (30 T.)
1

Beschreibung

It may be better to send party commands using a single command with many subcommands than our current implementation of having a separate command for every action.

We could go with a "polymorphic" approach:
```
{
"command": "party",
"action": "invite",
"recipient_id":
}
```

Or more of a "compositional" approach:
```
{
"command": "party",
"action": "invite",
"data": {
"recipient_id":
}
}
```

The compositional approach has a little more boilerplate built into the message, but it feels cleaner to me.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.