Use ENUM macro for ScriptCategory enum.
This commit is contained in:
		@@ -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; };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user