|
Arma Reforger Script API
|
Static Public Member Functions | |
| static float | MeasureEntity (ResourceName entityName, int measureAxis) |
Public Attributes | |
| bool | m_bDebug |
Protected Member Functions | |
| void | Generate () |
| void | GenerateInStraightLine (notnull array< vector > anchorPoints, float rotationOffset, int forwardAxis) |
| void | GenerateClosestToShape (notnull array< vector > anchorPoints, float rotationOffset) |
| IEntitySource | CreateWallEntity (WorldEditorAPI worldEditorAPI, BaseWorld world, ResourceName resourceName, inout vector startPos, vector relPosOffset, float prePadding, float postPadding, float dirOffset, int anchorLimit=-1) |
| IEntitySource | PlacePrefab (bool generate, ResourceName name, out vector pos, vector dir, vector prevDir, float rotationAdjustment, bool isGeneratorVisible, float length, float prePadding, float postPadding, float offsetUp, bool alignNext, bool prepadNext, bool snapToGround=false, bool allowClipping=false, vector offsetRight=vector.Zero) |
| override void | _WB_OnParentChange (IEntitySource src, IEntitySource prevParentSrc) |
| override bool | _WB_OnKeyChanged (BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent) |
| override void | OnShapeChangedInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity, array< vector > mins, array< vector > maxes) |
Protected Member Functions inherited from SCR_LineTerrainShaperGeneratorBaseEntity | |
| override void | OnShapeInitInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity) |
| override void | OnShapeTransformInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity, array< vector > mins, array< vector > maxes) |
| void | UpdateTerrainSimple (bool forceUpdate=false) |
| wrapper method around UpdateTerrain that sets m_ShapeEntity up | |
| void | UpdateTerrain (notnull ShapeEntity shapeEntity, bool forceUpdate, notnull array< vector > updateMins, notnull array< vector > updateMaxes) |
| void | SCR_LineTerrainShaperGeneratorBaseEntity (IEntitySource src, IEntity parent) |
Protected Member Functions inherited from SCR_LineGeneratorBaseEntity | |
| void | ResetShapeNextPointHelper () |
| override void | _WB_AfterWorldUpdate (float timeSlice) |
| override int | _WB_GetAfterWorldUpdateSpecs (IEntitySource src) |
Protected Member Functions inherited from SCR_GeneratorBaseEntity | |
| override void | OnIntersectingShapeChangedXZInternal (IEntitySource shapeEntitySrc, IEntitySource other, array< vector > mins, array< vector > maxes) |
| void | ResetGeneratorPosition (ShapeEntity shapeEntity=null) |
| void | DeleteAllChildren () |
| Delete all children without distinction, using WorldEditorAPI. | |
| void | SetSeed () |
| Color | GetColor () |
| void | ColorShape () |
| Set shape's line colour to GetColor() value. | |
| IEntitySource | GetShapeSource () |
| Get the parent shape above this generator (has to be the direct parent) | |
| void | SCR_GeneratorBaseEntity (IEntitySource src, IEntity parent) |
Static Protected Attributes | |
| static const float | MIN_WALL_PIECE_SIZE = 0.001 |
| 1mm is enough precision | |
| static const float | MIN_WALL_SLOT_SIZE = 0.001 |
| wall length, pre-padding and post-padding | |
| static BaseWorld | s_World |
| static const ref map< ResourceName, float > | MEASUREMENTS = new map<ResourceName, float>() |
| static const int | MAX_LOOPS_SAFETY = 500 |
Static Protected Attributes inherited from SCR_LineTerrainShaperGeneratorBaseEntity | |
| static const ref array< string > | TERRAIN_UPDATE_KEYS |
| static const string | OFFSET_SHAPE_COLOUR = "1 0 1 1" |
Static Protected Attributes inherited from SCR_GeneratorBaseEntity | |
| static const int | DEFAULT_SEED = 42 |
| static const int | MIN_RANDOM_SEED = 0 |
| static const int | MAX_RANDOM_SEED = 0x7FFF |
| static const int | BASE_GENERATOR_COLOUR = Color.WHITE |
Additional Inherited Members | |
Public Member Functions inherited from SCR_LineTerrainShaperGeneratorBaseEntity | |
| override void | _WB_OnInit (inout vector mat[4], IEntitySource src) |
| override void | _WB_OnCreate (IEntitySource src) |
| override void | _WB_OnDelete (IEntitySource src) |
Public Member Functions inherited from SCR_GeneratorBaseEntity | |
| override bool | _WB_CanSelect (IEntitySource src) |
| map< int, ref ShapePointDataScriptBase > | GetFirstPointDataMap (TypeName wantedType=ShapePointDataScriptBase) |
| map< int, ref array< ref ShapePointDataScriptBase > > | GetPointDataMap (TypeName wantedType=ShapePointDataScriptBase) |
Static Protected Member Functions inherited from SCR_GeneratorBaseEntity | |
| static WorldEditorAPI | GetWorldEditorAPI () |
| static array< vector > | GetPoints (notnull IEntitySource shapeEntitySrc) |
| static array< vector > | GetAnchorPoints (notnull IEntitySource shapeEntitySrc, float offset=0, bool isShapeClosed=false) |
| static array< vector > | GetWorldAnchorPoints (notnull IEntitySource shapeEntitySrc) |
| static array< vector > | GetTesselatedShapePoints (notnull IEntitySource shapeEntitySrc, float offset=0, bool isShapeClosed=false) |
| static array< vector > | GetWorldTesselatedShapePoints (notnull IEntitySource shapeEntitySrc) |
|
protected |
Implements SCR_LineTerrainShaperGeneratorBaseEntity.
|
protected |
Implements SCR_LineTerrainShaperGeneratorBaseEntity.
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
| [in] | entityName | Prefab to measure |
| [in] | measureAxis | 0 for X measure (default for incorrect values), 1 for Y measure, 2 for Z measure |
| [in] | world | required |
|
protected |
Implements SCR_LineTerrainShaperGeneratorBaseEntity.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool WallGeneratorEntity.m_bDebug |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
1mm is enough precision
|
staticprotected |
wall length, pre-padding and post-padding
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |