mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 23:08:31 +00:00
feat: activity component debug stuff and fix issues with duplicates in debug ui (#1850)
Tested that duplicate data in ui is no longer hidden and that activity debug stuff is shown
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
|
||||
#include "CDActivitiesTable.h"
|
||||
|
||||
namespace GameMessages {
|
||||
class GameMsg;
|
||||
};
|
||||
|
||||
/**
|
||||
* Represents an instance of an activity, having participants and score
|
||||
*/
|
||||
@@ -60,6 +64,10 @@ public:
|
||||
* Currently unused
|
||||
*/
|
||||
void SetScore(uint32_t score);
|
||||
|
||||
[[nodiscard]] uint32_t GetNextZoneCloneID() const noexcept { return m_NextZoneCloneID; }
|
||||
|
||||
const CDActivities& GetActivityInfo() const noexcept { return m_ActivityInfo; }
|
||||
private:
|
||||
|
||||
/**
|
||||
@@ -75,12 +83,12 @@ private:
|
||||
/**
|
||||
* The database information for this activity
|
||||
*/
|
||||
CDActivities m_ActivityInfo;
|
||||
CDActivities m_ActivityInfo{};
|
||||
|
||||
/**
|
||||
* The entity that owns this activity (the entity that has the ScriptedActivityComponent)
|
||||
*/
|
||||
Entity* m_Parent;
|
||||
Entity* m_Parent{};
|
||||
|
||||
/**
|
||||
* All the participants of this activity
|
||||
@@ -341,6 +349,7 @@ public:
|
||||
uint32_t GetLootMatrixForTeamSize(uint32_t teamSize) { return m_ActivityLootMatrices[teamSize]; }
|
||||
private:
|
||||
|
||||
bool OnGetObjectReportInfo(GameMessages::GameMsg& msg);
|
||||
/**
|
||||
* The database information for this activity
|
||||
*/
|
||||
|
Reference in New Issue
Block a user