mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Removed no longer used code - moved to hota mod
This commit is contained in:
parent
6ed0fbe579
commit
636b2ea856
@ -1299,24 +1299,6 @@ CGObjectInstance * CMapLoaderH3M::readShipyard(const int3 & mapPosition, std::sh
|
|||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
CGObjectInstance * CMapLoaderH3M::readBorderGuard()
|
|
||||||
{
|
|
||||||
return new CGBorderGuard();
|
|
||||||
}
|
|
||||||
|
|
||||||
CGObjectInstance * CMapLoaderH3M::readBorderGate(const int3 & mapPosition, std::shared_ptr<const ObjectTemplate> objectTemplate)
|
|
||||||
{
|
|
||||||
if(objectTemplate->subid < 1000)
|
|
||||||
return new CGBorderGate();
|
|
||||||
|
|
||||||
//TODO: HotA - grave has same ID as border gate? WTF?
|
|
||||||
if(objectTemplate->subid == 1001)
|
|
||||||
return new CGObjectInstance();
|
|
||||||
|
|
||||||
logGlobal->warn("Map '%s: Quest gates at %s are not implemented!", mapName, mapPosition.toString());
|
|
||||||
return readQuestGuard(mapPosition);
|
|
||||||
}
|
|
||||||
|
|
||||||
CGObjectInstance * CMapLoaderH3M::readLighthouse(const int3 & mapPosition)
|
CGObjectInstance * CMapLoaderH3M::readLighthouse(const int3 & mapPosition)
|
||||||
{
|
{
|
||||||
auto * object = new CGLighthouse();
|
auto * object = new CGLighthouse();
|
||||||
@ -1453,12 +1435,6 @@ CGObjectInstance * CMapLoaderH3M::readObject(std::shared_ptr<const ObjectTemplat
|
|||||||
case Obj::HERO_PLACEHOLDER:
|
case Obj::HERO_PLACEHOLDER:
|
||||||
return readHeroPlaceholder(mapPosition);
|
return readHeroPlaceholder(mapPosition);
|
||||||
|
|
||||||
case Obj::BORDERGUARD:
|
|
||||||
return readBorderGuard();
|
|
||||||
|
|
||||||
case Obj::BORDER_GATE:
|
|
||||||
return readBorderGate(mapPosition, objectTemplate);
|
|
||||||
|
|
||||||
case Obj::PYRAMID:
|
case Obj::PYRAMID:
|
||||||
return readPyramid(mapPosition, objectTemplate);
|
return readPyramid(mapPosition, objectTemplate);
|
||||||
|
|
||||||
|
@ -177,8 +177,6 @@ private:
|
|||||||
CGObjectInstance * readHeroPlaceholder(const int3 & position);
|
CGObjectInstance * readHeroPlaceholder(const int3 & position);
|
||||||
CGObjectInstance * readGrail(const int3 & position, std::shared_ptr<const ObjectTemplate> objectTemplate);
|
CGObjectInstance * readGrail(const int3 & position, std::shared_ptr<const ObjectTemplate> objectTemplate);
|
||||||
CGObjectInstance * readPyramid(const int3 & position, std::shared_ptr<const ObjectTemplate> objTempl);
|
CGObjectInstance * readPyramid(const int3 & position, std::shared_ptr<const ObjectTemplate> objTempl);
|
||||||
CGObjectInstance * readBorderGuard();
|
|
||||||
CGObjectInstance * readBorderGate(const int3 & position, std::shared_ptr<const ObjectTemplate> objTempl);
|
|
||||||
CGObjectInstance * readQuestGuard(const int3 & position);
|
CGObjectInstance * readQuestGuard(const int3 & position);
|
||||||
CGObjectInstance * readShipyard(const int3 & mapPosition, std::shared_ptr<const ObjectTemplate> objectTemplate);
|
CGObjectInstance * readShipyard(const int3 & mapPosition, std::shared_ptr<const ObjectTemplate> objectTemplate);
|
||||||
CGObjectInstance * readLighthouse(const int3 & mapPosition);
|
CGObjectInstance * readLighthouse(const int3 & mapPosition);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user