Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScriptInvokerHelper.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
2// Generic Script invokers. To be used in any script that does not need specific invokers
3// If a series of types comes up often, it is good to add it here (under a generic name)
4//------------------------------------------------------------------------------------------------
5
6// default no parameters type
9typedef ScriptInvokerBase<ScriptInvokerVoidMethod> ScriptInvokerVoid;
10
11// common values
12
13// int
15void ScriptInvokerInt2Method(int i1, int i2);
16void ScriptInvokerInt3Method(int i1, int i2, int i3);
17void ScriptInvokerInt4Method(int i1, int i2, int i3, int i4);
18void ScriptInvokerInt5Method(int i1, int i2, int i3, int i4, int i5);
24typedef ScriptInvokerBase<ScriptInvokerIntMethod> ScriptInvokerInt;
25typedef ScriptInvokerBase<ScriptInvokerInt2Method> ScriptInvokerInt2;
26typedef ScriptInvokerBase<ScriptInvokerInt3Method> ScriptInvokerInt3;
27typedef ScriptInvokerBase<ScriptInvokerInt4Method> ScriptInvokerInt4;
28typedef ScriptInvokerBase<ScriptInvokerInt5Method> ScriptInvokerInt5;
29
30// bool
32void ScriptInvokerBool2Method(bool b1, bool b2);
33void ScriptInvokerBool3Method(bool b1, bool b2, bool b3);
34void ScriptInvokerBool4Method(bool b1, bool b2, bool b3, bool b4);
35void ScriptInvokerBool5Method(bool b1, bool b2, bool b3, bool b4, bool b5);
41typedef ScriptInvokerBase<ScriptInvokerBoolMethod> ScriptInvokerBool;
42typedef ScriptInvokerBase<ScriptInvokerBool2Method> ScriptInvokerBool2;
43typedef ScriptInvokerBase<ScriptInvokerBool3Method> ScriptInvokerBool3;
44typedef ScriptInvokerBase<ScriptInvokerBool4Method> ScriptInvokerBool4;
45typedef ScriptInvokerBase<ScriptInvokerBool5Method> ScriptInvokerBool5;
46
47// float
49void ScriptInvokerFloat2Method(float f1, float f2);
50void ScriptInvokerFloat3Method(float f1, float f2, float f3);
51void ScriptInvokerFloat4Method(float f1, float f2, float f3, float f4);
52void ScriptInvokerFloat5Method(float f1, float f2, float f3, float f4, float f5);
58typedef ScriptInvokerBase<ScriptInvokerFloatMethod> ScriptInvokerFloat;
59typedef ScriptInvokerBase<ScriptInvokerFloat2Method> ScriptInvokerFloat2;
60typedef ScriptInvokerBase<ScriptInvokerFloat3Method> ScriptInvokerFloat3;
61typedef ScriptInvokerBase<ScriptInvokerFloat4Method> ScriptInvokerFloat4;
62typedef ScriptInvokerBase<ScriptInvokerFloat5Method> ScriptInvokerFloat5;
63
64// string
66void ScriptInvokerString2Method(string s1, string s2);
67void ScriptInvokerString3Method(string s1, string s2, string s3);
68void ScriptInvokerString4Method(string s1, string s2, string s3, string s4);
69void ScriptInvokerString5Method(string s1, string s2, string s3, string s4, string s5);
75typedef ScriptInvokerBase<ScriptInvokerStringMethod> ScriptInvokerString;
76typedef ScriptInvokerBase<ScriptInvokerString2Method> ScriptInvokerString2;
77typedef ScriptInvokerBase<ScriptInvokerString3Method> ScriptInvokerString3;
78typedef ScriptInvokerBase<ScriptInvokerString4Method> ScriptInvokerString4;
79typedef ScriptInvokerBase<ScriptInvokerString5Method> ScriptInvokerString5;
80
81// IEntity
84//void ScriptInvokerEntity3Method(IEntity e1, IEntity e2, IEntity e3);
85//void ScriptInvokerEntity4Method(IEntity e1, IEntity e2, IEntity e3, IEntity e4);
86//void ScriptInvokerEntity5Method(IEntity e1, IEntity e2, IEntity e3, IEntity e4, IEntity e5);
89//typedef func ScriptInvokerEntity3Method;
90//typedef func ScriptInvokerEntity4Method;
91//typedef func ScriptInvokerEntity5Method;
92typedef ScriptInvokerBase<ScriptInvokerEntityMethod> ScriptInvokerEntity;
93typedef ScriptInvokerBase<ScriptInvokerEntity2Method> ScriptInvokerEntity2;
94//typedef ScriptInvokerBase<ScriptInvokerEntity3Method> ScriptInvokerEntity3;
95//typedef ScriptInvokerBase<ScriptInvokerEntity4Method> ScriptInvokerEntity4;
96//typedef ScriptInvokerBase<ScriptInvokerEntity5Method> ScriptInvokerEntity5;
97
98// vector
101typedef ScriptInvokerBase<ScriptInvokerVectorMethod> ScriptInvokerVector;
102
103// Widget
106typedef ScriptInvokerBase<ScriptInvokerWidgetMethod> ScriptInvokerWidget;
107
108// SCR_ScriptedWidgetComponent
111typedef ScriptInvokerBase<ScriptInvokerSCRScriptedWidgetComponentMethod> ScriptInvokerSCRScriptedWidgetComponent;
112
113// BaseWorld
116typedef ScriptInvokerBase<ScriptInvokerBaseWorldMethod> ScriptInvokerBaseWorld;
117
118// RplId
121typedef ScriptInvokerBase<ScriptInvokerRplIdMethod> ScriptInvokerRplId;
122
123//IEntity and BaseInventoryStorageComponent
124void ScriptInvokerEntityAndStorageMethod(IEntity entity, BaseInventoryStorageComponent storageComponent);
126typedef ScriptInvokerBase<ScriptInvokerEntityAndStorageMethod> ScriptInvokerEntityAndStorage;
127
128//~ Faction
131typedef ScriptInvokerBase<ScriptInvokerFactionMethod> ScriptInvokerFaction;
132
133// this is an example class to show how to define and use script invokers
134/*
135class SCR_ExampleClass
136{
137 // define the event
138 protected ref ScriptInvokerInt m_OnExampleEvent;
139
140 // return script invoker
141 ScriptInvokerInt GetOnExampleEvent()
142 {
143 if (!m_OnExampleEvent)
144 m_OnExampleEvent = new ScriptInvokerInt();
145
146 return m_OnExampleEvent;
147 }
148
149 protected void ExampleInvoke()
150 {
151 int exampleInt;
152 if (m_OnExampleEvent) // null if nobody subscribed to it from the outside
153 m_OnExampleEvent.Invoke(exampleInt);
154 }
155
156 protected void MyExampleFunction(int exampleInt)
157 {
158 Print(string.Format("I was executed %1", exampleInt), LogLevel.VERBOSE);
159 }
160
161 protected void ExampleInsert()
162 {
163 SCR_ExampleClass exampleClass; // get this from somewhere
164 // ...
165 exampleClass.GetOnExampleEvent().Insert(MyExampleFunction);
166 }
167
168 protected void ExampleRemove()
169 {
170 SCR_ExampleClass exampleClass; // get this from somewhere
171 // ...
172 exampleClass.GetOnExampleEvent().Remove(MyExampleFunction);
173 }
174}
175*/
func ScriptInvokerBool3Method
func ScriptInvokerBool5Method
func ScriptInvokerIntMethod
func ScriptInvokerFloat2Method
func ScriptInvokerString2Method
ScriptInvokerBase< ScriptInvokerBool2Method > ScriptInvokerBool2
ScriptInvokerBase< ScriptInvokerFloatMethod > ScriptInvokerFloat
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
ScriptInvokerBase< ScriptInvokerFloat4Method > ScriptInvokerFloat4
ScriptInvokerBase< ScriptInvokerFloat5Method > ScriptInvokerFloat5
ScriptInvokerBase< ScriptInvokerString2Method > ScriptInvokerString2
func ScriptInvokerRplIdMethod
func ScriptInvokerSCRScriptedWidgetComponentMethod
ScriptInvokerBase< ScriptInvokerString5Method > ScriptInvokerString5
func ScriptInvokerInt3Method
func ScriptInvokerEntityMethod
ScriptInvokerBase< ScriptInvokerEntity2Method > ScriptInvokerEntity2
ScriptInvokerBase< ScriptInvokerInt2Method > ScriptInvokerInt2
ScriptInvokerBase< ScriptInvokerEntityAndStorageMethod > ScriptInvokerEntityAndStorage
ScriptInvokerBase< ScriptInvokerInt5Method > ScriptInvokerInt5
func ScriptInvokerInt5Method
ScriptInvokerBase< ScriptInvokerBoolMethod > ScriptInvokerBool
ScriptInvokerBase< ScriptInvokerInt3Method > ScriptInvokerInt3
func ScriptInvokerFloat4Method
func ScriptInvokerBaseWorldMethod
func ScriptInvokerVoidMethod
func ScriptInvokerBoolMethod
func ScriptInvokerStringMethod
ScriptInvokerBase< ScriptInvokerWidgetMethod > ScriptInvokerWidget
func ScriptInvokerBool2Method
ScriptInvokerBase< ScriptInvokerString4Method > ScriptInvokerString4
func ScriptInvokerFloatMethod
ScriptInvokerBase< ScriptInvokerStringMethod > ScriptInvokerString
func ScriptInvokerString5Method
func ScriptInvokerInt4Method
ScriptInvokerBase< ScriptInvokerIntMethod > ScriptInvokerInt
func ScriptInvokerFloat3Method
ScriptInvokerBase< ScriptInvokerVectorMethod > ScriptInvokerVector
func ScriptInvokerBool4Method
func ScriptInvokerString4Method
func ScriptInvokerWidgetMethod
ScriptInvokerBase< ScriptInvokerSCRScriptedWidgetComponentMethod > ScriptInvokerSCRScriptedWidgetComponent
ScriptInvokerBase< ScriptInvokerBaseWorldMethod > ScriptInvokerBaseWorld
func ScriptInvokerInt2Method
func ScriptInvokerFloat5Method
func ScriptInvokerString3Method
func ScriptInvokerFactionMethod
ScriptInvokerBase< ScriptInvokerBool4Method > ScriptInvokerBool4
func ScriptInvokerEntityAndStorageMethod
ScriptInvokerBase< ScriptInvokerRplIdMethod > ScriptInvokerRplId
ScriptInvokerBase< ScriptInvokerEntityMethod > ScriptInvokerEntity
ScriptInvokerBase< ScriptInvokerString3Method > ScriptInvokerString3
ScriptInvokerBase< ScriptInvokerInt4Method > ScriptInvokerInt4
ScriptInvokerBase< ScriptInvokerBool3Method > ScriptInvokerBool3
ScriptInvokerBase< ScriptInvokerFloat2Method > ScriptInvokerFloat2
ScriptInvokerBase< ScriptInvokerBool5Method > ScriptInvokerBool5
func ScriptInvokerEntity2Method
ScriptInvokerBase< ScriptInvokerFactionMethod > ScriptInvokerFaction
func ScriptInvokerVectorMethod
ScriptInvokerBase< ScriptInvokerFloat3Method > ScriptInvokerFloat3
Replication item identifier.
Definition RplId.c:14