blob: 0ce6b095b5b7609ce29b8c959a1166605aafec45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "h-basic.h"
/*
* Timer descriptor and runtime data.
*/
struct timer_type
{
timer_type *next; /* The next timer in the list */
bool_ enabled; /* Is it currently counting? */
s32b delay; /* Delay between activations */
s32b countdown; /* The current number of turns passed, when it reaches delay it fires */
void (*callback)(); /* The C function to call upon firing */
};
|