Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Comparer.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
10
11//------------------------------------------------------------------------------------------------
13class SCR_Comparer<Class __ValueType>
14{
15 //------------------------------------------------------------------------------------------------
16 static bool Compare(SCR_ComparerOperator op, __ValueType a, __ValueType b)
17 {
18 switch (op)
19 {
20 case SCR_ComparerOperator.EQUAL:
21 return a == b;
22
23 case SCR_ComparerOperator.LESS_THAN:
24 return a < b;
25
26 case SCR_ComparerOperator.LESS_THAN_OR_EQUAL:
27 return a <= b;
28
29 case SCR_ComparerOperator.GREATER_THAN:
30 return a > b;
31
32 case SCR_ComparerOperator.GREATER_THAN_OR_EQUAL:
33 return a >= b;
34 }
35
36 return false;
37 }
38};
SCR_ComparerOperator
Definition SCR_Comparer.c:3
@ GREATER_THAN_OR_EQUAL
Definition SCR_Comparer.c:8
@ LESS_THAN_OR_EQUAL
Definition SCR_Comparer.c:6
SCR_VONRadialDisplay Compare
Super root of all classes in Enforce script.
Definition Types.c:35