Adds OnInitialize function on Item Use Script.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
14ebf20f23
commit
cd3d665687
|
@ -1,6 +1,7 @@
|
|||
#ifndef ITEMUSESCRIPT_HPP
|
||||
#define ITEMUSESCRIPT_HPP
|
||||
|
||||
#include "../../Library/EffectParameter.hpp"
|
||||
namespace CreatureLib::Battling {
|
||||
class Creature;
|
||||
|
||||
|
@ -8,6 +9,8 @@ namespace CreatureLib::Battling {
|
|||
public:
|
||||
virtual ~ItemUseScript() = default;
|
||||
|
||||
virtual void
|
||||
OnInitialize([[maybe_unused]] const ArbUt::List<CreatureLib::Library::EffectParameter*>& parameters){};
|
||||
/// @brief Is the item an item we are able to use?
|
||||
[[nodiscard]] virtual bool IsItemUsable() const { return false; }
|
||||
/// @brief Do we need to use the item on a creature?
|
||||
|
|
Loading…
Reference in New Issue