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_AIDecoIsArrayEmpty.c
Go to the documentation of this file.
1
class
SCR_AIDecoIsArrayEmpty
:
DecoratorScripted
2
{
3
static
const
string
VARIABLE_PORT =
"VariableIn"
;
4
5
//------------------------------------------------------------------------------------------------
6
static
override
bool
VisibleInPalette
() {
return
true
;}
7
8
//------------------------------------------------------------------------------------------------
9
protected
override
bool
TestFunction
(AIAgent owner)
10
{
11
bool
isEmpty;
12
Managed myManaged = null;
13
string
typeOfArray =
GetVariableType
(
true
, VARIABLE_PORT).ToString();
14
15
if
(!typeOfArray.Contains(
"array"
))
16
return
false
;
17
if
(!
GetVariableIn
(VARIABLE_PORT, myManaged))
18
return
false
;
19
20
GetGame
().GetScriptModule().Call(myManaged,
"IsEmpty"
,
false
, isEmpty);
21
22
return
isEmpty;
23
}
24
25
//------------------------------------------------------------------------------------------------
26
protected
static
ref
TStringArray
s_aVarsIn
= {
27
VARIABLE_PORT
28
};
29
override
TStringArray
GetVariablesIn
()
30
{
31
return
s_aVarsIn
;
32
}
33
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
DecoratorScripted
Definition
DecoratorScripted.c:13
DecoratorScripted::VisibleInPalette
override bool VisibleInPalette()
Definition
DecoratorScripted.c:15
Node::GetVariableIn
proto bool GetVariableIn(string name, out void val)
Node::GetVariableType
proto external GetVariableType(bool inputPort, string name)
SCR_AIDecoIsArrayEmpty
Definition
SCR_AIDecoIsArrayEmpty.c:2
SCR_AIDecoIsArrayEmpty::TestFunction
override bool TestFunction(AIAgent owner)
Definition
SCR_AIDecoIsArrayEmpty.c:9
SCR_AIDecoIsArrayEmpty::s_aVarsIn
static ref TStringArray s_aVarsIn
Definition
SCR_AIDecoIsArrayEmpty.c:26
SCR_AIDecoIsArrayEmpty::GetVariablesIn
override TStringArray GetVariablesIn()
Definition
SCR_AIDecoIsArrayEmpty.c:29
TStringArray
array< string > TStringArray
Definition
Types.c:385
scripts
Game
AI
ScriptedNodes
Utils
SCR_AIDecoIsArrayEmpty.c
Generated by
1.17.0