Use ENUM macro for ScriptCategory enum.

This commit is contained in:
Deukhoofd 2020-02-13 12:53:48 +01:00
parent 42050de18a
commit 0ef909cf55
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 9 deletions

View File

@ -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; };