File TimerPool.h

FileList > engine > include > TimerPool.h

Go to the source code of this file

  • #include <stdbool.h>
  • #include "HandleDefs.h"

Classes

Type Name
struct SDTimer
SD == stardew to avoid name collisions.
struct SDTimerPool

Public Types

Type Name
typedef bool(* TimerCallbackFn
return true for the timer to be removed

Public Functions

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

Public Types Documentation

typedef TimerCallbackFn

return true for the timer to be removed

typedef bool(* TimerCallbackFn) (struct SDTimer *);

Public Functions Documentation

function TP_DestroyTimerPool

struct SDTimerPool TP_DestroyTimerPool (
    struct SDTimerPool * pPool
) 

function TP_DoTimers

void TP_DoTimers (
    struct SDTimerPool * pPool,
    double deltaT
) 

function TP_FreeTimer

void TP_FreeTimer (
    struct SDTimerPool * pPool,
    HTimer timer
) 

function TP_GetTimer

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

function TP_InitTimerPool

struct SDTimerPool TP_InitTimerPool (
    int initialSize
) 


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/TimerPool.h