mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-27 06:57:15 +00:00
feat: web dashboard and playground work
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch: accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes they need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
26
dGame/dUtilities/DashboardActions.h
Normal file
26
dGame/dUtilities/DashboardActions.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __DASHBOARDACTIONS__H__
|
||||
#define __DASHBOARDACTIONS__H__
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
|
||||
#include "RakNetTypes.h"
|
||||
|
||||
struct PlayerActionRequest;
|
||||
|
||||
/**
|
||||
* Applies web dashboard moderation actions to players connected to this world server,
|
||||
* so bans, restrictions and rescues take effect immediately instead of on next login.
|
||||
*/
|
||||
namespace DashboardActions {
|
||||
// Apply the action to this world's players. Returns how many sessions or characters it applied to.
|
||||
uint32_t Apply(const PlayerActionRequest& request);
|
||||
|
||||
/**
|
||||
* Set how the world saves and removes a user. Kicks run it before closing the connection so the
|
||||
* character is saved by the time the dashboard hears back, and nothing is saved after that.
|
||||
*/
|
||||
void SetLogoutHandler(std::function<void(const SystemAddress&)> handler);
|
||||
}
|
||||
|
||||
#endif //!__DASHBOARDACTIONS__H__
|
||||
Reference in New Issue
Block a user