Adds getter for Script for ExecutingAttack. Mostly useful for unit tests etc.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
47515399fe
commit
c6974b6b5b
|
@ -96,6 +96,8 @@ namespace CreatureLib::Battling {
|
||||||
inline const ArbUt::BorrowedPtr<LearnedAttack>& GetAttack() noexcept { return _attack; }
|
inline const ArbUt::BorrowedPtr<LearnedAttack>& GetAttack() noexcept { return _attack; }
|
||||||
size_t ScriptCount() const override { return _user->ScriptCount() + 1; }
|
size_t ScriptCount() const override { return _user->ScriptCount() + 1; }
|
||||||
|
|
||||||
|
inline ArbUt::BorrowedPtr<Script> GetScript() const noexcept { return _script; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void GetActiveScripts(ArbUt::List<ScriptWrapper>& scripts) override {
|
void GetActiveScripts(ArbUt::List<ScriptWrapper>& scripts) override {
|
||||||
scripts.Append(ScriptWrapper::FromScript(&_script));
|
scripts.Append(ScriptWrapper::FromScript(&_script));
|
||||||
|
|
Loading…
Reference in New Issue