mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +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:
@@ -17,6 +17,7 @@
|
||||
#include "eGameMasterLevel.h"
|
||||
#include "eGameActivity.h"
|
||||
#include "User.h"
|
||||
#include "EconomyLedger.h"
|
||||
#include "Database.h"
|
||||
#include "CDRewardCodesTable.h"
|
||||
#include "Mail.h"
|
||||
@@ -585,9 +586,9 @@ void CharacterComponent::TrackQuickBuildComplete() {
|
||||
}
|
||||
|
||||
void CharacterComponent::TrackRaceCompleted(bool won) {
|
||||
m_RacesFinished++;
|
||||
UpdatePlayerStatistic(RacesFinished);
|
||||
if (won)
|
||||
m_FirstPlaceRaceFinishes++;
|
||||
UpdatePlayerStatistic(FirstPlaceRaceFinishes);
|
||||
}
|
||||
|
||||
void CharacterComponent::TrackPositionUpdate(const NiPoint3& newPosition) {
|
||||
@@ -615,7 +616,9 @@ void CharacterComponent::HandleZoneStatisticsUpdate(LWOMAPID zoneID, const std::
|
||||
}
|
||||
}
|
||||
|
||||
void CharacterComponent::UpdatePlayerStatistic(StatisticID updateID, uint64_t updateValue) {
|
||||
void CharacterComponent::UpdatePlayerStatistic(StatisticID updateID, uint64_t updateValue, bool fromClient) {
|
||||
if (!fromClient) EconomyLedger::RecordStat(m_Parent, updateID, updateValue);
|
||||
|
||||
switch (updateID) {
|
||||
case CurrencyCollected:
|
||||
m_CurrencyCollected += updateValue;
|
||||
@@ -945,3 +948,8 @@ void CharacterComponent::LoadVisitedLevelsXml(const tinyxml2::XMLElement& vl) {
|
||||
}
|
||||
// </vl>
|
||||
}
|
||||
|
||||
void CharacterComponent::SetUScore(int64_t uscore, uint32_t source) {
|
||||
if (const auto* character = m_Parent->GetCharacter()) EconomyLedger::RecordUScore(character->GetID(), uscore - m_Uscore, source);
|
||||
m_Uscore = uscore;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user