Nuclide
Software Development Kit for id Tech
Main Page
Related Pages
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
21
class
22
NSTimer
:
NSEntity
23
{
24
private
:
25
entity
m_eReceiver;
26
float
m_flTime;
27
bool
m_bRepeats;
28
29
virtual
void
_TimerThink(
void
);
30
virtual
void
_TempTimerThink(
void
);
31
32
public
:
33
void
NSTimer
(
void
);
34
36
static
NSTimer
ScheduleTimer(
entity
,
void
(),
float
,
bool
);
37
39
static
NSTimer
TemporaryTimer(
entity
,
void
(),
float
,
bool
);
40
42
virtual
void
RunTimer(
void
);
43
45
static
NSTimer
SetupTimer(
entity
,
void
(),
float
,
bool
);
46
48
nonvirtual
void
StopTimer(
void
);
49
50
virtual
void
OnRemoveEntity(
void
);
51
52
#ifdef SERVER
53
virtual
void
Save(
float
);
54
virtual
void
Restore(
string
,
string
);
55
#endif
56
};
NSEntity
NSEntity is the lowest of the user-accessible entity class.
Definition:
NSEntity.h:52
NSTimer
This class provides a way to trigger a function in the future.
Definition:
NSTimer.h:23
entity
entity() spawn
src
shared
NSTimer.h
Generated by
1.9.3