Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
EventSystemDoc.c
Go to the documentation of this file.
1
8
65
66
#ifdef DOXYGEN
67
69
class
TestWorldSystem:
WorldSystem
70
{
71
void
Helllo();
72
73
[EventAttribute()]
74
void
SomeEventA(TestWorldSystem sender,
int
param1
,
string
param2
);
75
76
[EventAttribute()]
77
void
SomeEventB(
string
msg);
78
79
void
Process()
80
{
81
ThrowEvent(SomeEventA,
this
, 45,
"hello"
);
82
ThrowEvent(SomeEventB,
"wololoo"
);
83
}
84
}
86
88
class
SomeControllerClass:
ScriptComponentClass
89
{
90
}
91
92
class
SomeController:
ScriptComponent
93
{
94
TestWorldSystem m_system;
95
96
97
[ReceiverAttribute()]
98
void
OnSomeEventA1(TestWorldSystem sender,
int
param1
,
string
param2
)
99
{
100
Print
(
"OnSomeEventA1"
);
101
}
102
103
[ReceiverAttribute()]
104
void
OnSomeEventA2(TestWorldSystem sender,
int
param1
,
string
param2
)
105
{
106
Print
(
"OnSomeEventA2"
);
107
}
108
109
[ReceiverAttribute()]
110
void
OnSomeEventB(
string
msg)
111
{
112
Print
(
"OnSomeEventB"
);
113
}
114
115
void
Init
(TestWorldSystem system)
116
{
117
m_system = system;
118
TestWorldSystem.ConnectEvent(system.SomeEventA,
this
.OnSomeEventA1);
119
TestWorldSystem.ConnectEvent(system.SomeEventA,
this
.OnSomeEventA2);
120
TestWorldSystem.ConnectEvent(system.SomeEventB,
this
.OnSomeEventB);
121
}
122
123
void
~SomeController()
124
{
125
EventProvider.DisconnectEvents(m_system,
this
);
126
}
127
}
129
130
#endif
Init
override void Init()
Definition
CharacterCameraHandlerComponent.c:40
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
WorldSystem
Definition
WorldSystem.c:17
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
param2
T2 param2
Definition
tuple.c:92
param1
Tuple param1
scripts
GameLib
EventSystemDoc.c
Generated by
1.17.0