Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
playerlightmanager.c
Go to the documentation of this file.
1class ActionTargetLighSource : ActionTarget
2{
3 bool m_Remove;
4}
5
6//WIP
8{
13
15 {
16 m_LightItemTarget = null;
18 m_Player = player;
19 }
20
21 // can be anything, as long as it has appropriate actions for handling lights, see Mich2001Helmet
23 {
24 m_LightItemTarget = new ActionTargetLighSource(object, null, -1, vector.Zero, -1);
26 }
27
29 {
30 m_LightItemTarget = new ActionTargetLighSource(object, null, -1, vector.Zero, -1);
31 m_LightItemTarget.m_Remove = true;
33 }
34
36 {
38 {
39 if ( !m_LightItemTarget.m_Remove )
40 {
42 }
43 else
44 {
46 }
47 }
48 }
49
54
56 {
58 }
59
64
65 void SelectLightSourceTarget(ActionTarget target) //should be ActionTarget?
66 {
67 int idx = m_ValidLightItems.Find(target);
69 }
70
72 {
74 }
75};
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayer m_Player
Definition hand_events.c:42
void SetSelectedLightSourceIdx(int value)
void SelectLightSourceTarget(ActionTarget target)
ref array< ref ActionTarget > m_ValidLightItems
ref ActionTarget GetSelectedLightSourceTarget()
ActionTargetLighSource m_SelectedLightSource
ref ActionTargetLighSource m_LightItemTarget
void PlayerLightManager(PlayerBase player)
void UpdateLightSourceList()
int GetSelectedLightSourceIdx()
void AddLightSource(Object object)
void RemoveLightSource(Object object)
ref array< ref ActionTarget > GetLightSourceList()