Initial work on item use handling
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "../../Library/EffectParameter.hpp"
|
||||
namespace CreatureLib::Battling {
|
||||
class Creature;
|
||||
class Battle;
|
||||
|
||||
class ItemUseScript {
|
||||
public:
|
||||
@@ -22,8 +23,8 @@ namespace CreatureLib::Battling {
|
||||
/// @brief Can the item be held?
|
||||
[[nodiscard]] virtual bool IsHoldable() const { return false; }
|
||||
|
||||
virtual void OnUse() const {}
|
||||
virtual void OnCreatureUse([[maybe_unused]] Creature* creature) const {}
|
||||
virtual void OnUse([[maybe_unused]] Battle* battle) const {}
|
||||
virtual void OnCreatureUse([[maybe_unused]] Creature* creature, [[maybe_unused]] bool isBattle) const {}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user