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_QRFGroupConfig.c
Go to the documentation of this file.
1
enum
SCR_EQRFGroupType
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
//------------------------------------------------------------------------------------------------
30
SCR_EQRFGroupType
GetGroupType
()
31
{
32
return
m_eGroupType;
33
}
34
35
//------------------------------------------------------------------------------------------------
36
int
GetSpawnCost
()
37
{
38
return
m_iSpawnCost;
39
}
40
41
//------------------------------------------------------------------------------------------------
42
int
GetNumberOfAvailableGroups
()
43
{
44
return
m_iNumberOfAvailableGroups;
45
}
46
47
//------------------------------------------------------------------------------------------------
48
void
SetNumberOfAvailableGroups
(
int
newNumber)
49
{
50
m_iNumberOfAvailableGroups = newNumber;
51
}
52
}
AIR
@ AIR
Definition
EMilitarySymbol.c:22
VEHICLE
@ VEHICLE
Definition
SCR_EArsenalItemType.c:25
INFANTRY
@ INFANTRY
Definition
SCR_PlayerDataConfigs.c:391
SetNumberOfAvailableGroups
void SetNumberOfAvailableGroups(int newNumber)
Definition
SCR_QRFGroupConfig.c:48
GetSpawnCost
int GetSpawnCost()
Definition
SCR_QRFGroupConfig.c:36
GetNumberOfAvailableGroups
int GetNumberOfAvailableGroups()
Definition
SCR_QRFGroupConfig.c:42
SCR_EQRFGroupType
SCR_EQRFGroupType
Definition
SCR_QRFGroupConfig.c:2
MOUNTED_INFANTRY
MOUNTED_INFANTRY
Definition
SCR_QRFGroupConfig.c:13
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
GetGroupType
int GetGroupType()
Getter for type of groups that are intended to be spawned with this slot.
Definition
SCR_ScenarioFrameworkQRFSlotAI.c:18
m_sGroupPrefab
ResourceName m_sGroupPrefab
Definition
SCR_ScenarioFrameworkSlotTaskAI.c:36
ResourceName
Definition
ResourceName.c:13
ScriptAndConfig
Definition
Types.c:124
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Configs
SCR_QRFGroupConfig.c
Generated by
1.17.0