Nuclide
Software Development Kit for id Tech
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
NSTimer.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Vera Visions LLC.
3
*
4
* Permission to use, copy, modify, and distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
17
.void(
void
) _m_NSTimerFunc;
18
24
class
25
NSTimer
:
NSEntity
26
{
27
public
:
28
void
NSTimer
(
void
);
29
31
static
NSTimer
ScheduleTimer(entity,
void
(),
float
,
bool
);
32
34
static
NSTimer
TemporaryTimer(entity,
void
(),
float
,
bool
);
35
37
virtual
void
RunTimer(
void
);
38
40
static
NSTimer
SetupTimer(entity,
void
(),
float
,
bool
);
41
43
nonvirtual
void
StopTimer(
void
);
44
45
virtual
void
OnRemoveEntity(
void
);
46
47
#ifdef SERVER
48
virtual
void
Save(
float
);
49
virtual
void
Restore(
string
,
string
);
50
#endif
51
52
private
:
53
entity m_eReceiver;
54
float
m_flTime;
55
bool
m_bRepeats;
56
57
virtual
void
_TimerThink(
void
);
58
virtual
void
_TempTimerThink(
void
);
59
};
NSEntity
NSEntity is the lowest of the user-accessible entity class.
Definition:
NSEntity.h:54
NSTimer
This class provides a way to trigger a function in the future.
Definition:
NSTimer.h:26
src
shared
NSTimer.h
Generated by
1.9.3