Cogs.Core
SeaCurrentsExtension.h
1#pragma once
2
3#include "Bridge/Bridge.h"
4
5#if defined( __cplusplus )
6extern "C" {
7#endif
8
9typedef bool (*LoadFromMemoryFn)(void* context, EntityId entityId, const char * extension, void* data, size_t dataSize, uint64_t timestamp, int utmZone);
10typedef bool (*LoadFromFileFn)(void* context, EntityId entityId, const char* filename, uint64_t timestamp, int utmZone);
11
12typedef bool (*FetchDataInfoFn)(void* context, void* data, size_t dataSize);
13typedef bool (*FetchFileInfoFn)(void* context, const char* filename);
14
15typedef struct SeaCurrentsModuleAPI {
16 LoadFromMemoryFn loadFromMemory;
17 LoadFromFileFn loadFromFile;
18 FetchDataInfoFn fetchDataInfo;
19 FetchFileInfoFn fetchFileInfo;
20}
22
23#if defined( __cplusplus )
24}
25#endif