mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-16 09:28:24 +02:00
disable all scripting code when configuring without scripting modules
This commit is contained in:
@@ -32,10 +32,12 @@ namespace spells
|
||||
}
|
||||
}
|
||||
|
||||
#if SCRIPTING_ENABLED
|
||||
namespace scripting
|
||||
{
|
||||
class Service;
|
||||
}
|
||||
#endif
|
||||
|
||||
class DLL_LINKAGE Services
|
||||
{
|
||||
@@ -47,7 +49,9 @@ public:
|
||||
virtual const FactionService * factions() const = 0;
|
||||
virtual const HeroClassService * heroClasses() const = 0;
|
||||
virtual const HeroTypeService * heroTypes() const = 0;
|
||||
#if SCRIPTING_ENABLED
|
||||
virtual const scripting::Service * scripts() const = 0;
|
||||
#endif
|
||||
virtual const spells::Service * spells() const = 0;
|
||||
virtual const SkillService * skills() const = 0;
|
||||
virtual const BattleFieldService * battlefields() const = 0;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if SCRIPTING_ENABLED
|
||||
#include <vcmi/Environment.h>
|
||||
|
||||
class Services;
|
||||
@@ -78,3 +79,4 @@ public:
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user