add missing global declaration
This commit is contained in:
1 parent
3b90a571c0
commit
e39691c5cc
1 file changed
+18
@@ -43,6 +43,24 @@ constexpr std::uint32_t OfferedResourceWeights[nOfferedResourceWeights] = {
|
|||||||
rwOff, rwMaxScience, rwForceScience, rwMaxGrowth, rwForceProd, rwMaxProd,
|
rwOff, rwMaxScience, rwForceScience, rwMaxGrowth, rwForceProd, rwMaxProd,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TMapOption/TMapOptions: each enumerator is a BIT POSITION within the
|
||||||
|
// MapOptions bitset (not a sequential ordinal) - mirrors Pascal's `set of
|
||||||
|
// TMapOption` membership test via hasMapOption()/(1u << option).
|
||||||
|
enum MapOption {
|
||||||
|
moPolitical = 0,
|
||||||
|
moCityNames = 1,
|
||||||
|
moGreatWall = 4,
|
||||||
|
moGrid = 5,
|
||||||
|
moBareTerrain = 6,
|
||||||
|
moEditMode = 16,
|
||||||
|
moLocCodes = 17,
|
||||||
|
};
|
||||||
|
using MapOptions = std::uint32_t;
|
||||||
|
inline bool hasMapOption(MapOptions options, MapOption option)
|
||||||
|
{
|
||||||
|
return (options & (1u << option)) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
using TImpOrder = std::array<std::int8_t, (nImp + 4) / 4 * 4>;
|
using TImpOrder = std::array<std::int8_t, (nImp + 4) / 4 * 4>;
|
||||||
using TEnhancementJobs = std::uint8_t[12][8];
|
using TEnhancementJobs = std::uint8_t[12][8];
|
||||||
// Pascal's `set of 0..39`; bit i set means "treat Server() result code i as
|
// Pascal's `set of 0..39`; bit i set means "treat Server() result code i as
|
||||||
|
|||||||
Reference in new issue
Block a user