Click or drag to resize

GM_MapCatalogChangeMapOrder

Moves 'aNumMapsToMove' maps starting at 'aCurMapIndex' in the map list to 'aNewMapIndex'. If you use -1 for 'aNumMapsToMove', all maps from 'aNumMapsToMove' to the end of the list will be moved to 'aNewMapIndex'. In that case, 'aNewMapIndex' must be smaller than 'aCurMapIndex'.

Syntax
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_MapCatalogChangeMapOrder
(
GM_LayerHandle_t32      aCatalogLayer,  // IN: Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
uint32                  aCurMapIndex,   // IN: Current index of map (0-based) to move
uint32                  aNewMapIndex,   // IN: New index of map (0-based) 
sint32                  aNumMapsToMove, // IN: Number of maps to move (-1 for everything from aCurMapIndex to end of list)
void*                   aReserved       // Reserved for future use, must be NULL
);