Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Data Structures | |
class | SCR_BaseAreaMeshComponentClass |
Enumerations | |
enum | EAreaMeshShape { ELLIPSE = 10, RECTANGLE = 20 } |
Functions | |
void | ActivateEveryFrame () |
Activate the area so it could be updated every frame. More... | |
void | DeactivateEveryFrame () |
Deactivate the area. More... | |
float | GetRadius () |
float | GetHeight () |
EAreaMeshShape | GetShape () |
int | GetResolution () |
void | GetDimensions2D (out float width, out float length) |
void | GetDimensions3D (out vector dimensions) |
protected vector | GetMeshOffset (IEntity owner) |
protected ResourceName | GetMaterial () |
Get material used for area mesh. More... | |
void | GenerateAreaMesh () |
Generate area mesh based on its settings. More... | |
override void | EOnFrame (IEntity owner, float timeSlice) |
override void | OnPostInit (IEntity owner) |
Called on PostInit when all components are added. More... | |
Variables | |
SCR_BaseAreaMeshComponentClass | PREVIEW_RESOLUTION = 48 |
protected EAreaMeshShape | m_eShape |
protected float | m_fHeight |
protected int | m_vResolution |
protected bool | m_bFollowTerrain |
protected bool | m_bStretchMaterial |
protected ResourceName | m_Material |
protected bool | m_bActiveEveryFrameOnInit |
protected bool | m_bHideInWorkbench |
protected vector | m_vLastPos |
protected vector | m_vLastDir |
enum EAreaMeshShape |
Enumerator | |
---|---|
ELLIPSE | Ellipse using Radius and Resolution. |
RECTANGLE | Rectangle shape that has a width and length. |
Definition at line 255 of file SCR_BaseAreaMeshComponent.c.
void ActivateEveryFrame | ( | ) |
Activate the area so it could be updated every frame.
Definition at line 40 of file SCR_BaseAreaMeshComponent.c.
void DeactivateEveryFrame | ( | ) |
Deactivate the area.
Definition at line 47 of file SCR_BaseAreaMeshComponent.c.
override void EOnFrame | ( | IEntity | owner, |
float | timeSlice | ||
) |
Definition at line 230 of file SCR_BaseAreaMeshComponent.c.
void GenerateAreaMesh | ( | ) |
Generate area mesh based on its settings.
Definition at line 128 of file SCR_BaseAreaMeshComponent.c.
void GetDimensions2D | ( | out float | width, |
out float | length | ||
) |
Returns width and length To be overloaded by inherited classes. By default uses radius as width and length unless function is overwritten
[out] | width | Width of Zone (x) |
[out] | length | length of Zone (z) |
Definition at line 92 of file SCR_BaseAreaMeshComponent.c.
void GetDimensions3D | ( | out vector | dimensions | ) |
Returns dimensions in vector
[out] | dimensions | width, height, length |
Definition at line 101 of file SCR_BaseAreaMeshComponent.c.
float GetHeight | ( | ) |
protected ResourceName GetMaterial | ( | ) |
Get material used for area mesh.
Definition at line 121 of file SCR_BaseAreaMeshComponent.c.
protected vector GetMeshOffset | ( | IEntity | owner | ) |
Get the offset of the AreaMesh. Can be overwritten to set custom position. Only x and z are used. Height is ignored
[in] | owner |
Definition at line 114 of file SCR_BaseAreaMeshComponent.c.
float GetRadius | ( | ) |
Get radius of the area. To be overloaded by inherited classes.
Definition at line 21 of file SCR_CampaignBuildingAreaMeshComponent.c.
int GetResolution | ( | ) |
Get Resolution of the area. Always 4 if Rectangle
Definition at line 78 of file SCR_BaseAreaMeshComponent.c.
EAreaMeshShape GetShape | ( | ) |
Return shape if areaMesh
Definition at line 69 of file SCR_BaseAreaMeshComponent.c.
protected bool m_bActiveEveryFrameOnInit |
Definition at line 30 of file SCR_BaseAreaMeshComponent.c.
protected bool m_bFollowTerrain |
Definition at line 21 of file SCR_BaseAreaMeshComponent.c.
protected bool m_bHideInWorkbench |
Definition at line 33 of file SCR_BaseAreaMeshComponent.c.
protected bool m_bStretchMaterial |
Definition at line 24 of file SCR_BaseAreaMeshComponent.c.
protected EAreaMeshShape m_eShape |
Definition at line 12 of file SCR_BaseAreaMeshComponent.c.
protected float m_fHeight |
Definition at line 15 of file SCR_BaseAreaMeshComponent.c.
protected ResourceName m_Material |
Definition at line 27 of file SCR_BaseAreaMeshComponent.c.
protected vector m_vLastDir |
Definition at line 36 of file SCR_BaseAreaMeshComponent.c.
protected vector m_vLastPos |
Definition at line 35 of file SCR_BaseAreaMeshComponent.c.
protected int m_vResolution |
Definition at line 18 of file SCR_BaseAreaMeshComponent.c.
SCR_BaseAreaMeshComponentClass PREVIEW_RESOLUTION = 48 |