Arma Reforger Script API
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
PrefabGeneratorEntity Interface Reference
Inheritance diagram for PrefabGeneratorEntity:
[legend]

Protected Member Functions

override bool _WB_OnKeyChanged (BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
 
vector GetPos (BaseContainerList points, int i)
 
override void OnShapeInitInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity)
 
void OffsetPointsMeta (notnull array< ref SCR_PrefabGeneratorPointMeta > metas, float offset)
 Offsets the points in the 'points' array.
 
float SamplePerlin (float time, float frequency=20, float seed=1, float amplitude=1, float phaseOffset=0)
 Get a perlin value given specific parameters.
 
void GenerateAssetPoints (array< ref SCR_PrefabGeneratorPointMeta > metas)
 generates array of positions(+other data) where each asset is supposed to spawn
 
void GenerateMetaListLine (notnull BaseContainerList points, notnull out array< ref SCR_PrefabGeneratorPointMeta > pointsMeta)
 
void GenerateMetaListSpline (array< ref SCR_PrefabGeneratorPointMeta > pointsMetaLine, array< vector > tesselatedPoints, array< ref SCR_PrefabGeneratorPointMeta > pointsMetaSpline)
 
override void OnShapeChangedInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity, array< vector > mins, array< vector > maxes)
 
void Generate ()
 Generate the assets.
 
void DrawCurveDebug (array< ref SCR_PrefabGeneratorPointMeta > metas)
 Draws debug curve.
 
void PerlinDebug ()
 saves perlin in an image for debug purposes
 
void PrefabGeneratorEntity (IEntitySource src, IEntity parent)
 
- Protected Member Functions inherited from SCR_GeneratorBaseEntity
void ResetGeneratorPosition (ShapeEntity shapeEntity=null)
 
void DeleteAllChildren ()
 Delete all children without distinction, using WorldEditorAPI.
 
array< vector > GetWorldAnchorPoints (notnull IEntitySource shapeEntitySrc)
 
array< vector > GetTesselatedShapePoints (notnull IEntitySource shapeEntitySrc)
 
array< vector > GetWorldTesselatedShapePoints (notnull IEntitySource shapeEntitySrc)
 
Color GetColor ()
 
void ColorShape ()
 Set shape's line colour to GetColor() value.
 

Protected Attributes

ref array< ResourceName > m_PrefabNames
 
ref array< float > m_Weights
 
bool m_bOnlyToVertices
 
float m_fDistance
 
bool m_bAlignWithShape
 
bool m_bUseXAsForward
 
bool m_bFlipForward
 
float m_fOffsetRight
 
float m_fOffsetVariance
 
float m_fGap
 
bool m_fRandomSpacing
 
float m_fOffsetUp
 
float m_fOffsetForward
 
bool m_bPerlinDens
 
float m_fPerlinThreshold
 
bool m_bPerlinAssetDistribution
 
bool m_bPerlinSize
 
float m_fPerlinFrequency
 
float m_fPerlinSeed
 
float m_fPerlinAmplitude
 
float m_fPerlinOffset
 
bool m_fPerlinThrowAway
 
bool m_bDrawDebug
 
ref array< ref SCR_PrefabGeneratorAssetPointm_aPoints = {}
 
- Protected Attributes inherited from SCR_GeneratorBaseEntity
IEntitySource m_Source
 
IEntitySource m_ParentShapeSource
 
bool m_bIsChangingWorkbenchKey
 

Static Protected Attributes

static ref array< ref Shape > s_aDebugShapes = {}
 
- Static Protected Attributes inherited from SCR_GeneratorBaseEntity
static const ref Color BASE_GENERATOR_COLOR = Color.White
 

Additional Inherited Members

- Public Member Functions inherited from SCR_GeneratorBaseEntity
override void _WB_OnParentChange (IEntitySource src, IEntitySource prevParentSrc)
 
override bool _WB_OnKeyChanged (BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
 
override bool _WB_CanSelect (IEntitySource src)
 
override void OnShapeChangedInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity, array< vector > mins, array< vector > maxes)
 
override void OnShapeInitInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity)
 
override void _WB_OnCreate (IEntitySource src)
 
void SCR_GeneratorBaseEntity (IEntitySource src, IEntity parent)
 
- Static Protected Member Functions inherited from SCR_GeneratorBaseEntity
static array< vector > GetPoints (notnull IEntitySource shapeEntitySrc)
 

Constructor & Destructor Documentation

◆ PrefabGeneratorEntity()

void PrefabGeneratorEntity.PrefabGeneratorEntity ( IEntitySource  src,
IEntity  parent 
)
protected

Member Function Documentation

◆ _WB_OnKeyChanged()

override bool PrefabGeneratorEntity._WB_OnKeyChanged ( BaseContainer  src,
string  key,
BaseContainerList  ownerContainers,
IEntity  parent 
)
protected

◆ DrawCurveDebug()

void PrefabGeneratorEntity.DrawCurveDebug ( array< ref SCR_PrefabGeneratorPointMeta metas)
protected

