feat(reaclib): reworked how I store reactions to avoid stack overflows

This commit is contained in:
2025-06-29 14:53:09 -04:00
parent 3c38187d3f
commit 2a410dc3fd
14 changed files with 182372 additions and 78781 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include "gridfire/reaction/reaction.h"
namespace gridfire::reaclib {
static bool s_initialized = false;
/**
* @brief Provides global access to the fully initialized REACLIB reaction set.
*
* This function uses a singleton pattern to ensure the reaction data is loaded
* from the embedded binary only once, the very first time it is requested.
*
* @return A constant reference to the application-wide reaction set.
*/
const reaction::LogicalReactionSet& get_all_reactions();
} // namespace gridfire::reaclib

File diff suppressed because it is too large Load Diff