Style fixes.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-12-11 14:08:13 +01:00
parent affb17fd92
commit b6a5e41b51
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 3 additions and 5 deletions

View File

@ -66,7 +66,7 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg,
_engine->SetEngineProperty(asEP_PROPERTY_ACCESSOR_MODE, 2); _engine->SetEngineProperty(asEP_PROPERTY_ACCESSOR_MODE, 2);
_engine->SetEngineProperty(asEP_COMPILER_WARNINGS, 2); _engine->SetEngineProperty(asEP_COMPILER_WARNINGS, 2);
if (includeStandard){ if (includeStandard) {
RegisterStdString(_engine); RegisterStdString(_engine);
ConstStringRegister::Register(_engine); ConstStringRegister::Register(_engine);
@ -84,7 +84,7 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg,
RegisterTypes(); RegisterTypes();
RegisterExceptionRoutines(_engine); RegisterExceptionRoutines(_engine);
if (library != nullptr){ if (library != nullptr) {
auto& staticLib = library->GetStaticLib(); auto& staticLib = library->GetStaticLib();
_engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", (void*)staticLib.get()); _engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", (void*)staticLib.get());
} }

View File

@ -37,9 +37,7 @@ public:
_engine->ShutDownAndRelease(); _engine->ShutDownAndRelease();
} }
void Initialize(CreatureLib::Battling::BattleLibrary* library) override{ void Initialize(CreatureLib::Battling::BattleLibrary* library) override { Initialize(library, true); }
Initialize(library, true);
}
void Initialize(CreatureLib::Battling::BattleLibrary* library, bool includeStandard); void Initialize(CreatureLib::Battling::BattleLibrary* library, bool includeStandard);
void CreateScript(const char* name, const char* script); void CreateScript(const char* name, const char* script);
const asIScriptModule* GetMainModule() const noexcept { return _mainModule; } const asIScriptModule* GetMainModule() const noexcept { return _mainModule; }