RapidGameFramework
Reusable Godot managers for data-driven small games
Loading...
Searching...
No Matches
data_cache_manager.gd File Reference

Small cache for parsed JSON data used by runtime systems and game scenes. More...

Go to the source code of this file.

Namespaces

namespace  data_cache_manager
 

Variables

 data_cache_manager.Dictionary
 
 data_cache_manager.int
 
 data_cache_manager.parsed
 Return a duplicated parsed JSON dictionary, or an empty dictionary on failure.
 
 data_cache_manager.Array
 Return one top-level array from a cached JSON dictionary.
 
 data_cache_manager.data
 
int data_cache_manager.cache_hits = 0
 Forget one path so it is reparsed on next load.
 
int data_cache_manager.cache_misses = 0
 

Detailed Description

Small cache for parsed JSON data used by runtime systems and game scenes.

Use this for stable data files that are read often or shared between screens. Editor tools can call clear() or invalidate(path) after saving JSON.

Definition in file data_cache_manager.gd.