Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GroupPreset.c
Go to the documentation of this file.
3 {
4  [Attribute(desc: "Name of the Group")]
5  protected string m_sGroupName;
6 
7  [Attribute("", UIWidgets.ResourcePickerThumbnail, "Flag icon of this particular group.", params: "edds")]
8  private ResourceName m_sGroupFlag;
9 
10  [Attribute(desc: "Description of the Group")]
11  protected string m_sGroupDescription;
12 
13  [Attribute(desc: "Count of group members.")]
14  protected int m_iGroupSize;
15 
16  [Attribute(desc: "Radio frequency for communication in kHz.")]
17  protected int m_iRadioFrequency;
18 
19  [Attribute(desc: "Group is private.")]
20  protected bool m_bIsPrivate;
21 
22 
23  //------------------------------------------------------------------------------------------------
24  void SetupGroup(SCR_AIGroup group)
25  {
26  group.SetCustomName(m_sGroupName, 0);
27  group.SetRadioFrequency(m_iRadioFrequency);
28  group.SetMaxGroupMembers(m_iGroupSize);
29  group.SetPrivate(m_bIsPrivate);
30  group.SetCustomDescription(m_sGroupDescription, 0);
31 
32  if (!m_sGroupFlag.IsEmpty())
33  group.SetCustomGroupFlag(m_sGroupFlag);
34  }
35 
36  //Getters
37  //------------------------------------------------------------------------------------------------
38  string GetGroupName()
39  {
40  return m_sGroupName;
41  }
42 
43  //------------------------------------------------------------------------------------------------
44  ResourceName GetGroupFlag()
45  {
46  return m_sGroupFlag;
47  }
48 
49  //------------------------------------------------------------------------------------------------
50  int GetGroupSize()
51  {
52  return m_iGroupSize;
53  }
54 
55  //------------------------------------------------------------------------------------------------
56  int GetRadioFrequency()
57  {
58  return m_iRadioFrequency;
59  }
60 
61  //------------------------------------------------------------------------------------------------
62  string GetGroupDescription()
63  {
64  return m_sGroupDescription;
65  }
66 
67  //------------------------------------------------------------------------------------------------
68  bool IsPrivate()
69  {
70  return m_bIsPrivate;
71  }
72 
73  //Setters
74  //------------------------------------------------------------------------------------------------
75 
76  void SetGroupName(string name)
77  {
78  m_sGroupName = name;
79  }
80 
81  //------------------------------------------------------------------------------------------------
82  void SetGroupSize(int size)
83  {
84  m_iGroupSize = size;
85  }
86 
87  //------------------------------------------------------------------------------------------------
88  void SetRadioFrequency(int freq)
89  {
90  m_iRadioFrequency = freq;
91  }
92 
93  //------------------------------------------------------------------------------------------------
94  void SetIsPrivate(bool privacy)
95  {
96  m_bIsPrivate = privacy;
97  }
98 }
SCR_GroupPreset
Definition: SCR_GroupPreset.c:2
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_AIGroup
Definition: SCR_AIGroup.c:68
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468