9 #include <nlohmann/json.hpp> 20 static std::shared_ptr<Fling::JsonFile>
Create(
Guid t_ID);
nlohmann::json m_JsonData
Definition: JsonFile.h:44
Base class that represents a loaded resource in the engine.
Definition: Resource.h:11
void LoadJsonFile()
Loads the JsonFile based on Guid path.
Definition: JsonFile.cpp:36
void Write()
Write the contents of this JSON file out to given name.
Definition: JsonFile.cpp:18
virtual ~JsonFile()=default
entt::hashed_string Guid
Definition: FlingTypes.h:26
A JsonFile provides an interface for easily using JSON files.
Definition: JsonFile.h:16
JsonFile(Guid t_ID)
Construct a new JsonFile object.
Definition: JsonFile.cpp:12
static std::shared_ptr< Fling::JsonFile > Create(Guid t_ID)
Definition: JsonFile.cpp:7
FORCEINLINE nlohmann::json & GetJsonData()
Get a reference to the current JSON data that is loaded from this file.
Definition: JsonFile.h:35