UtilityMap

A namespace that provides miscellaneous utility functions for working with map data.

Project

DatabaseCore

Include

UtilityMap.h

Summary
A namespace that provides miscellaneous utility functions for working with map data.
Fills up a string array based on the given fill types.

Functions

prepareDataArray

wxInt32 MODEL_EXPORT_SPEC prepareDataArray(const Data::IntHash &fillTypes,
StringArray &values)

Fills up a string array based on the given fill types.  This is useful for creating the undetermined parts of maps at runtime.  The given string array is filled with each of the keys in the fill types, in the quantity of the number assigned to that key.

Parameters

fillTypesThe integer hash of values to fill the array with.  See Data for details.
valuesThe string array to be filled with data.

Returns

The number of values inserted into the string array.

wxInt32 MODEL_EXPORT_SPEC prepareDataArray(const Data::IntHash &fillTypes,
StringArray &values)
Fills up a string array based on the given fill types.
DatabaseCore provides a set of commonly used Singletons and namespaces that handle important, but mundane aspects of game management, such as available player colors, configuration options, image maniplulation, file paths, and playing sounds.
Stores data of many different kinds in string-based hash maps.