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