Arma Reforger Script API
|
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_PrefabGeneratorAssetPoint > | m_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) |
|
protected |
|
protected |
Implements SCR_GeneratorBaseEntity.
|
protected |
Draws debug curve.
|
protected |
Generate the assets.
|
protected |
generates array of positions(+other data) where each asset is supposed to spawn
|
protected |
|
protected |
|
protected |
|
protected |
Offsets the points in the 'points' array.
|
protected |
Implements SCR_GeneratorBaseEntity.
|
protected |
Implements SCR_GeneratorBaseEntity.
|
protected |
saves perlin in an image for debug purposes
|
protected |
Get a perlin value given specific parameters.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |