Adds support for History data, allowing us to store specific interesting occurrences in the data flow, and recall them later.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-14 15:18:00 +02:00
parent 939fee3f50
commit cb4765e0cc
12 changed files with 150 additions and 19 deletions

View File

@@ -1,5 +1,6 @@
#ifndef CREATURELIB_ATTACKUSEEVENT_HPP
#define CREATURELIB_ATTACKUSEEVENT_HPP
#include "../../Models/ExecutingAttack.hpp"
#include "EventData.hpp"
namespace CreatureLib::Battling {

View File

@@ -2,14 +2,9 @@
#define CREATURELIB_EVENTDATA_HPP
#include <Arbutils/Memory/BorrowedPtr.hpp>
#include "../../Models/CreatureIndex.hpp"
#include "../../Models/DamageSource.hpp"
#include "../EventDataKind.hpp"
namespace CreatureLib::Battling {
// Predeclare some classes.
class Creature;
class EventData {
public:
virtual ~EventData() = default;

View File

@@ -1,5 +1,6 @@
#ifndef CREATURELIB_SWITCHEVENT_HPP
#define CREATURELIB_SWITCHEVENT_HPP
#include "../../Models/CreatureIndex.hpp"
#include "EventData.hpp"
namespace CreatureLib::Battling {