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