Move ScriptCategory enum outside of class scope of ScriptResolver.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
6
src/Battling/ScriptHandling/ScriptCategory.hpp
Normal file
6
src/Battling/ScriptHandling/ScriptCategory.hpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef CREATURELIB_SCRIPTCATEGORY_HPP
|
||||
#define CREATURELIB_SCRIPTCATEGORY_HPP
|
||||
|
||||
ENUM(ScriptCategory, uint8_t, Attack, Talent, Status, Creature, Battle, Side)
|
||||
|
||||
#endif // CREATURELIB_SCRIPTCATEGORY_HPP
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <string>
|
||||
#include "../../Core/Enum.hpp"
|
||||
#include "Script.hpp"
|
||||
#include "ScriptCategory.hpp"
|
||||
|
||||
namespace CreatureLib::Battling {
|
||||
class BattleLibrary;
|
||||
@@ -12,8 +13,6 @@ namespace CreatureLib::Battling {
|
||||
public:
|
||||
virtual ~ScriptResolver() = default;
|
||||
|
||||
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