prosperon/source/engine/timer.h
2024-09-30 04:36:53 -05:00

15 lines
198 B
C

#ifndef TIMER_H
#include "script.h"
typedef struct timer {
double remain;
JSValue fn;
} timer;
timer *timer_make(JSValue fn);
void timer_free(timer *t);
void timer_update(double dt);
#endif