Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations
AsyncJSONLoader.h File Reference

Asynchronous JSON file loader (Phase 7). More...

#include <string>
#include <future>
#include "../../third_party/nlohmann/json.hpp"
+ Include dependency graph for AsyncJSONLoader.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::AsyncJSONLoader
 Loads and parses a JSON file on a background thread. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Enumerations

enum class  Olympe::AsyncLoadState { Olympe::Idle , Olympe::Loading , Olympe::Ready , Olympe::Failed }
 Lifecycle state of an AsyncJSONLoader. More...
 

Detailed Description

Asynchronous JSON file loader (Phase 7).

Author
Olympe Engine
Date
2026-03-10

AsyncJSONLoader launches a background thread (via std::future) to parse a JSON file without blocking the editor UI thread. Poll IsReady() / HasFailed() each frame; when ready, call GetResult() to obtain the parsed JSON object.

C++14 compliant — no std::optional, structured bindings, std::filesystem.

Definition in file AsyncJSONLoader.h.