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
|
#ifndef ITEMUSESCRIPT_HPP
|
||||||
#define ITEMUSESCRIPT_HPP
|
#define ITEMUSESCRIPT_HPP
|
||||||
|
|
||||||
|
#include "../../Library/EffectParameter.hpp"
|
||||||
namespace CreatureLib::Battling {
|
namespace CreatureLib::Battling {
|
||||||
class Creature;
|
class Creature;
|
||||||
|
|
||||||
|
@ -8,6 +9,8 @@ namespace CreatureLib::Battling {
|
||||||
public:
|
public:
|
||||||
virtual ~ItemUseScript() = default;
|
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?
|
/// @brief Is the item an item we are able to use?
|
||||||
[[nodiscard]] virtual bool IsItemUsable() const { return false; }
|
[[nodiscard]] virtual bool IsItemUsable() const { return false; }
|
||||||
/// @brief Do we need to use the item on a creature?
|
/// @brief Do we need to use the item on a creature?
|
||||||
|
|
Loading…
Reference in New Issue