Store time in turn execution on battle class.
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-28 12:24:10 +02:00
parent d2e72deeca
commit 32f75f4a47
3 changed files with 9 additions and 1 deletions

View File

@@ -78,4 +78,6 @@ export bool CreatureLib_Battle_HasVolatileScript(Battle* p, const char* key) {
export uint8_t CreatureLib_Battle_RegisterEventListener(Battle* p, void (*func)(const EventData*)) {
Try(p->RegisterEventListener(func);)
}
export const HistoryHolder* CreatureLib_Battle_GetHistory(Battle* p) { return &p->GetHistory(); }
export const HistoryHolder* CreatureLib_Battle_GetHistory(Battle* p) { return &p->GetHistory(); }
SIMPLE_GET_FUNC(Battle, GetLastTurnTimeMicroseconds, long);