#include "../../src/Battling/History/HistoryElements/AttackUseHistory.hpp" #include "../../src/Battling/History/HistoryHolder.hpp" #include "../Core.hpp" using namespace CreatureLib::Battling; export const HistoryElement* CreatureLib_HistoryHandler_GetTopElement(const HistoryHolder* p) { return p->GetTopElement().GetValue(); } export const HistoryElement* CreatureLib_HistoryHandler_GetLastUsedAttack(const HistoryHolder* p) { return p->GetLastUsedAttack().GetValue(); } export const HistoryElement* CreatureLib_HistoryHandler_GetLastDamageOnTarget(const HistoryHolder* p, const Creature* c) { return p->GetLastDamageOnTarget(c).GetValue(); } export HistoryElementKind CreatureLib_HistoryElement_GetKind(const HistoryElement* p) { return p->GetKind(); } export const HistoryElement* CreatureLib_HistoryElement_GetPrevious(const HistoryElement* p) { return p->GetPrevious().GetValue(); } export const ExecutingAttack* CreatureLib_AttackUseHistory_GetAttack(const AttackUseHistory* p) { return p->GetAttack().GetRaw(); }