7#include "../../third_party/nlohmann/json.hpp"
37 static bool Initialize(
const std::string& filepath);
59 static std::string
GetDomain(
const std::string&
id);
64 static std::string
GetCategory(
const std::string&
id);
79 static bool Reload(
const std::string& filepath);
84 static bool IsValid(
const std::string&
id);
Registry for BT-accessible event types loaded from JSON configuration Mirrors BTNodeRegistry pattern ...
static bool Initialize(const std::string &filepath)
Initialize registry from JSON file with fallback.
static std::map< std::string, size_t > s_eventTypeMap
static std::string GetDisplayName(const std::string &id)
Get display name for event type id.
static std::vector< EventTypeEntry > s_eventTypes
static std::string GetCategory(const std::string &id)
Get category for event type id.
static std::vector< EventTypeEntry > GetEventTypesByCategory(const std::string &category)
Get all event types for a specific category.
static void InitializeDefaults()
Initialize default hardcoded event types (fallback)
static std::vector< std::string > GetAllCategories()
Get all unique categories.
static bool LoadFromJSON(const std::string &filepath)
Load event types from JSON file.
static bool Reload(const std::string &filepath)
Reload registry from file (for live editing)
static bool s_initialized
static const EventTypeEntry * GetEventTypeEntry(const std::string &id)
Get event type entry by id.
static bool IsValid(const std::string &id)
Check if event type is registered.
static const std::vector< EventTypeEntry > & GetAllEventTypes()
Get all registered event types.
static std::string GetDomain(const std::string &id)
Get domain for event type id.
Event type entry from JSON configuration.