3 static string SEL_WIRE_ROLLED =
"rolled";
4 static string SEL_WIRE_PREFIX =
"Att_";
5 static string SEL_WIRE_SUFIX =
"_plugged";
6 static string SEL_PLUG_SUFIX =
"_plug";
15 if (!
super.CanPutAsAttachment(parent))
64 ShowSelection(SEL_WIRE_ROLLED);
74 if (
player_PB.GetItemInHands() ==
this && GetCompEM().IsPlugged())
81 GetCompEM().UnplugAllDevices();
84 GetCompEM().UnplugThis();
98 GetCompEM().UnplugAllDevices();
void AddAction(typename actionName)
Super root of all classes in Enforce script.
override void OnInventoryEnter(Man player)
override bool CanPutAsAttachment(EntityAI parent)
override void OnIsPlugged(EntityAI source_device)
override void OnOwnSocketReleased(EntityAI device)
override void OnOwnSocketTaken(EntityAI device)
override void SetActions()
static string SEL_PLUG_SUFIX
override void OnIsUnplugged(EntityAI last_energy_source)
static string SEL_WIRE_SUFIX
void UpdateAllSelections()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.