quick & dirty timer functionality

This commit is contained in:
John McCardle 2024-03-07 08:59:26 -05:00
commit ccd79fc551
6 changed files with 118 additions and 0 deletions

17
src/Timer.h Normal file
View file

@ -0,0 +1,17 @@
#pragma once
#include "Common.h"
#include "Python.h"
class GameEngine; // forward declare
class Timer
{
public:
PyObject* target;
int interval;
int last_ran;
Timer(); // for map to build
Timer(Timer& other); // copy constructor
Timer(PyObject*, int, int);
~Timer();
bool test(int);
};