From fb64ca386c51cc3942e1f38cfd76132b1b50e9db Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:48:01 +0200 Subject: 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 Co-authored-by: Leifa <26681464+TrickyLeifa@users.noreply.github.com> --- src/datatypes.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'src/datatypes.h') 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; +}; -- cgit