DayZ 1.24
Loading...
Searching...
No Matches
PlayerLightManager.c File Reference

Go to the source code of this file.

Classes

class  ActionTargetLighSource
 

Functions

void PlayerLightManager (PlayerBase player)
 
void AddLightSource (Object object)
 
void RemoveLightSource (Object object)
 
void UpdateLightSourceList ()
 
ref array< ref ActionTargetGetLightSourceList ()
 
void SetSelectedLightSourceIdx (int value)
 
int GetSelectedLightSourceIdx ()
 
void SelectLightSourceTarget (ActionTarget target)
 
ref ActionTarget GetSelectedLightSourceTarget ()
 

Variables

ActionTargetLighSource m_SelectedLightSource
 
ref ActionTargetLighSource m_LightItemTarget
 
ref array< ref ActionTargetm_ValidLightItems
 
PlayerBase m_Player
 

Function Documentation

◆ AddLightSource()

void AddLightSource ( Object object)

Definition at line 22 of file PlayerLightManager.c.

23 {
26 }
ref ActionTargetLighSource m_LightItemTarget
void UpdateLightSourceList()
static const vector Zero
Definition EnConvert.c:110

References m_LightItemTarget, UpdateLightSourceList(), and vector::Zero.

◆ GetLightSourceList()

ref array< ref ActionTarget > GetLightSourceList ( )

Definition at line 46 of file PlayerLightManager.c.

47 {
48 return m_ValidLightItems;
49 }
ref array< ref ActionTarget > m_ValidLightItems

References m_ValidLightItems.

◆ GetSelectedLightSourceIdx()

int GetSelectedLightSourceIdx ( )

Definition at line 56 of file PlayerLightManager.c.

57 {
59 }
ActionTargetLighSource m_SelectedLightSource

References m_SelectedLightSource.

◆ GetSelectedLightSourceTarget()

ref ActionTarget GetSelectedLightSourceTarget ( )

Definition at line 67 of file PlayerLightManager.c.

68 {
70 }

References m_SelectedLightSource, and m_ValidLightItems.

◆ PlayerLightManager()

void PlayerLightManager ( PlayerBase player)

Definition at line 14 of file PlayerLightManager.c.

References m_LightItemTarget, m_Player, and m_ValidLightItems.

◆ RemoveLightSource()

void RemoveLightSource ( Object object)

Definition at line 28 of file PlayerLightManager.c.

29 {
31 m_LightItemTarget.m_Remove = true;
33 }

References m_LightItemTarget, UpdateLightSourceList(), and vector::Zero.

◆ SelectLightSourceTarget()

void SelectLightSourceTarget ( ActionTarget target)

Definition at line 61 of file PlayerLightManager.c.

62 {
63 int idx = m_ValidLightItems.Find(target);
65 }
void SetSelectedLightSourceIdx(int value)

References m_ValidLightItems, and SetSelectedLightSourceIdx().

◆ SetSelectedLightSourceIdx()

void SetSelectedLightSourceIdx ( int value)

Definition at line 51 of file PlayerLightManager.c.

52 {
54 }

References m_SelectedLightSource.

Referenced by SelectLightSourceTarget().

◆ UpdateLightSourceList()

void UpdateLightSourceList ( )

Definition at line 35 of file PlayerLightManager.c.

36 {
38 {
39 if (!m_LightItemTarget.m_Remove)
41 else
43 }
44 }

References m_LightItemTarget, and m_ValidLightItems.

Referenced by AddLightSource(), and RemoveLightSource().

Variable Documentation

◆ m_LightItemTarget

◆ m_Player

PlayerBase m_Player

Definition at line 12 of file PlayerLightManager.c.

◆ m_SelectedLightSource

◆ m_ValidLightItems