Draws debug curve.

◆ Generate()

void PrefabGeneratorEntity.Generate ( )
protected

Generate the assets.

◆ GenerateAssetPoints()

void PrefabGeneratorEntity.GenerateAssetPoints ( array< ref SCR_PrefabGeneratorPointMeta metas)
protected

generates array of positions(+other data) where each asset is supposed to spawn

◆ GenerateMetaListLine()

void PrefabGeneratorEntity.GenerateMetaListLine ( notnull BaseContainerList  points,
notnull out array< ref SCR_PrefabGeneratorPointMeta pointsMeta 
)
protected

◆ GenerateMetaListSpline()

void PrefabGeneratorEntity.GenerateMetaListSpline ( array< ref SCR_PrefabGeneratorPointMeta pointsMetaLine,
array< vector >  tesselatedPoints,
array< ref SCR_PrefabGeneratorPointMeta pointsMetaSpline 
)
protected

◆ GetPos()

vector PrefabGeneratorEntity.GetPos ( BaseContainerList  points,
int  i 
)
protected

◆ OffsetPointsMeta()

void PrefabGeneratorEntity.OffsetPointsMeta ( notnull array< ref SCR_PrefabGeneratorPointMeta metas,
float  offset 
)
protected

Offsets the points in the 'points' array.

◆ OnShapeChangedInternal()

override void PrefabGeneratorEntity.OnShapeChangedInternal ( IEntitySource  shapeEntitySrc,
ShapeEntity  shapeEntity,
array< vector >  mins,
array< vector >  maxes 
)
protected

◆ OnShapeInitInternal()

override void PrefabGeneratorEntity.OnShapeInitInternal ( IEntitySource  shapeEntitySrc,
ShapeEntity  shapeEntity 
)
protected

◆ PerlinDebug()

void PrefabGeneratorEntity.PerlinDebug ( )
protected

saves perlin in an image for debug purposes

◆ SamplePerlin()

float PrefabGeneratorEntity.SamplePerlin ( float  time,
float  frequency = 20,
float  seed = 1,
float  amplitude = 1,
float  phaseOffset = 0 
)
protected

Get a perlin value given specific parameters.

Member Data Documentation

◆ m_aPoints

ref array<ref SCR_PrefabGeneratorAssetPoint> PrefabGeneratorEntity.m_aPoints = {}
protected

◆ m_bAlignWithShape

bool PrefabGeneratorEntity.m_bAlignWithShape
protected

◆ m_bDrawDebug

bool PrefabGeneratorEntity.m_bDrawDebug
protected

◆ m_bFlipForward

bool PrefabGeneratorEntity.m_bFlipForward
protected

◆ m_bOnlyToVertices

bool PrefabGeneratorEntity.m_bOnlyToVertices
protected

◆ m_bPerlinAssetDistribution

bool PrefabGeneratorEntity.m_bPerlinAssetDistribution
protected

◆ m_bPerlinDens

bool PrefabGeneratorEntity.m_bPerlinDens
protected

◆ m_bPerlinSize

bool PrefabGeneratorEntity.m_bPerlinSize
protected

◆ m_bUseXAsForward

bool PrefabGeneratorEntity.m_bUseXAsForward
protected

◆ m_fDistance

float PrefabGeneratorEntity.m_fDistance
protected

◆ m_fGap

float PrefabGeneratorEntity.m_fGap
protected

◆ m_fOffsetForward

float PrefabGeneratorEntity.m_fOffsetForward
protected

◆ m_fOffsetRight

float PrefabGeneratorEntity.m_fOffsetRight
protected

◆ m_fOffsetUp

float PrefabGeneratorEntity.m_fOffsetUp
protected

◆ m_fOffsetVariance

float PrefabGeneratorEntity.m_fOffsetVariance
protected

◆ m_fPerlinAmplitude

float PrefabGeneratorEntity.m_fPerlinAmplitude
protected

◆ m_fPerlinFrequency

float PrefabGeneratorEntity.m_fPerlinFrequency
protected

◆ m_fPerlinOffset

float PrefabGeneratorEntity.m_fPerlinOffset
protected

◆ m_fPerlinSeed

float PrefabGeneratorEntity.m_fPerlinSeed
protected

◆ m_fPerlinThreshold

float PrefabGeneratorEntity.m_fPerlinThreshold
protected

◆ m_fPerlinThrowAway

bool PrefabGeneratorEntity.m_fPerlinThrowAway
protected

◆ m_fRandomSpacing

bool PrefabGeneratorEntity.m_fRandomSpacing
protected

◆ m_PrefabNames

ref array<ResourceName> PrefabGeneratorEntity.m_PrefabNames
protected

◆ m_Weights

ref array<float> PrefabGeneratorEntity.m_Weights
protected

◆ s_aDebugShapes

ref array<ref Shape> PrefabGeneratorEntity.s_aDebugShapes = {}
staticprotected

The documentation for this interface was generated from the following file: