Bunch of fixes for Owners of scripts.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-10-30 11:44:16 +02:00
parent 0f6d538695
commit 3732cab54b
6 changed files with 100 additions and 13 deletions

View File

@@ -116,7 +116,7 @@ public:
inline ArbUt::OptionalBorrowedPtr<AngelscriptDebugger> GetDebugger() const noexcept { return _debugger.GetValue(); }
inline void SetDebugger(AngelscriptDebugger* debugger) noexcept { _debugger = debugger; }
inline asITypeInfo* GetScriptOwnerType(ScriptCategory category) {
asITypeInfo* GetScriptOwnerType(ScriptCategory category) {
auto tryget = _scriptOwnerTypes.TryGet(category);
if (tryget.has_value()) {
return tryget.value();
@@ -137,5 +137,7 @@ public:
_scriptOwnerTypes.Set(category, t);
return t;
}
void Reset(CreatureLib::Battling::BattleLibrary* library);
};
#endif // PKMNLIB_ANGELSCRIPRESOLVER_HPP