Adds helper function to get last damage event on a creature.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
3 files changed
+23
-2
No files matched your search
@@ -10,6 +10,11 @@ export const HistoryElement* CreatureLib_HistoryHandler_GetLastUsedAttack(const
|
||||
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();
|
||||
|
||||
Reference in new issue
Block a user