6 #include "MemoryBuffer.h"
29 SMARTENGINE_ENUM_STRING(
AssetType,
"JsonString",
"Binary");
42 typedef int (SMARTENGINE_CALLBACK *CAssetStoreHandler)(
const char* assetName,
int assetType, ObjPtr buffer);
43 SMARTENGINE_EXPORT
void AssetStore_SetHandlers(CAssetStoreHandler loadHandler, CAssetStoreHandler saveHandler);
SMARTENGINE_EXPORT void SetAssetStoreHandlers(AssetStoreHandler loadHandler, AssetStoreHandler saveHandler)
Used to set the handler for custom loading and saving of assets.
AssetType
Definition: AssetStore.h:14
bool(* AssetStoreHandler)(const char *assetName, AssetType assetType, IMemoryBuffer *buffer)
Definition: AssetStore.h:32
Definition: A2CTrainer.h:10
@ JsonString
The memory buffer will be filled or should be filled with just a single string that is the content of...
Simple in memory buffer. Used for serialization, but can be used as a generic buffer too.
Definition: MemoryBuffer.h:15