feat: Destroyable component debug info (#1849)

tested that the ui now shows server and client info together if configured to do so
This commit is contained in:
David Markowitz
2025-07-23 02:08:39 -07:00
committed by GitHub
parent ba964932b7
commit 24f4c9d413
5 changed files with 74 additions and 5 deletions

View File

@@ -9,6 +9,10 @@
#include "eReplicaComponentType.h"
#include "Implementation.h"
namespace GameMessages {
struct GetObjectReportInfo;
};
namespace CppScripts {
class Script;
}; //! namespace CppScripts
@@ -464,6 +468,8 @@ public:
// handle hardcode mode drops
void DoHardcoreModeDrops(const LWOOBJID source);
bool OnGetObjectReportInfo(GameMessages::GameMsg& msg);
static Implementation<bool, const Entity*> IsEnemyImplentation;
static Implementation<bool, const Entity*> IsFriendImplentation;
@@ -591,7 +597,7 @@ private:
/**
* The ID of the entity that smashed this entity, if any
*/
LWOOBJID m_KillerID;
LWOOBJID m_KillerID{};
/**
* The list of callbacks that will be called when this entity gets hit