Initial work on item use handling
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-13 13:40:33 +01:00
parent 173c6c9926
commit c40f063683
5 changed files with 60 additions and 6 deletions

View File

@@ -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 {}
};
}