Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
ForestGeneratorLevels.c
Go to the documentation of this file.
1 [BaseContainerProps(namingConvention: NamingConvention.NC_MUST_HAVE_NAME)]
3 {
4  [Attribute(uiwidget: UIWidgets.Object, desc: "Tree groups to spawn in this forest generator level")]
5  ref array<ref TreeGroupClass> m_aTreeGroups;
6 
7  [Attribute(defvalue: "1", uiwidget: UIWidgets.CheckBox, desc: "Generate this level?")]
8  bool m_bGenerate;
9 
10  [Attribute(defvalue: "1", desc: "How many trees per hectare should be generated", uiwidget: UIWidgets.SpinBox)]
11  float m_fDensity;
12 
13  [Attribute(defvalue: "", category: "Forest", desc: "Curve defining level's outline scaling; from inside (left, forest core) to outside (right, forest outline)", uiwidget: UIWidgets.GraphDialog, params: "100 " + (SCALE_CURVE_MAX_VALUE - SCALE_CURVE_MIN_VALUE) + " 0 " + SCALE_CURVE_MIN_VALUE)]
14  ref Curve m_aOutlineScaleCurve;
15 
16  [Attribute(defvalue: "0", category: "Forest", desc: "Distance from shape over which the scaling occurs", uiwidget: UIWidgets.Slider, params: "0 100 0.1")]
17  float m_fOutlineScaleCurveDistance;
18 
19  SCR_EForestGeneratorLevelType m_eType;
20  ref array<float> m_aGroupProbas = {};
21 
22  static const float SCALE_CURVE_MAX_VALUE = 1;
23  static const float SCALE_CURVE_MIN_VALUE = 0;
24 }
25 
26 [BaseContainerProps(namingConvention: NamingConvention.NC_MUST_HAVE_NAME)]
27 class ForestGeneratorOutline : ForestGeneratorLevel
28 {
29  [Attribute(defvalue: "1", uiwidget: UIWidgets.SpinBox, desc: "How separated are the tree groups?")]
30  float m_fClusterStrength;
31 
32  [Attribute(defvalue: "15", uiwidget: UIWidgets.SpinBox, desc: "In what radius should trees around be taken into count for clusters?")]
33  float m_fClusterRadius;
34 
35  [Attribute("0", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_EForestGeneratorOutlineType), desc: "Which type of outline is this?")]
36  SCR_EForestGeneratorOutlineType m_eOutlineType;
37 
38  [Attribute(defvalue: "1", uiwidget: UIWidgets.SpinBox, desc: "Minimal distance from spline")]
39  float m_fMinDistance;
40 
41  [Attribute(defvalue: "1", uiwidget: UIWidgets.SpinBox, desc: "Maximal distance from spline")]
42  float m_fMaxDistance;
43 
44  //------------------------------------------------------------------------------------------------
45  void ForestGeneratorOutline()
46  {
47  m_eType = SCR_EForestGeneratorLevelType.OUTLINE;
48  }
49 }
50 
51 [BaseContainerProps(namingConvention: NamingConvention.NC_MUST_HAVE_NAME)]
52 class ForestGeneratorTopLevel : ForestGeneratorLevel
53 {
54  [Attribute(defvalue: "1", uiwidget: UIWidgets.SpinBox, desc: "How separated are the tree groups?")]
55  float m_fClusterStrength;
56 
57  [Attribute(defvalue: "15", uiwidget: UIWidgets.SpinBox, desc: "In what radius should trees around be taken into count for clusters?")]
58  float m_fClusterRadius;
59 
60  //------------------------------------------------------------------------------------------------
61  void ForestGeneratorTopLevel()
62  {
63  m_eType = SCR_EForestGeneratorLevelType.TOP;
64  }
65 }
66 
67 [BaseContainerProps(namingConvention: NamingConvention.NC_MUST_HAVE_NAME)]
68 class ForestGeneratorBottomLevel : ForestGeneratorLevel
69 {
70  void ForestGeneratorBottomLevel()
71  {
72  m_eType = SCR_EForestGeneratorLevelType.BOTTOM;
73  }
74 }
75 
76 enum SCR_EForestGeneratorLevelType
77 {
78  TOP,
79  BOTTOM,
80  OUTLINE,
81 }
82 
83 enum SCR_EForestGeneratorOutlineType
84 {
85  SMALL,
86  MIDDLE,
87 }
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
BOTTOM
@ BOTTOM
Definition: SCR_EBoxSide.c:7
m_eType
protected SCR_ECampaignBaseType m_eType
Definition: SCR_CampaignMilitaryBaseComponent.c:59
TOP
@ TOP
Definition: SCR_EBoxSide.c:6
ForestGeneratorLevel
Definition: ForestGeneratorLevels.c:2
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
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180