Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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
9class 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),
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
void SetNumberOfAvailableGroups(int newNumber)
int GetSpawnCost()
int GetNumberOfAvailableGroups()
SCR_EQRFGroupType
MOUNTED_INFANTRY
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
int GetGroupType()
Getter for type of groups that are intended to be spawned with this slot.
ResourceName m_sGroupPrefab
SCR_FieldOfViewSettings Attribute