2020-11-29 16:50:49 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct __declspec(align(4)) timer_struct
|
|
|
|
{
|
|
|
|
int target2;
|
|
|
|
int count;
|
|
|
|
int target;
|
|
|
|
char* buffer2;
|
|
|
|
char* buffer1;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class timer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static int init(int count);
|
2020-12-03 15:47:36 +01:00
|
|
|
static int kill(int timer);
|
|
|
|
static int set(float time, int caller, int callback);
|
2020-11-29 16:50:49 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
static timer_struct timer_struct;
|
|
|
|
static int setCount;
|
|
|
|
};
|