3#ifndef ENGINE_SHARED_MAP_H
4#define ENGINE_SHARED_MAP_H
21 void *
GetData(
int Index)
override;
28 void *
GetItem(
int Index,
int *pType =
nullptr,
int *pId =
nullptr)
override;
29 void GetType(
int Type,
int *pStart,
int *pNum)
override;
31 void *
FindItem(
int Type,
int Id)
override;
34 bool Load(
const char *pMapName)
override;
40 unsigned Crc()
const override;
Definition: datafile.h:24
int GetItemSize(int Index) override
Definition: map.cpp:43
void * GetItem(int Index, int *pType=nullptr, int *pId=nullptr) override
Definition: map.cpp:48
int NumData() const override
Definition: map.cpp:38
bool IsLoaded() const override
Definition: map.cpp:138
int MapSize() const override
Definition: map.cpp:158
void Unload() override
Definition: map.cpp:133
CDataFileReader * GetReader()
Definition: map.h:18
IOHANDLE File() const override
Definition: map.cpp:143
void * FindItem(int Type, int Id) override
Definition: map.cpp:63
bool Load(const char *pMapName) override
Definition: map.cpp:73
void * GetDataSwapped(int Index) override
Definition: map.cpp:23
static void ExtractTiles(class CTile *pDest, size_t DestSize, const class CTile *pSrc, size_t SrcSize)
Definition: map.cpp:163
const char * GetDataString(int Index) override
Definition: map.cpp:28
void * GetData(int Index) override
Definition: map.cpp:18
int FindItemIndex(int Type, int Id) override
Definition: map.cpp:58
int GetDataSize(int Index) const override
Definition: map.cpp:13
void UnloadData(int Index) override
Definition: map.cpp:33
SHA256_DIGEST Sha256() const override
Definition: map.cpp:148
void GetType(int Type, int *pStart, int *pNum) override
Definition: map.cpp:53
int NumItems() const override
Definition: map.cpp:68
unsigned Crc() const override
Definition: map.cpp:153
CDataFileReader m_DataFile
Definition: map.h:13
Definition: mapitems.h:236
void * IOHANDLE
Definition: logger.h:11