Stardew Engine
Loading...
Searching...
No Matches
TimerPool.h File Reference
#include <stdbool.h>
#include "HandleDefs.h"
Include dependency graph for TimerPool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SDTimer
 SD == stardew to avoid name collisions. More...
 
struct  SDTimerPool
 

Typedefs

typedef bool(* TimerCallbackFn) (struct SDTimer *)
 return true for the timer to be removed
 

Functions

struct SDTimerPool TP_InitTimerPool (int initialSize)
 
struct SDTimerPool TP_DestroyTimerPool (struct SDTimerPool *pPool)
 
HTimer TP_GetTimer (struct SDTimerPool *pPool, const struct SDTimer *pTimer)
 
void TP_FreeTimer (struct SDTimerPool *pPool, HTimer timer)
 
void TP_DoTimers (struct SDTimerPool *pPool, double deltaT)
 

Typedef Documentation

◆ TimerCallbackFn

typedef bool(* TimerCallbackFn) (struct SDTimer *)

return true for the timer to be removed

Function Documentation

◆ TP_DestroyTimerPool()

struct SDTimerPool TP_DestroyTimerPool ( struct SDTimerPool pPool)

◆ TP_DoTimers()

void TP_DoTimers ( struct SDTimerPool pPool,
double  deltaT 
)

◆ TP_FreeTimer()

void TP_FreeTimer ( struct SDTimerPool pPool,
HTimer  timer 
)

◆ TP_GetTimer()

HTimer TP_GetTimer ( struct SDTimerPool pPool,
const struct SDTimer pTimer 
)

◆ TP_InitTimerPool()

struct SDTimerPool TP_InitTimerPool ( int  initialSize)