1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Vlc obstacles [part 1] (#888)

* obstacles content handler, entity service and VLC integration
This commit is contained in:
Nordsoft91
2022-09-15 12:06:54 +04:00
committed by GitHub
parent 7dc05d8e81
commit ad01c7ffce
25 changed files with 807 additions and 489 deletions

View File

@@ -38,6 +38,7 @@ void CGameInfo::setFromLib()
skillh = VLC->skillh;
objtypeh = VLC->objtypeh;
battleFieldHandler = VLC->battlefieldsHandler;
obstacleHandler = VLC->obstacleHandler;
}
const ArtifactService * CGameInfo::artifacts() const
@@ -85,6 +86,11 @@ const SkillService * CGameInfo::skills() const
return globalServices->skills();
}
const ObstacleService * CGameInfo::obstacles() const
{
return globalServices->obstacles();
}
void CGameInfo::updateEntity(Metatype metatype, int32_t index, const JsonNode & data)
{
logGlobal->error("CGameInfo::updateEntity call is not expected.");