-
IGameGame- asks event to
Core
- asks event to
-
Core- asks event to
ILibGraph
- asks event to
-
ILibGraph- Sends events
LibGraph- Sends events
-
Core- receives event from
ILibGraph - checks key to change the lib (game /graph)
- sends event back to the
IGame
- receives event from
-
IGameGame- receives event from
Core
- receives event from
Each resource has a type. Each resource has 2 filepath one for the graph and the other for the ascii.
An empty filepath will return true for a call to loadResource.
Resource type
+---> Audio
Type ---|
+---- Image
-
Core:-
stores resource path
core.hppstd::unordered_map<int, Resource> void loadResource(std::unordered_map<int, Resource>& resources);
-
-
ILibGraph:LibGraph:- Store resource with an id
-
IGameGame- when launch, loads resource into the
core
- when launch, loads resource into the