C Interface for History.

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-14 17:24:12 +02:00
parent cb4765e0cc
commit 73f48eab7a
3 changed files with 23 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ namespace CreatureLib::Battling {
AttackUseHistory(const ExecutingAttack* attack) : _attack(attack) {}
HistoryElementKind GetKind() const noexcept override { return HistoryElementKind::AttackUse; }
ArbUt::BorrowedPtr<const ExecutingAttack> GetAttack() { return _attack; }
ArbUt::BorrowedPtr<const ExecutingAttack> GetAttack() const noexcept { return _attack; }
};
}