Get the 16-bit ID of a land type in the attributes map, as represented by an AttributesPixel structure, that corresponds to a given display colour.
AttributesPixel CExtAPI::calc_AM_GetIDfromColour(COLORREF col);
Name | Type | Comment |
---|---|---|
col | COLORREF | A Windows COLORREF structure containing the (supposed) display colour of a land type, the ID of which is to be determined. |
Zero if the given colour does not match the display colour of a known land type, and non-zero otherwise.
This function is used when loading the attributes map from a colour-mapped image file.