Cleaned up Events, added events on species and variant changes.
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:
15
src/Battling/EventHooks/Events/MissEvent.hpp
Normal file
15
src/Battling/EventHooks/Events/MissEvent.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef CREATURELIB_MISSEVENT_HPP
|
||||
#define CREATURELIB_MISSEVENT_HPP
|
||||
#include "EventData.hpp"
|
||||
|
||||
namespace CreatureLib::Battling {
|
||||
class MissEvent : public EventData {
|
||||
ArbUt::BorrowedPtr<Creature> _creature;
|
||||
|
||||
public:
|
||||
explicit MissEvent(const ArbUt::BorrowedPtr<Creature>& creature) noexcept : _creature(creature) {}
|
||||
EventDataKind GetKind() const noexcept override { return EventDataKind ::Miss; }
|
||||
const ArbUt::BorrowedPtr<Creature>& GetCreature() const noexcept { return _creature; }
|
||||
};
|
||||
}
|
||||
#endif // CREATURELIB_MISSEVENT_HPP
|
||||
Reference in New Issue
Block a user