A JsonFile provides an interface for easily using JSON files.
More...
#include <JsonFile.h>
Inherits Fling::Resource.
Inherited by Fling::Material.
A JsonFile provides an interface for easily using JSON files.
◆ JsonFile()
| Fling::JsonFile::JsonFile |
( |
Guid |
t_ID | ) |
|
|
explicit |
Construct a new JsonFile object.
- Parameters
-
| t_ID | The GUID that represents the file path to this JsonFile. |
◆ ~JsonFile()
| virtual Fling::JsonFile::~JsonFile |
( |
| ) |
|
|
virtualdefault |
◆ Create()
◆ GetJsonData()
| FORCEINLINE nlohmann::json& Fling::JsonFile::GetJsonData |
( |
| ) |
|
|
inline |
Get a reference to the current JSON data that is loaded from this file.
- Returns
- Reference to the current json data
◆ LoadJsonFile()
| void Fling::JsonFile::LoadJsonFile |
( |
| ) |
|
|
protected |
Loads the JsonFile based on Guid path.
- Note
- All Guid paths are relative to the assets directory.
◆ Write()
| void Fling::JsonFile::Write |
( |
| ) |
|
Write the contents of this JSON file out to given name.
◆ m_JsonData
| nlohmann::json Fling::JsonFile::m_JsonData |
|
protected |
The documentation for this class was generated from the following files: