1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Incorporate changes with scripting

This commit is contained in:
nordsoft 2022-09-22 19:22:31 +04:00
parent 2c2c044191
commit 061ac414e8
2 changed files with 4 additions and 0 deletions

View File

@ -71,10 +71,12 @@ const HeroTypeService * CGameInfo::heroTypes() const
return globalServices->heroTypes(); return globalServices->heroTypes();
} }
#if SCRIPTING_ENABLED
const scripting::Service * CGameInfo::scripts() const const scripting::Service * CGameInfo::scripts() const
{ {
return globalServices->scripts(); return globalServices->scripts();
} }
#endif
const spells::Service * CGameInfo::spells() const const spells::Service * CGameInfo::spells() const
{ {

View File

@ -59,7 +59,9 @@ public:
const FactionService * factions() const override; const FactionService * factions() const override;
const HeroClassService * heroClasses() const override; const HeroClassService * heroClasses() const override;
const HeroTypeService * heroTypes() const override; const HeroTypeService * heroTypes() const override;
#if SCRIPTING_ENABLED
const scripting::Service * scripts() const override; const scripting::Service * scripts() const override;
#endif
const spells::Service * spells() const override; const spells::Service * spells() const override;
const SkillService * skills() const override; const SkillService * skills() const override;
const ObstacleService * obstacles() const override; const ObstacleService * obstacles() const override;