Fixes project being completely dirty every build requiring constant full rebuilds and slowing down tooling.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2021-10-30 14:24:38 +02:00
parent d55b40f3d0
commit e1d8348b2f
33 changed files with 69 additions and 53 deletions

View File

@@ -1,6 +1,8 @@
#ifndef CREATURELIB_EVENTDATAKIND_HPP
#define CREATURELIB_EVENTDATAKIND_HPP
#include <Arbutils/Enum.hpp>
namespace CreatureLib::Battling {
ENUM(EventDataKind, uint8_t, Damage, Heal, Faint, Switch, TurnStart, TurnEnd, ExperienceGain, Miss, DisplayText,
ChangeSpecies, ChangeVariant, AttackUse, ChangeStatBoost, Fail, Swap, StatusChange)

View File

@@ -1,12 +1,14 @@
#ifndef CREATURELIB_EVENTHOOK_HPP
#define CREATURELIB_EVENTHOOK_HPP
#include <Arbutils/Exception.hpp>
#include <functional>
#include <thread>
#include "../../Library/Exceptions/CreatureException.hpp"
#include "Events/EventData.hpp"
template <class T> concept EventDataType = std::is_base_of<CreatureLib::Battling::EventData, T>::value;
template <class T>
concept EventDataType = std::is_base_of<CreatureLib::Battling::EventData, T>::value;
namespace CreatureLib::Battling {
/// The Event Hook class allows users to write consumers for the battle events, for example to write User Interfaces