Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_QRFGroupConfig.c
Go to the documentation of this file.
2 {
3  INFANTRY = 1 << 0,
4  MOUNTED_INFANTRY = 1 << 1,
5  VEHICLE = 1 << 2,
6  AIR = 1 << 3,
7 }
8 
9 class SCR_QRFGroupConfig : ScriptAndConfig
10 {
11  [Attribute(desc: "Group/unit prefab")]
12  protected ResourceName m_sGroupPrefab;// (f.e. {E552DABF3636C2AD}Prefabs/Groups/OPFOR/Group_USSR_RifleSquad.et),
13 
14  [Attribute(SCR_EQRFGroupType.INFANTRY.ToString(), UIWidgets.ComboBox, desc: "Type of this group which will be used to determine if they can spawn for provided spawnpoint", enums: ParamEnumArray.FromEnum(SCR_EQRFGroupType))]
15  protected SCR_EQRFGroupType m_eGroupType;// (INFANTRY/VEHICLE/AIR),
16 
17  [Attribute("1", UIWidgets.Auto, "Cost of spawning such QRF group")]
18  protected int m_iSpawnCost;// (0/1/2/3...),
19 
20  [Attribute("-1", UIWidgets.Auto, "How many times this QRF unit can be used until we will run out of them where -1 == unlimited")]
21  protected int m_iNumberOfAvailableGroups;// (0 unlimited, 1/2/3...)
22 
23  //------------------------------------------------------------------------------------------------
24  ResourceName GetGroupPrefabName()
25  {
26  return m_sGroupPrefab;
27  }
28 
29  //------------------------------------------------------------------------------------------------
31  {
32  return m_eGroupType;
33  }
34 
35  //------------------------------------------------------------------------------------------------
37  {
38  return m_iSpawnCost;
39  }
40 
41  //------------------------------------------------------------------------------------------------
43  {
44  return m_iNumberOfAvailableGroups;
45  }
46 
47  //------------------------------------------------------------------------------------------------
48  void SetNumberOfAvailableGroups(int newNumber)
49  {
50  m_iNumberOfAvailableGroups = newNumber;
51  }
52 }
AIR
AIR
Definition: SCR_QRFGroupConfig.c:5
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SetNumberOfAvailableGroups
void SetNumberOfAvailableGroups(int newNumber)
Definition: SCR_QRFGroupConfig.c:48
Attribute
enum SCR_EQRFGroupType Attribute(desc:"Group/unit prefab")
Definition: SCR_QRFGroupConfig.c:11
MOUNTED_INFANTRY
MOUNTED_INFANTRY
Definition: SCR_QRFGroupConfig.c:3
GetGroupType
SCR_EQRFGroupType GetGroupType()
Determine group type of descriptor.
Definition: SCR_QRFGroupConfig.c:30
GetSpawnCost
int GetSpawnCost()
Definition: SCR_QRFGroupConfig.c:36
m_sGroupPrefab
ResourceName m_sGroupPrefab
Definition: SCR_ScenarioFrameworkSlotAI.c:45
GetNumberOfAvailableGroups
int GetNumberOfAvailableGroups()
Definition: SCR_QRFGroupConfig.c:42
INFANTRY
INFANTRY
Definition: SCR_QRFGroupConfig.c:2
SCR_EQRFGroupType
SCR_EQRFGroupType
Definition: SCR_QRFGroupConfig.c:1
m_iSpawnCost
protected int m_iSpawnCost
Definition: SCR_GameModeCampaign.c:67
VEHICLE
VEHICLE
Definition: SCR_QRFGroupConfig.c:4