Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ShapeAnalyserEntity Interface Reference
Inheritance diagram for SCR_ShapeAnalyserEntity:
SCR_GeneratorBaseEntity

Public Member Functions

override bool _WB_OnKeyChanged (BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
 
- Public Member Functions inherited from SCR_GeneratorBaseEntity
override void _WB_OnParentChange (IEntitySource src, IEntitySource prevParentSrc)
 
override bool _WB_CanSelect (IEntitySource src)
 
override void OnShapeInitInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity)
 
map< int, ref ShapePointDataScriptBase > GetFirstPointDataMap (TypeName wantedType=ShapePointDataScriptBase)
 
map< int, ref array< ref ShapePointDataScriptBase > > GetPointDataMap (TypeName wantedType=ShapePointDataScriptBase)
 
override void _WB_OnCreate (IEntitySource src)
 

Protected Member Functions

override void OnShapeChangedInternal (IEntitySource shapeEntitySrc, ShapeEntity shapeEntity, array< vector > mins, array< vector > maxes)
 
void Process (notnull IEntitySource shapeEntitySrc, notnull ShapeEntity shapeEntity)
 
void DrawDebugShapes (notnull SCR_ShapeAnalyser shapeAnalyser)
 
void AddDebugLine (vector pointA, vector pointB, bool isImportant=false)
 
void DrawErrorShapes (notnull SCR_ShapeAnalyser shapeAnalyser)
 
void PrintDebugInfo (notnull SCR_ShapeAnalyser shapeAnalyser)
 
- 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.
 
array< vector > GetWorldAnchorPoints (notnull IEntitySource shapeEntitySrc)
 
array< vector > GetWorldTesselatedShapePoints (notnull IEntitySource shapeEntitySrc)
 
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)
 

Protected Attributes

bool m_bDrawErrors
 
float m_fMaxAngle
 
float m_fMaxSlope
 
bool m_bDrawDebugShapes
 
bool m_bPrintDebugInfo
 
- Protected Attributes inherited from SCR_GeneratorBaseEntity
bool m_bEnableGeneration
 
int m_iSeed
 
IEntitySource m_Source
 the generator's entity source
 
IEntitySource m_ParentShapeSource
 the parent shape's entity source, if any - must be managed ONLY by SCR_GeneratorBaseEntity
 
int m_iSourceLayerID
 
ref RandomGenerator m_RandomGenerator
 
bool m_bIsChangingWorkbenchKey
 

Static Protected Attributes

static ref array< ref Shape > s_aErrorShapes
 
static ref array< ref Shape > s_aDebugShapes
 
static const int ERROR_SHAPE_ANGLE_ARRAY_LENGTH = 50
 
static const float ERROR_SHAPE_ANGLE_CHECK_LENGTH = 10.0
 see m_fMaxAngle description
 
static float SLOPE_ERROR_SHAPE_LENGTH = 30.0
 
static float ANGLE_ERROR_LINE_LENGTH = 5.0
 
static vector NORMAL_POINT_LINE_VECTOR = "0 20 0"
 
static float NORMAL_POINT_LINE_HAT_SIZE = 1.0
 
static vector TESSELATED_POINT_LINE_VECTOR = "0 10 0"
 
static vector MIDDLE_POINT_LINE_VECTOR = "0 15 0"
 
static int ERROR_SHAPE_COLOUR = Color.RED
 
static int DEBUG_SHAPE_COLOUR = Color.MAGENTA
 
static int DEBUG_SHAPE_COLOUR_IMPORTANT = Color.DARK_RED
 
static ShapeFlags DEBUG_SHAPE_FLAGS = ShapeFlags.NOZBUFFER
 
static ShapeFlags DEBUG_SHAPE_FLAGS_SPHERE = ShapeFlags.NOOUTLINE | ShapeFlags.TRANSP
 
static int DEBUG_SHAPE_COLOUR_ALPHA = 0x66000000
 
- Static Protected Attributes inherited from SCR_GeneratorBaseEntity
static const int BASE_GENERATOR_COLOUR = Color.WHITE
 

Additional Inherited Members

- Static Protected Member Functions inherited from SCR_GeneratorBaseEntity
static array< vector > GetPoints (notnull IEntitySource shapeEntitySrc)
 
static array< vector > GetAnchorPoints (notnull IEntitySource shapeEntitySrc, float offset=0, bool isShapeClosed=false)
 
static array< vector > GetTesselatedShapePoints (notnull IEntitySource shapeEntitySrc, float offset=0, bool isShapeClosed=false)
 

Member Function Documentation

◆ _WB_OnKeyChanged()

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

◆ AddDebugLine()

