hecl
High-Level Extensible Combiner Language and Resource Database
|
HLPK Runtime data-management root. More...
#include <HECLRuntime.hpp>
Classes | |
struct | SGroupLoadStatus |
Structure indicating the load status of an object group. More... | |
Public Member Functions | |
Runtime (const SystemString &hlpkDirectory) | |
Constructs the HECL runtime root. More... | |
std::shared_ptr< Entity > | loadSync (const Hash &pathHash) |
Begin a synchronous group-load transaction. More... | |
std::shared_ptr< Entity > | loadAsync (const Hash &pathHash, SGroupLoadStatus *statusOut=NULL) |
Begin an asynchronous group-load transaction. More... | |
HLPK Runtime data-management root.
Interface for controlling runtime data-operations like object lookup and burst load-transactions using HLPK packages. The runtime's implementation automatically constructs RuntimeObjectBase and RuntimeGroup instances as needed.
HECL::Runtime::Runtime::Runtime | ( | const SystemString & | hlpkDirectory | ) |
Constructs the HECL runtime root.
hlpkDirectory | directory to search for .hlpk files |
std::shared_ptr<Entity> HECL::Runtime::Runtime::loadAsync | ( | const Hash & | pathHash, |
SGroupLoadStatus * | statusOut = NULL |
||
) |
Begin an asynchronous group-load transaction.
pathHash | Hashed path string to perform lookup |
statusOut | Optional atomically-pollable structure updated with status fields |
This method returns once all group entity stubs are constructed. Paths to groups or individual objects are accepted.
Begin a synchronous group-load transaction.
pathHash | Hashed path string to perform lookup |
This method blocks until the entire containing-group is loaded. Paths to groups or individual objects are accepted.