mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
a1a5bc28c2
Mixed line endings cause problems when exporting patches with git-format-patch and then trying to "git am" a patch with mixed and non-matching line endings. In such a situation git will fail to apply the patch. This commit runs the dos2unix tools on the remaining files with CRLF (\r\n) line endings to convert them to line-feeds (\n) only. Files that are Windows specific like *.vcxproj and *.props files were not converted. Closes: #3073
74 lines
1.6 KiB
C++
74 lines
1.6 KiB
C++
/*
|
|
* MapFeaturesH3M.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
enum class EMapFormat : uint8_t;
|
|
|
|
struct MapFormatFeaturesH3M
|
|
{
|
|
public:
|
|
static MapFormatFeaturesH3M find(EMapFormat format, uint32_t hotaVersion);
|
|
static MapFormatFeaturesH3M getFeaturesROE();
|
|
static MapFormatFeaturesH3M getFeaturesAB();
|
|
static MapFormatFeaturesH3M getFeaturesSOD();
|
|
static MapFormatFeaturesH3M getFeaturesWOG();
|
|
static MapFormatFeaturesH3M getFeaturesHOTA(uint32_t hotaVersion);
|
|
|
|
MapFormatFeaturesH3M() = default;
|
|
|
|
// number of bytes in bitmask of appropriate type
|
|
|
|
int factionsBytes;
|
|
int heroesBytes;
|
|
int artifactsBytes;
|
|
int resourcesBytes;
|
|
int skillsBytes;
|
|
int spellsBytes;
|
|
int buildingsBytes;
|
|
|
|
// total number of elements of appropriate type
|
|
|
|
int factionsCount;
|
|
int heroesCount;
|
|
int heroesPortraitsCount;
|
|
int artifactsCount;
|
|
int resourcesCount;
|
|
int creaturesCount;
|
|
int spellsCount;
|
|
int skillsCount;
|
|
int terrainsCount;
|
|
int roadsCount;
|
|
int riversCount;
|
|
int artifactSlotsCount;
|
|
int buildingsCount;
|
|
|
|
// identifier that should be treated as "invalid", usually - '-1'
|
|
|
|
int heroIdentifierInvalid;
|
|
int artifactIdentifierInvalid;
|
|
int creatureIdentifierInvalid;
|
|
int spellIdentifierInvalid;
|
|
|
|
// features from which map format are available
|
|
|
|
bool levelROE = false;
|
|
bool levelAB = false;
|
|
bool levelSOD = false;
|
|
bool levelWOG = false;
|
|
bool levelHOTA0 = false;
|
|
bool levelHOTA1 = false;
|
|
bool levelHOTA3 = false;
|
|
};
|
|
|
|
VCMI_LIB_NAMESPACE_END
|