DayZ 1.24
Loading...
Searching...
No Matches
WorldLighting Class Reference
Collaboration diagram for WorldLighting:
[legend]

Private Member Functions

void WorldLighting ()
 
void ~WorldLighting ()
 
void SetGlobalLighting (int lightingID)
 

Private Attributes

string lighting_default = "dz\\data\\lighting\\lighting_default.txt"
 
string lighting_darknight = "dz\\data\\lighting\\lighting_darknight.txt"
 

Detailed Description

Definition at line 1 of file WorldLighting.c.

Constructor & Destructor Documentation

◆ WorldLighting()

void WorldLighting::WorldLighting ( )
inlineprivate

Definition at line 6 of file WorldLighting.c.

6{}

◆ ~WorldLighting()

void WorldLighting::~WorldLighting ( )
inlineprivate

Definition at line 7 of file WorldLighting.c.

7{}

Member Function Documentation

◆ SetGlobalLighting()

void WorldLighting::SetGlobalLighting ( int lightingID)
inlineprivate

Definition at line 10 of file WorldLighting.c.

11 {
12 switch (lightingID)
13 {
14 case 0:
15 GetGame().GetWorld().LoadNewLightingCfg(lighting_default);
16 break;
17
18 case 1:
19 GetGame().GetWorld().LoadNewLightingCfg(lighting_darknight);
20 break;
21 }
22 }
string lighting_darknight
string lighting_default
proto native CGame GetGame()

References GetGame(), lighting_darknight, and lighting_default.

Member Data Documentation

◆ lighting_darknight

string WorldLighting::lighting_darknight = "dz\\data\\lighting\\lighting_darknight.txt"
private

Definition at line 4 of file WorldLighting.c.

Referenced by SetGlobalLighting().

◆ lighting_default

string WorldLighting::lighting_default = "dz\\data\\lighting\\lighting_default.txt"
private

Definition at line 3 of file WorldLighting.c.

Referenced by SetGlobalLighting().


The documentation for this class was generated from the following file: