Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_Comparer.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
9 };
10 
11 //------------------------------------------------------------------------------------------------
13 class 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 };
LESS_THAN
@ LESS_THAN
Definition: SCR_Comparer.c:5
Compare
SCR_VONRadialDisplay Compare
Definition: SCR_ContentBrowser_AddonsSubMenu.c:1612
SCR_ComparerOperator
SCR_ComparerOperator
Definition: SCR_Comparer.c:2
EQUAL
@ EQUAL
Definition: SCR_Comparer.c:4
GREATER_THAN_OR_EQUAL
@ GREATER_THAN_OR_EQUAL
Definition: SCR_Comparer.c:8
GREATER_THAN
@ GREATER_THAN
Definition: SCR_Comparer.c:7
LESS_THAN_OR_EQUAL
@ LESS_THAN_OR_EQUAL
Definition: SCR_Comparer.c:6