class SpotlightSource
Spotlight › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
All members, including inherited
Constructors 1
void Spotlight()Constants 17
static const string SEL_REFLECTOR_COMP_U = "reflector"static const string SEL_CORD_FOLDED_U = "cord_folded"static const string SEL_CORD_PLUGGED_U = "cord_plugged"static const string SEL_CORD_PLUGGED_F = "spotlight_folded_cord_plugged"static const string SEL_CORD_FOLDED_F = "spotlight_folded_cord_folded"static const string SEL_INVENTORY = "inventory"Referenced by UpdateAllSelections()
static const string SEL_PLACING = "placing"Referenced by UpdateAllSelections()
static const string SEL_GLASS_F = "glass_folded"Referenced by UpdateAllSelections()
static const string SEL_GLASS_U = "glass_unfolded"Referenced by UpdateAllSelections()
static const string SEL_REFLECTOR_F = "reflector_folded"Referenced by UpdateAllSelections()
static const string SEL_REFLECTOR_U = "reflector_unfolded"Referenced by UpdateAllSelections()
static const int ID_GLASS_UNFOLDED = 3Referenced by UpdateAllSelections()
static const int ID_REFLECTOR_UNFOLDED = 4Referenced by UpdateAllSelections()
static const int ID_GLASS_FOLDED = 5Referenced by UpdateAllSelections()
static const int ID_REFLECTOR_FOLDED = 6Referenced by UpdateAllSelections()
const string SOUND_TURN_ON = "spotlight_turn_on_SoundSet"Referenced by SoundTurnOn()
const string SOUND_TURN_OFF = "spotlight_turn_off_SoundSet"Referenced by SoundTurnOff()
Members 12
private bool m_IsFoldedprivate bool m_EvaluateDeploymentSpotlightLight m_Lightstatic vector m_LightLocalPositionstatic vector m_LightLocalOrientation = "0 0 0"static string LIGHT_OFF_GLASS = "dz\\gear\\camping\\Data\\spotlight_glass.rvmat"Referenced by UpdateAllSelections()
static string LIGHT_OFF_REFLECTOR = "dz\\gear\\camping\\Data\\spotlight.rvmat"Referenced by UpdateAllSelections()
static string LIGHT_ON_GLASS = "dz\\gear\\camping\\Data\\spotlight_glass_on.rvmat"Referenced by UpdateAllSelections()
static string LIGHT_ON_REFLECTOR = "dz\\gear\\camping\\Data\\spotlight_glass_on.rvmat"Referenced by UpdateAllSelections()
protected EffectSound m_SoundTurnOnReferenced by SoundTurnOn()
protected EffectSound m_SoundTurnOffReferenced by SoundTurnOff()
protected ref EffectSound m_DeployLoopSoundDEPRECATED
Methods 30
override bool IsElectricAppliance()override void OnInitEnergy()References Fold(), EntityAI.GetCompEM(), EntityAI.GetHierarchyRoot()
Show 3 more
, ComponentEnergyManager.IsPlugged(), Unfold(), and UpdateAllSelections()References EntityAI.HideSelection(), ItemBase.IsHologram(), Unfold()
Show 2 more
, UpdateAllSelections(), and SEL_CORD_FOLDED_Foverride void OnSwitchOn()override void OnSwitchOff()override void OnWorkStart()References ScriptedLightBase.AttachOnObject(), Class.Cast(), ScriptedLightBase.CreateLight()
Show 4 more
, UpdateAllSelections(), m_Light, m_LightLocalOrientation, and m_LightLocalPositionoverride void OnWorkStop()override void OnIsPlugged(EntityAI source_device)protected void UpdateAllSelections()References Class.Cast(), EntityAI.GetCompEM(), EntityAI.GetHierarchyRootPlayer()
Show 30 more
, PlayerBase.GetItemInHands(), Object.GetSelectionPositionLS(), EntityAI.HideAllSelections(), EntityAI.HideSelection(), IsFolded(), ItemBase.IsHologram(), ComponentEnergyManager.IsPlugged(), ComponentEnergyManager.IsWorking(), EntityAI.SetObjectMaterial(), EntityAI.ShowSelection(), ID_GLASS_FOLDED, ID_GLASS_UNFOLDED, ID_REFLECTOR_FOLDED, ID_REFLECTOR_UNFOLDED, LIGHT_OFF_GLASS, LIGHT_OFF_REFLECTOR, LIGHT_ON_GLASS, LIGHT_ON_REFLECTOR, m_LightLocalPosition, SEL_CORD_FOLDED_F, SEL_CORD_FOLDED_U, SEL_CORD_PLUGGED_F, SEL_CORD_PLUGGED_U, SEL_GLASS_F, SEL_GLASS_U, SEL_INVENTORY, SEL_PLACING, SEL_REFLECTOR_COMP_U, SEL_REFLECTOR_F, and SEL_REFLECTOR_UReferenced by EOnInit(), Fold(), OnInitEnergy()
Show 5 more
, OnIsPlugged(), OnIsUnplugged(), OnWorkStart(), OnWorkStop(), and Unfold()override void OnIsUnplugged(EntityAI last_energy_source)void Fold(bool keep_connected = false)References EntityAI.GetCompEM(), EntityAI.SetSynchDirty(), ComponentEnergyManager.SwitchOff()
Show 3 more
, ComponentEnergyManager.UnplugThis(), UpdateAllSelections(), and m_IsFoldedReferenced by OnInitEnergy(), OnIsUnplugged(), OnItemLocationChanged()
Show 2 more
, OnPlacementCancelled(), and OnStoreLoad()void Unfold()Referenced by ActionPlugTargetIntoThis.Process(), EOnInit(), OnInitEnergy()
Show 4 more
, OnIsPlugged(), OnItemLocationChanged(), OnPlacementComplete(), and OnStoreLoad()override void OnStoreSave(ParamsWriteContext ctx)override bool OnStoreLoad(ParamsReadContext ctx, int version)References EntityAI.CanPutIntoHands()
bool IsFolded()References m_IsFolded
protected void SoundTurnOn()Referenced by OnSwitchOn()
protected void SoundTurnOff()Referenced by OnSwitchOff()
override void OnPlacementStarted(Man player)override void OnPlacementCancelled(Man player)override bool IsDeployable()override string GetDeploySoundset()override string GetLoopDeploySoundset()override int GetViewIndex()override void SetActions()void PlayDeployLoopSound()DEPRECATED
void StopDeployLoopSound()DEPRECATED