Implements Attack Use event.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
16
src/Battling/EventHooks/Events/AttackUseEvent.hpp
Normal file
16
src/Battling/EventHooks/Events/AttackUseEvent.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef CREATURELIB_ATTACKUSEEVENT_HPP
|
||||
#define CREATURELIB_ATTACKUSEEVENT_HPP
|
||||
#include "EventData.hpp"
|
||||
|
||||
namespace CreatureLib::Battling {
|
||||
class AttackUseEvent : public EventData {
|
||||
ArbUt::BorrowedPtr<ExecutingAttack> _attack;
|
||||
|
||||
public:
|
||||
AttackUseEvent(const ArbUt::BorrowedPtr<ExecutingAttack>& attack) noexcept : _attack(attack) {}
|
||||
EventDataKind GetKind() const noexcept override { return EventDataKind ::AttackUse; }
|
||||
const ArbUt::BorrowedPtr<ExecutingAttack>& GetAttack() const noexcept { return _attack; }
|
||||
};
|
||||
}
|
||||
|
||||
#endif // CREATURELIB_ATTACKUSEEVENT_HPP
|
||||
Reference in New Issue
Block a user