Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PowerPole.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_PowerPoleClass
 

Functions

SCR_PowerPoleClass PowerPoleEntityClass Attribute (desc:"Slots for connecting with other power poles", category:"Power Cable Slots")
 
int GetSlotsCount (bool sameLine=true)
 
vector GetSlot (int index, bool sameLine)
 
vector TryGetSlot (int index, vector otherSlot, bool sameLine)
 
protected void DrawDebugShapes ()
 
void SCR_PowerPole (IEntitySource src, IEntity parent)
 

Variables

protected IEntitySource m_Source
 

Function Documentation

◆ Attribute()

SCR_PowerPoleClass PowerPoleEntityClass Attribute ( desc:"Slots for connecting with other power poles"  ,
category:"Power Cable Slots"   
)

Definition at line 8 of file SCR_PowerPole.c.

◆ DrawDebugShapes()

protected void DrawDebugShapes ( )

Definition at line 74 of file SCR_PowerPole.c.

◆ GetSlot()

vector GetSlot ( int  index,
bool  sameLine 
)
Parameters
[in]sameLineis used by SCR_JunctionPowerPole.GetSlot

Definition at line 26 of file SCR_PowerPole.c.

◆ GetSlotsCount()

int GetSlotsCount ( bool  sameLine = true)
Parameters
[in]sameLineis used by SCR_JunctionPowerPole.GetSlotsCount

Definition at line 19 of file SCR_PowerPole.c.

◆ SCR_PowerPole()

void SCR_PowerPole ( IEntitySource  src,
IEntity  parent 
)

Definition at line 87 of file SCR_PowerPole.c.

◆ TryGetSlot()

vector TryGetSlot ( int  index,
vector  otherSlot,
bool  sameLine 
)

\Tries to find position of the closest compatible slot.

Returns
vector with world origin of the closest compatible slot.
Parameters
[in]indexis the index of the other slot, this method tries to find the slot under the same index.
[in]otherSlotis the local position of other slot.
[in]sameLineis used by SCR_JunctionPowerPole.TryGetSlot

Definition at line 40 of file SCR_PowerPole.c.

Variable Documentation

◆ m_Source

protected IEntitySource m_Source

Definition at line 14 of file SCR_PowerPole.c.