diff options
| author | Salanto <62221668+Salanto@users.noreply.github.com> | 2024-07-12 11:48:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-12 11:48:01 +0200 |
| commit | fb64ca386c51cc3942e1f38cfd76132b1b50e9db (patch) | |
| tree | f805cd22b191a028312e7f546b571fb35488fa50 /src/datatypes.h | |
| parent | c745d0a1b78732550ae790fee12bd23b71a4f25e (diff) | |
Add playerlist widget element (#996)
* Commit
* Boyfailure code commit
* Cooking code spaghetti
* Accidental overwrite recursive function call hell
* Implemented player list
* Add partial moderator widget
Sleepy time! Hee-Hoo!
* Moderator Dialog - Step 1 - WIP
* Appease the clang gods
* Clang appeasement policy
* *sacrifices goat to clang*
* Added player report, reworked implementation, ...
* Added player-specific report
* Reworked implementation
* No longer uses JSON.
* Removed preset loader.
---------
Co-authored-by: TrickyLeifa <date.epoch@gmail.com>
Co-authored-by: Leifa <26681464+TrickyLeifa@users.noreply.github.com>
Diffstat (limited to 'src/datatypes.h')
| -rw-r--r-- | src/datatypes.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/datatypes.h b/src/datatypes.h index b87744ca..30b384e8 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -98,3 +98,42 @@ enum MUSIC_EFFECT FADE_OUT = 2, SYNC_POS = 4 }; + +class PlayerData +{ +public: + int id = -1; + QString name; + QString character; + QString character_name; + int area_id = 0; +}; + +class PlayerRegister +{ +public: + enum REGISTER_TYPE + { + ADD_PLAYER, + REMOVE_PLAYER, + }; + + int id; + REGISTER_TYPE type; +}; + +class PlayerUpdate +{ +public: + enum DATA_TYPE + { + NAME, + CHARACTER, + CHARACTER_NAME, + AREA_ID, + }; + + int id; + DATA_TYPE type; + QString data; +}; |
