Adds OnInitialize function on Item Use Script.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2021-03-07 19:49:06 +01:00
parent 14ebf20f23
commit cd3d665687
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -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?