Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_MapMarkerManagerSystem.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
class
SCR_MapMarkerManagerSystem
:
GameSystem
3
{
4
override
static
void
InitInfo(
WorldSystemInfo
outInfo)
5
{
6
outInfo
7
.SetAbstract(
false
)
8
.SetLocation(
ESystemLocation
.Client)
9
.AddPoint(
ESystemPoint
.PostFrame);
10
}
11
12
protected
ref array<SCR_MapMarkerManagerComponent>
m_Components
= {};
13
14
//------------------------------------------------------------------------------------------------
15
override
protected
void
OnUpdatePoint
(
WorldUpdatePointArgs
args)
16
{
17
float
timeSlice = args.GetTimeSliceSeconds();
18
19
foreach
(SCR_MapMarkerManagerComponent comp:
m_Components
)
20
{
21
comp.Update(timeSlice);
22
}
23
}
24
25
//------------------------------------------------------------------------------------------------
26
override
protected
void
OnDiag
(
float
timeSlice)
27
{
28
DbgUI
.Begin(
"SCR_MapMarkerManagerSystem"
);
29
30
DbgUI
.Text(
"Items: "
+
m_Components
.Count());
31
32
if
(
DbgUI
.Button(
"Dump active components"
))
33
{
34
foreach
(SCR_MapMarkerManagerComponent comp:
m_Components
)
35
{
36
Print
(comp.GetOwner(),
LogLevel
.ERROR);
37
}
38
}
39
40
DbgUI
.End();
41
}
42
43
//------------------------------------------------------------------------------------------------
44
void
Register
(SCR_MapMarkerManagerComponent component)
45
{
46
//About to be deleted
47
if
(component.GetOwner().IsDeleted() || (component.GetOwner().GetFlags() &
EntityFlags
.USER5))
48
return
;
49
50
if
(
m_Components
.Find(component) != -1)
51
return
;
52
53
m_Components
.Insert(component);
54
}
55
56
//------------------------------------------------------------------------------------------------
57
void
Unregister
(SCR_MapMarkerManagerComponent component)
58
{
59
int
idx
=
m_Components
.Find(component);
60
if
(
idx
== -1)
61
return
;
62
63
m_Components
.Remove(
idx
);
64
}
65
}
idx
int idx
Definition
AIControlComponentSerializer.c:13
DbgUI
Definition
DbgUI.c:66
GameSystem
Definition
GameSystem.c:16
SCR_MapMarkerManagerSystem
Definition
SCR_MapMarkerManagerSystem.c:3
SCR_MapMarkerManagerSystem::OnDiag
void OnDiag(float timeSlice)
Definition
SCR_MapMarkerManagerSystem.c:26
SCR_MapMarkerManagerSystem::m_Components
ref array< SCR_MapMarkerManagerComponent > m_Components
Definition
SCR_MapMarkerManagerSystem.c:12
SCR_MapMarkerManagerSystem::OnUpdatePoint
void OnUpdatePoint(WorldUpdatePointArgs args)
Definition
SCR_MapMarkerManagerSystem.c:15
SCR_MapMarkerManagerSystem::Register
void Register(SCR_MapMarkerManagerComponent component)
Definition
SCR_MapMarkerManagerSystem.c:44
SCR_MapMarkerManagerSystem::Unregister
void Unregister(SCR_MapMarkerManagerComponent component)
Definition
SCR_MapMarkerManagerSystem.c:57
WorldSystemInfo
Structure holding world system meta-information required by the engine.
Definition
WorldSystemInfo.c:14
WorldUpdatePointArgs
Structure holding extra data of WorldSystem update point.
Definition
WorldUpdatePointArgs.c:14
ESystemPoint
WorldSystemPoint ESystemPoint
Definition
gameLib.c:7
ESystemLocation
WorldSystemLocation ESystemLocation
Definition
gameLib.c:10
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
EntityFlags
EntityFlags
Various entity flags.
Definition
EntityFlags.c:14
scripts
Game
Systems
SCR_MapMarkerManagerSystem.c
Generated by
1.17.0