DDraceNetwork Docs
map_convert_07.cpp File Reference
#include <base/logger.h>
#include <base/system.h>
#include <engine/gfx/image_loader.h>
#include <engine/shared/datafile.h>
#include <engine/storage.h>
#include <game/gamecore.h>
#include <game/mapitems.h>
Include dependency graph for map_convert_07.cpp:

Functions

bool CheckImageDimensions (void *pLayerItem, int LayerType, const char *pFilename)
 
void * ReplaceImageItem (int Index, CMapItemImage *pImgItem, CMapItemImage *pNewImgItem)
 
int main (int argc, const char **argv)
 

Variables

CDataFileReader g_DataReader
 
CDataFileWriter g_DataWriter
 
int g_aNewDataSize [MAX_MAPIMAGES]
 
void * g_apNewData [MAX_MAPIMAGES]
 
int g_Index = 0
 
int g_NextDataItemId = -1
 
int g_aImageIds [MAX_MAPIMAGES]
 

Function Documentation

◆ CheckImageDimensions()

bool CheckImageDimensions ( void *  pLayerItem,
int  LayerType,
const char *  pFilename 
)

◆ main()

int main ( int  argc,
const char **  argv 
)

◆ ReplaceImageItem()

void * ReplaceImageItem ( int  Index,
CMapItemImage pImgItem,
CMapItemImage pNewImgItem 
)

Variable Documentation

◆ g_aImageIds

int g_aImageIds[MAX_MAPIMAGES]

◆ g_aNewDataSize

int g_aNewDataSize[MAX_MAPIMAGES]

◆ g_apNewData

void* g_apNewData[MAX_MAPIMAGES]

◆ g_DataReader

CDataFileReader g_DataReader

◆ g_DataWriter

CDataFileWriter g_DataWriter

◆ g_Index

int g_Index = 0

◆ g_NextDataItemId

int g_NextDataItemId = -1