|
Dayz
1.11.153731
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
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))
23 if ( battery_owner && !battery_owner.IsInherited(
PlayerBase) )
39 string ES_model = energy_source.GetModelName();
45 string selection_wire = SEL_WIRE_PREFIX + ES_model +
SEL_WIRE_SUFIX;
49 string selection_plug = SEL_WIRE_PREFIX + ES_model +
SEL_PLUG_SUFIX;
55 string texture_path = powered_device.GetCompEM().GetCordTextureFile();
61 string selection_wire2 = SEL_WIRE_PREFIX + ES_model;
int GetHiddenSelectionIndex(string selection)
Returns index of the string found in cfg array 'hiddenSelections'. If it's not found then it returns ...
void UpdateAllSelections()
void AddAction(typename actionName)
override void OnIsPlugged(EntityAI source_device)
void UnplugAllDevices()
Energy manager: Unplugs everything directly connected to this device.
override void OnOwnSocketReleased(EntityAI device)
proto native void SetObjectTexture(int index, string texture_name)
Change texture in hiddenSelections.
void ShowSelection(string selection_name)
Shows selection of the given name. Must be configed in config.hpp and models.cfg.
override void SetActions()
static string SEL_WIRE_SUFIX
override void OnIsUnplugged(EntityAI last_energy_source)
ComponentEnergyManager GetCompEM()
energy manager ENERGY MANAGER:Documentation: Confluence >> Camping & Squatting >> Electricity >> Ener...
static string SEL_PLUG_SUFIX
proto int ToLower()
Changes string to lowercase.
override bool CanPutAsAttachment(EntityAI parent)
override void OnOwnSocketTaken(EntityAI device)
EntityAI GetPluggedDevice()
Energy manager: Returns a device which is plugged into this one. If there are more devices to choose ...
void HideAllSelections()
Sets all animation values to 1, making them INVISIBLE if they are configured in models....
Base native class of all vehicles in game.
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.