DDraceNetwork Docs
CMap Class Reference

#include <map.h>

Inheritance diagram for CMap:
[legend]
Collaboration diagram for CMap:
[legend]

Public Member Functions

 CMap ()
 
CDataFileReaderGetReader ()
 
int GetDataSize (int Index) const override
 
void * GetData (int Index) override
 
void * GetDataSwapped (int Index) override
 
const char * GetDataString (int Index) override
 
void UnloadData (int Index) override
 
int NumData () const override
 
int GetItemSize (int Index) override
 
void * GetItem (int Index, int *pType=nullptr, int *pId=nullptr) override
 
void GetType (int Type, int *pStart, int *pNum) override
 
int FindItemIndex (int Type, int Id) override
 
void * FindItem (int Type, int Id) override
 
int NumItems () const override
 
bool Load (const char *pMapName) override
 
void Unload () override
 
bool IsLoaded () const override
 
IOHANDLE File () const override
 
SHA256_DIGEST Sha256 () const override
 
unsigned Crc () const override
 
int MapSize () const override
 
virtual bool Load (const char *pMapName)=0
 
virtual void Unload ()=0
 
virtual bool IsLoaded () const =0
 
virtual IOHANDLE File () const =0
 
virtual SHA256_DIGEST Sha256 () const =0
 
virtual unsigned Crc () const =0
 
virtual int MapSize () const =0
 
virtual int GetDataSize (int Index) const =0
 
virtual void * GetData (int Index)=0
 
virtual void * GetDataSwapped (int Index)=0
 
virtual const char * GetDataString (int Index)=0
 
virtual void UnloadData (int Index)=0
 
virtual int NumData () const =0
 
virtual int GetItemSize (int Index)=0
 
virtual void * GetItem (int Index, int *pType=nullptr, int *pId=nullptr)=0
 
virtual void GetType (int Type, int *pStart, int *pNum)=0
 
virtual int FindItemIndex (int Type, int Id)=0
 
virtual void * FindItem (int Type, int Id)=0
 
virtual int NumItems () const =0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Static Public Member Functions

static void ExtractTiles (class CTile *pDest, size_t DestSize, const class CTile *pSrc, size_t SrcSize)
 
- Static Public Member Functions inherited from IEngineMap
static const char * InterfaceName ()
 
- Static Public Member Functions inherited from IMap
static const char * InterfaceName ()
 

Private Attributes

CDataFileReader m_DataFile
 

Additional Inherited Members

- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Constructor & Destructor Documentation

◆ CMap()

CMap::CMap ( )
default

Member Function Documentation

◆ Crc()

unsigned CMap::Crc ( ) const
overridevirtual

Implements IEngineMap.

◆ ExtractTiles()

void CMap::ExtractTiles ( class CTile pDest,
size_t  DestSize,
const class CTile pSrc,
size_t  SrcSize 
)
static

◆ File()

IOHANDLE CMap::File ( ) const
overridevirtual

Implements IEngineMap.

◆ FindItem()

void * CMap::FindItem ( int  Type,
int  Id 
)
overridevirtual

Implements IMap.

◆ FindItemIndex()

int CMap::FindItemIndex ( int  Type,
int  Id 
)
overridevirtual

Implements IMap.

◆ GetData()

void * CMap::GetData ( int  Index)
overridevirtual

Implements IMap.

◆ GetDataSize()

int CMap::GetDataSize ( int  Index) const
overridevirtual

Implements IMap.

◆ GetDataString()

const char * CMap::GetDataString ( int  Index)
overridevirtual

Implements IMap.

◆ GetDataSwapped()

void * CMap::GetDataSwapped ( int  Index)
overridevirtual

Implements IMap.

◆ GetItem()

void * CMap::GetItem ( int  Index,
int *  pType = nullptr,
int *  pId = nullptr 
)
overridevirtual

Implements IMap.

◆ GetItemSize()

int CMap::GetItemSize ( int  Index)
overridevirtual

Implements IMap.

◆ GetReader()

CDataFileReader * CMap::GetReader ( )
inline

◆ GetType()

void CMap::GetType ( int  Type,
int *  pStart,
int *  pNum 
)
overridevirtual

Implements IMap.

◆ IsLoaded()

bool CMap::IsLoaded ( ) const
overridevirtual

Implements IEngineMap.

◆ Load()

bool CMap::Load ( const char *  pMapName)
overridevirtual

Implements IEngineMap.

◆ MapSize()

int CMap::MapSize ( ) const
overridevirtual

Implements IEngineMap.

◆ NumData()

int CMap::NumData ( ) const
overridevirtual

Implements IMap.

◆ NumItems()

int CMap::NumItems ( ) const
overridevirtual

Implements IMap.

◆ Sha256()

SHA256_DIGEST CMap::Sha256 ( ) const
overridevirtual

Implements IEngineMap.

◆ Unload()

void CMap::Unload ( )
overridevirtual

Implements IEngineMap.

◆ UnloadData()

void CMap::UnloadData ( int  Index)
overridevirtual

Implements IMap.

Member Data Documentation

◆ m_DataFile

CDataFileReader CMap::m_DataFile
private

The documentation for this class was generated from the following files: