Adding new context with world & config_json
This commit is contained in:
24
includes/context.hpp
Normal file
24
includes/context.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* File name: context.hpp
|
||||
* Author: lejulien
|
||||
* Date created: 01-01-1970 00:59:59
|
||||
// Date modified: 10-01-2026 22:24:41
|
||||
* ------
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <world.hpp>
|
||||
|
||||
namespace gol {
|
||||
|
||||
typedef struct ctx {
|
||||
std::shared_ptr<World> world = nullptr;
|
||||
nlohmann::json config_json;
|
||||
} ctx;
|
||||
|
||||
} // namespace gol
|
||||
Reference in New Issue
Block a user