2019-11-18 07:29:17 +00:00
|
|
|
#ifndef CREATURELIB_SCRIPTRESOLVER_HPP
|
|
|
|
#define CREATURELIB_SCRIPTRESOLVER_HPP
|
|
|
|
|
|
|
|
#include <string>
|
2020-02-13 11:53:48 +00:00
|
|
|
#include "../../Core/Enum.hpp"
|
2019-11-18 07:29:17 +00:00
|
|
|
#include "Script.hpp"
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
namespace CreatureLib::Battling {
|
2020-01-11 10:35:59 +00:00
|
|
|
class BattleLibrary;
|
|
|
|
|
2019-11-18 07:29:17 +00:00
|
|
|
class ScriptResolver {
|
|
|
|
public:
|
|
|
|
virtual ~ScriptResolver() = default;
|
|
|
|
|
2020-02-13 11:53:48 +00:00
|
|
|
ENUM(ScriptCategory, uint8_t, Attack, Talent, Status, Creature, Battle, Side)
|
2019-11-18 07:29:17 +00:00
|
|
|
|
2020-01-11 10:35:59 +00:00
|
|
|
virtual void Initialize(BattleLibrary* library){};
|
2019-11-28 11:55:22 +00:00
|
|
|
virtual Script* LoadScript(ScriptCategory category, const std::string& scriptName) { return nullptr; };
|
2019-11-18 07:29:17 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
#endif // CREATURELIB_SCRIPTRESOLVER_HPP
|