Files
DarkflameServer/dDashboardServer/routes/ChallengeRoutes.h
Aaron Kimbrell 2d1ef0e370 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>
2026-09-27 09:33:10 -05:00

20 lines
765 B
C++

#pragma once
#include "json.hpp"
/**
* Server-wide community challenges (Challenges page): reach a target of a player statistic (StatisticID) or map event
* (IEconomyLedger::eMapEvent) together between two times. World servers count each character's part where the game
* records it (LiveEvents.h in dGame); the dashboard adds them up, announces milestones in game, and when the target is
* reached mails the rewards to every character that contributed enough (coins wait for them in game: /challenge).
*/
namespace ChallengeRoutes {
void RegisterRoutes();
// Main loop: milestones, completion and rewards, expiry
void Update();
// Public challenges for the status page: running ones and those finished in the last week
nlohmann::json PublicJson();
}