Use ENUM macro for ScriptCategory enum.
This commit is contained in:
parent
42050de18a
commit
0ef909cf55
|
@ -2,6 +2,7 @@
|
||||||
#define CREATURELIB_SCRIPTRESOLVER_HPP
|
#define CREATURELIB_SCRIPTRESOLVER_HPP
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include "../../Core/Enum.hpp"
|
||||||
#include "Script.hpp"
|
#include "Script.hpp"
|
||||||
|
|
||||||
namespace CreatureLib::Battling {
|
namespace CreatureLib::Battling {
|
||||||
|
@ -11,15 +12,7 @@ namespace CreatureLib::Battling {
|
||||||
public:
|
public:
|
||||||
virtual ~ScriptResolver() = default;
|
virtual ~ScriptResolver() = default;
|
||||||
|
|
||||||
enum class ScriptCategory {
|
ENUM(ScriptCategory, uint8_t, Attack, Talent, Status, Creature, Battle, Side)
|
||||||
Attack,
|
|
||||||
Talent,
|
|
||||||
Status,
|
|
||||||
Creature,
|
|
||||||
Battle,
|
|
||||||
Side,
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
virtual void Initialize(BattleLibrary* library){};
|
virtual void Initialize(BattleLibrary* library){};
|
||||||
virtual Script* LoadScript(ScriptCategory category, const std::string& scriptName) { return nullptr; };
|
virtual Script* LoadScript(ScriptCategory category, const std::string& scriptName) { return nullptr; };
|
||||||
|
|
Loading…
Reference in New Issue