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

@@ -56,10 +56,16 @@ public:
protected:
void RegisterMsg(const MessageType::Game msgId, auto* self, const auto handler) {
inline void RegisterMsg(const MessageType::Game msgId, auto* self, const auto handler) {
m_Parent->RegisterMsg(msgId, std::bind(handler, self, std::placeholders::_1));
}
template<typename T>
inline void RegisterMsg(auto* self, const auto handler) {
T msg;
RegisterMsg(msg.msgId, self, handler);
}
/**
* The entity that owns this component
*/