Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SpherePointGeneratorPreviewComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_SpherePointGeneratorPreviewComponentClass

Functions

SCR_SpherePointGeneratorPreviewComponentClass ScriptComponentClass Attribute (desc:"Radii of spheres to generate", defvalue:"{}", category:"Sphere", params:"0.001 inf")
void OnPostInit (IEntity owner)
 Editable Mine.
void DrawPreview ()
string GetInstanceId ()
override void _WB_OnInit (IEntity owner, inout vector mat[4], IEntitySource src)
 Draws debug preview shapes in Workbench.
override bool _WB_OnKeyChanged (IEntity owner, BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
 Any property value has been changed. You can use editor API here and do some additional edit actions which will be part of the same "key changed" action.
override void OnDelete (IEntity owner)

Variables

category __pad0__
category params
ref Color m_BaseColor
bool m_bHueShiftByIndex
bool m_bHueShiftBySphere
bool m_bShowIndex
string m_sInstanceId

Function Documentation

◆ _WB_OnInit()

override void _WB_OnInit ( IEntity owner,
inout vector mat[4],
IEntitySource src )
protected

Draws debug preview shapes in Workbench.

Definition at line 125 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ _WB_OnKeyChanged()

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

Any property value has been changed. You can use editor API here and do some additional edit actions which will be part of the same "key changed" action.

Definition at line 133 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ Attribute()

SCR_SpherePointGeneratorPreviewComponentClass ScriptComponentClass Attribute ( desc:"Radii of spheres to generate" ,
defvalue:"{}" ,
category:"Sphere" ,
params:"0.001 inf"  )

Definition at line 1 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ DrawPreview()

void DrawPreview ( )
protected

Draws preview spheres with varying radii, colors, and indices on the specified position. Should be called on creation or init.

Definition at line 50 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ GetInstanceId()

string GetInstanceId ( )
protected

The name of the entity this component is in. By Default its empty unless named by mission creator. Duplicates would just result in only one SCR_SpherePointGeneratorPreviewComponent being drawn.

Returns
Instance ID usable for SCR_DebugShapeHelperComponent tags.

Definition at line 115 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

Called when Entity is being to be destroyed (deleted) or component to be deleted (see Game::DeleteScriptComponent). param[in] owner Entity which owns the component

Definition at line 150 of file SCR_SpherePointGeneratorPreviewComponent.c.

Variable Documentation

◆ __pad0__

category __pad0__

Definition at line 20 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ m_BaseColor

ref Color m_BaseColor

Definition at line 24 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ m_bHueShiftByIndex

bool m_bHueShiftByIndex

Definition at line 27 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ m_bHueShiftBySphere

bool m_bHueShiftBySphere

Definition at line 30 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ m_bShowIndex

bool m_bShowIndex

Definition at line 33 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ m_sInstanceId

string m_sInstanceId
protected

Definition at line 35 of file SCR_SpherePointGeneratorPreviewComponent.c.

◆ params

If value default Gamemode value will be params

Definition at line 20 of file SCR_SpherePointGeneratorPreviewComponent.c.