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

Go to the source code of this file.

Classes

class  SCR_PowerPoleClass

Functions

SCR_PowerPoleClass PowerPoleEntityClass Attribute (uiwidget:UIWidgets.None, desc:"[OBSOLETE (use Cable Slot Groups above)] Slots for connecting with other power poles", category:"[OLD] Power Cable Slots")] protected ref array< ref SCR_PowerPoleSlotBase > m_aSlots
override void OnStateChanged (int destructibleState, ScriptBitReader frameData, bool JIP)
 Override to handle cascading destruction when entering FirstDestructionPhase.
void HandleConnectedPowerlines ()
array< vectorGetCableSlotGroupPositions ()
 Get cable slot group positions, following the exact pattern from SCR_DestructibleBuildingComponent.
bool FilterPowerlineEntity (notnull IEntity entity)
bool ProcessFoundPowerline (notnull IEntity entity)
void SCR_PowerPole (IEntitySource src, IEntity parent)

Variables

Cable Slots ref array< ref SCR_PoleCableSlotGroupm_aCableSlotGroups

Function Documentation

◆ Attribute()

SCR_PowerPoleClass PowerPoleEntityClass Attribute ( uiwidget:UIWidgets. None,
desc:" Slots for connecting with other power poles" [OBSOLETE(use Cable Slot Groups above)],
category:" Power Cable Slots" [OLD] )

◆ FilterPowerlineEntity()

bool FilterPowerlineEntity ( notnull IEntity entity)
protected

Filter callback to only process PowerlineEntity types during sphere query This is more efficient than checking entity type in ProcessFoundPowerline

Definition at line 299 of file SCR_PowerPole.c.

◆ GetCableSlotGroupPositions()

array< vector > GetCableSlotGroupPositions ( )
protected

Get cable slot group positions, following the exact pattern from SCR_DestructibleBuildingComponent.

Definition at line 252 of file SCR_PowerPole.c.

◆ HandleConnectedPowerlines()

void HandleConnectedPowerlines ( )
protected

Handle connected powerlines when this pole is destroyed Based on HandleConnectedPowerlines in SCR_DestructibleBuildingComponent

Definition at line 234 of file SCR_PowerPole.c.

◆ OnStateChanged()

override void OnStateChanged ( int destructibleState,
ScriptBitReader frameData,
bool JIP )
protected

Override to handle cascading destruction when entering FirstDestructionPhase.

Definition at line 220 of file SCR_PowerPole.c.

◆ ProcessFoundPowerline()

bool ProcessFoundPowerline ( notnull IEntity entity)
protected

Process each found powerline entity and delete it Simplified since filtering is done in FilterPowerlineEntity

Definition at line 307 of file SCR_PowerPole.c.

◆ SCR_PowerPole()

void SCR_PowerPole ( IEntitySource src,
IEntity parent )
protected
Parameters
[in]src
[in]parent

Definition at line 318 of file SCR_PowerPole.c.

Variable Documentation

◆ m_aCableSlotGroups

Cable Slots ref array<ref SCR_PoleCableSlotGroup> m_aCableSlotGroups

Definition at line 5 of file SCR_PowerPole.c.