Style fixes.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
affb17fd92
commit
b6a5e41b51
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
Loading…
Reference in New Issue