-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTimeVariantObject.h
More file actions
41 lines (40 loc) · 857 Bytes
/
Copy pathTimeVariantObject.h
File metadata and controls
41 lines (40 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include <windows.h>
namespace AwpSoftGameModule
{
class TimeVariantObject
{
public:
long long TimeRemain;
bool DisableTimeVariant;
TimeVariantObject();
virtual ~TimeVariantObject();
void clearTimeRemain();
virtual void reset();
virtual bool giveTime(int timeGived);
};
class TimerTrigger :public TimeVariantObject
{
public:
bool Ready;
int Cycle;
TimerTrigger(int timerCycle = 1);
void clearStates();
bool tryTriggerOnce();
virtual void reset();
virtual bool giveTime(int timeGived);
};
class TimerClip :public TimeVariantObject
{
public:
int Charged;
int MaxCharge;
int Cycle;
TimerClip(int maximumCharge = 1, int timerCycle = 1);
void clearStates();
bool tryConsume(int count = 1);
int tryConsumePart(int count = 1);
virtual void reset();
virtual bool giveTime(int timeGived);
};
};