void SCR_ShapeAnalyserEntity.AddDebugLine ( vector pointA,
vector pointB,
bool isImportant = false )
protected

◆ DrawDebugShapes()

void SCR_ShapeAnalyserEntity.DrawDebugShapes ( notnull SCR_ShapeAnalyser shapeAnalyser)
protected

◆ DrawErrorShapes()

void SCR_ShapeAnalyserEntity.DrawErrorShapes ( notnull SCR_ShapeAnalyser shapeAnalyser)
protected

◆ OnShapeChangedInternal()

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

◆ PrintDebugInfo()

void SCR_ShapeAnalyserEntity.PrintDebugInfo ( notnull SCR_ShapeAnalyser shapeAnalyser)
protected

◆ Process()

void SCR_ShapeAnalyserEntity.Process ( notnull IEntitySource shapeEntitySrc,
notnull ShapeEntity shapeEntity )
protected

Member Data Documentation

◆ ANGLE_ERROR_LINE_LENGTH

float SCR_ShapeAnalyserEntity.ANGLE_ERROR_LINE_LENGTH = 5.0
staticprotected

◆ DEBUG_SHAPE_COLOUR

int SCR_ShapeAnalyserEntity.DEBUG_SHAPE_COLOUR = Color.MAGENTA
staticprotected

◆ DEBUG_SHAPE_COLOUR_ALPHA

int SCR_ShapeAnalyserEntity.DEBUG_SHAPE_COLOUR_ALPHA = 0x66000000
staticprotected

◆ DEBUG_SHAPE_COLOUR_IMPORTANT

int SCR_ShapeAnalyserEntity.DEBUG_SHAPE_COLOUR_IMPORTANT = Color.DARK_RED
staticprotected

◆ DEBUG_SHAPE_FLAGS

ShapeFlags SCR_ShapeAnalyserEntity.DEBUG_SHAPE_FLAGS = ShapeFlags.NOZBUFFER
staticprotected

◆ DEBUG_SHAPE_FLAGS_SPHERE

ShapeFlags SCR_ShapeAnalyserEntity.DEBUG_SHAPE_FLAGS_SPHERE = ShapeFlags.NOOUTLINE | ShapeFlags.TRANSP
staticprotected

◆ ERROR_SHAPE_ANGLE_ARRAY_LENGTH

const int SCR_ShapeAnalyserEntity.ERROR_SHAPE_ANGLE_ARRAY_LENGTH = 50
staticprotected

◆ ERROR_SHAPE_ANGLE_CHECK_LENGTH

const float SCR_ShapeAnalyserEntity.ERROR_SHAPE_ANGLE_CHECK_LENGTH = 10.0
staticprotected

see m_fMaxAngle description

◆ ERROR_SHAPE_COLOUR

int SCR_ShapeAnalyserEntity.ERROR_SHAPE_COLOUR = Color.RED
staticprotected

◆ m_bDrawDebugShapes

bool SCR_ShapeAnalyserEntity.m_bDrawDebugShapes
protected

◆ m_bDrawErrors

bool SCR_ShapeAnalyserEntity.m_bDrawErrors
protected

◆ m_bPrintDebugInfo

bool SCR_ShapeAnalyserEntity.m_bPrintDebugInfo
protected

◆ m_fMaxAngle

float SCR_ShapeAnalyserEntity.m_fMaxAngle
protected

◆ m_fMaxSlope

float SCR_ShapeAnalyserEntity.m_fMaxSlope
protected

◆ MIDDLE_POINT_LINE_VECTOR

vector SCR_ShapeAnalyserEntity.MIDDLE_POINT_LINE_VECTOR = "0 15 0"
staticprotected

◆ NORMAL_POINT_LINE_HAT_SIZE

float SCR_ShapeAnalyserEntity.NORMAL_POINT_LINE_HAT_SIZE = 1.0
staticprotected

◆ NORMAL_POINT_LINE_VECTOR

vector SCR_ShapeAnalyserEntity.NORMAL_POINT_LINE_VECTOR = "0 20 0"
staticprotected

◆ s_aDebugShapes

ref array<ref Shape> SCR_ShapeAnalyserEntity.s_aDebugShapes
staticprotected

◆ s_aErrorShapes

ref array<ref Shape> SCR_ShapeAnalyserEntity.s_aErrorShapes
staticprotected

◆ SLOPE_ERROR_SHAPE_LENGTH

float SCR_ShapeAnalyserEntity.SLOPE_ERROR_SHAPE_LENGTH = 30.0
staticprotected

◆ TESSELATED_POINT_LINE_VECTOR

vector SCR_ShapeAnalyserEntity.TESSELATED_POINT_LINE_VECTOR = "0 10 0"
staticprotected

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