A JsonFile provides an interface for easily using JSON files.
More...
#include <JsonFile.h>
Inherits Fling::Resource.
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. |
◆ GetJsonData()
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 |
( |
| ) |
|
|
private |
Loads the JsonFile based on Guid path.
- Note
- All Guid paths are relative to the assets directory.
◆ m_JsonData
json Fling::JsonFile::m_JsonData |
|
private |
The documentation for this class was generated from the following files: