Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
ForestGeneratorObjects.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
2 // Bindings of C++ helpers for ForestGeneratorEntity
3 //------------------------------------------------------------------------------------------------
4 
5 //------------------------------------------------------------------------------------------------
8 {
9  DistanceType m_iDistanceType;
11  {
12  m_iDistanceType = distanceType;
13  }
14 }
15 
16 //------------------------------------------------------------------------------------------------
17 class ForestGeneratorGroupIndexAttribute
18 {
19 }
20 
21 //------------------------------------------------------------------------------------------------
28 class ForestGeneratorCapsuleStartAttribute
29 {
30 }
31 
32 //------------------------------------------------------------------------------------------------
34 class ForestGeneratorCapsuleEndAttribute
35 {
36 }
37 
38 //------------------------------------------------------------------------------------------------
39 class SCR_ForestGeneratorTreeBase : ForestGeneratorTreeBase
40 {
41  [Attribute("0.8", UIWidgets.SpinBox, "Min scale of this object", params: "0 1000 0.01")]
42  float m_fMinScale;
43 
44  [Attribute("1.2", UIWidgets.SpinBox, "Max scale of this object", params: "0 1000 0.01")]
45  float m_fMaxScale;
46 
47  [Attribute("", UIWidgets.ResourcePickerThumbnail, "Prefab of this object", "et")]
48  ResourceName m_Prefab;
49 
50  [Attribute(defvalue: "1", uiwidget: UIWidgets.SpinBox, "Minimum required radius in the bottom layer for this object to spawn"), ForestGeneratorDistaceAttribute(DistanceType.BOTTOM)];
51  float m_fBotDistance;
52 
53  [Attribute("0", uiwidget: UIWidgets.SpinBox, "Maximum random pitch angle", "0 180 1")]
55 
56  [Attribute("0", uiwidget: UIWidgets.SpinBox, "Maximum random roll angle", "0 180 1")]
58 
59  [Attribute("0")]
61 
62  [ForestGeneratorGroupIndexAttribute()]
64 
65  float m_fScale = 2;
67 
68  void AdjustScale();
69 }
70 
71 //------------------------------------------------------------------------------------------------
73 {
74  IEntitySource source;
75  IEntity entity;
76  int id;
77  ref SCR_AABB bbox;
78  ref array<vector> points = new array<vector>();
79 
80  void GenerateAAB()
81  {
82  bbox = new SCR_AABB(points);
83  }
84 }
m_fMaxScale
float m_fMaxScale
Definition: ForestGeneratorObjects.c:45
SCR_ETreeType
SCR_ETreeType
Definition: ForestGeneratorEntity.c:2268
DistanceType
DistanceType
Definition: DistanceType.c:12
Attribute
class ForestGeneratorDistaceAttribute Attribute("0.8", UIWidgets.SpinBox, "Min scale of this object", params:"0 1000 0.01")] float m_fMinScale
m_iGroupIndex
int m_iGroupIndex
Definition: ForestGeneratorObjects.c:63
SCR_AABB
Definition: SCR_AABB.c:3
ForestGeneratorDistaceAttribute
void ForestGeneratorDistaceAttribute(DistanceType distanceType)
Definition: ForestGeneratorObjects.c:3
ForestGeneratorTreeBase
Definition: ForestGeneratorTreeBase.c:12
m_fBotDistance
float m_fBotDistance
Definition: ForestGeneratorObjects.c:50
m_iDistanceType
DistanceType m_iDistanceType
Definition: ForestGeneratorObjects.c:2
m_fRandomRollAngle
float m_fRandomRollAngle
Definition: ForestGeneratorObjects.c:57
m_eType
SCR_ETreeType m_eType
Definition: ForestGeneratorObjects.c:66
ForestGeneratorDistaceAttribute
Do not change this unless you change c++ as well.
Definition: ForestGeneratorObjects.c:7
ForestGeneratorShapeImportData
Definition: ForestGeneratorObjects.c:72
m_fVerticalOffset
float m_fVerticalOffset
Definition: ForestGeneratorObjects.c:60
AdjustScale
void AdjustScale()
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
m_fRandomPitchAngle
float m_fRandomPitchAngle
Definition: ForestGeneratorObjects.c:54
m_Prefab
ResourceName m_Prefab
Definition: ForestGeneratorObjects.c:48
m_fScale
float m_fScale
Definition: ForestGeneratorObjects.c:65