Adds support for changing talent by its hash, adds support for loading scripts by their name hash.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-28 11:00:31 +02:00
parent 782e9b90a8
commit e3c997af31
5 changed files with 33 additions and 4 deletions

View File

@@ -48,4 +48,9 @@ ArbUt::OptionalUniquePtr<BattleScript> BattleLibrary::LoadScript(const ArbUt::Op
ScriptCategory category,
const ArbUt::StringView& scriptName) const {
return _scriptResolver->LoadScript(owner, category, scriptName).TakeOwnership();
}
}
ArbUt::OptionalUniquePtr<BattleScript> BattleLibrary::LoadScriptByHash(const ArbUt::OptionalBorrowedPtr<void>& owner,
ScriptCategory category,
u32 scriptNameHash) const {
return _scriptResolver->LoadScriptByHash(owner, category, scriptNameHash).TakeOwnership();
}