Apply profiles server-side rather than client-side, signal active profile update, forward loaded profile to local client for plugins

This commit is contained in:
Adam Honse
2026-02-03 11:36:29 -06:00
parent 6c26858823
commit 660ff71bf7
7 changed files with 456 additions and 103 deletions

View File

@@ -106,6 +106,12 @@ enum
NET_PACKET_ID_PROFILEMANAGER_UPLOAD_PROFILE = 154, /* Upload a profile to the server in JSON format */
NET_PACKET_ID_PROFILEMANAGER_DOWNLOAD_PROFILE = 155, /* Download a profile from the server in JSON format*/
NET_PACKET_ID_PROFILEMANAGER_GET_ACTIVE_PROFILE = 156, /* Get the active profile name */
NET_PACKET_ID_PROFILEMANAGER_ACTIVE_PROFILE_CHANGED
= 157, /* Indicate to clients active profile has changed */
NET_PACKET_ID_PROFILEMANAGER_PROFILE_LOADED = 158, /* Notify to active client that profile has loaded */
/* Forwards loaded profile data */
NET_PACKET_ID_PROFILEMANAGER_PROFILE_ABOUT_TO_LOAD
= 159, /* Indicate to clients profile about to load */
/*----------------------------------------------------------------------------------------------------------*\
| PluginManager functions |