Adds comments to members of EventHandler

develop
Josh Cooper 2021-08-28 12:42:15 -07:00 committed by Myk
parent a2e690d5d9
commit fb51e2d8b5
1 changed files with 2 additions and 2 deletions

@ -40,8 +40,8 @@ namespace DFHack {
struct EventHandler {
typedef void (*callback_t)(color_ostream&, void*); //called when the event happens
callback_t eventHandler;
int32_t freq;
int32_t when;
int32_t freq; //how often event is allowed to fire (in ticks) use 0 to always fire when possible
int32_t when; //when to fire event (global tick count)
EventHandler(callback_t eventHandlerIn, int32_t freqIn): eventHandler(eventHandlerIn), freq(freqIn) {
}