Table of Contents

zproj_GetMapAlternateName

Description

Get the alternative name of a map in the project, either the 'long' display name (e.g. “Heightfield”) or the 'short' abbreviated name (e.g. “HF”).

Files

Declaration zProj.h
Implementation zProj.cpp

Function prototype

bool zproj_GetMapAlternateName(const char* lpMapName, ZSTR hAltName, bool GetLongName = true);

Arguments

Name Type Comment
lpMapName const char* A pointer to a C-style string containing the map name.
hAltName ZSTR A ZSTR handle to a string variable that is to receive the alternative name of the map.
GetLongName bool A flag that determines whether the long or short names of the map is to be retrieved. See comments for more information.

Return value

True if:

False otherwise.

Comments

GetLongName

If the GetLongName argument is true, lpMapName must contain the 'short' name of the map (e.g. “WM”), and hAltName will receive the long name of the map (e.g. “Water map”). Conversely, if GetLongName is false, lpMapName must contain the 'long' name of the map, and hAltName will receive the short name of the map.