feat(reaclib): reworked how I store reactions to avoid stack overflows
This commit is contained in:
@@ -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
|
||||
181934
src/network/include/gridfire/reaction/reactions_data.h
Normal file
181934
src/network/include/gridfire/reaction/reactions_data.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user