1 [
EntityEditorProps(
category:
"GameScripted/Power", description:
"This is the power pole entity.", color:
"0 255 0 255", visible:
false, dynamicBox:
true)]
9 protected ref array<ref SCR_PowerPoleSlotBase>
m_aSlots;
12 protected bool m_bDrawDebugShapes;
51 if (vector.Distance(otherSlot, CoordToParent(dualSlot.m_vSlotA)) > vector.Distance(otherSlot, CoordToParent(dualSlot.m_vSlotB)))
52 return CoordToParent(dualSlot.m_vSlotB);
54 return CoordToParent(dualSlot.m_vSlotA);
57 SCR_PowerPoleSlotSingle singleSlot = SCR_PowerPoleSlotSingle.Cast(
m_aSlots[
index]);
59 return CoordToParent(singleSlot.m_vSlotA);
66 override bool _WB_OnKeyChanged(BaseContainer src,
string key, BaseContainerList ownerContainers, IEntity parent)
77 if (!m_bDrawDebugShapes)
80 foreach (SCR_PowerPoleSlotBase slot :
m_aSlots)
92 SetEventMask(EntityEvent.INIT);