mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-13 13:18:43 +02:00
20 lines
477 B
C++
20 lines
477 B
C++
|
/*
|
||
|
* BasicTypes.cpp, 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
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#include "StdInc.h"
|
||
|
#include "GameConstants.h"
|
||
|
|
||
|
#include <vcmi/Entity.h>
|
||
|
|
||
|
bool INativeTerrainProvider::isItNativeTerrain(TerrainId terrain) const
|
||
|
{
|
||
|
auto native = getNativeTerrain();
|
||
|
return native == terrain || native == ETerrainId::ANY_TERRAIN;
|
||
|
}
|