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

Go to the source code of this file.

Classes

class  BillboardSetHandler
 

Functions

void BillboardSet (string path)
 
string GetTextureByType (string type)
 
void LoadConfig (string path)
 

Variables

class BillboardSetHandler string
 
class BillboardSetHandler m_TypeTextureMapping = new map<string, string>()
 

Function Documentation

◆ BillboardSet()

void BillboardSet ( string path)

Definition at line 78 of file BillboardSet.c.

79 {
81 }
void LoadConfig(string path)

References LoadConfig(), and path.

Referenced by BillboardSetHandler::GetTextureByType(), and BillboardSetHandler::LoadBillboardConfigs().

◆ GetTextureByType()

string GetTextureByType ( string type)

Definition at line 83 of file BillboardSet.c.

84 {
85 return m_TypeTextureMapping.Get(type);
86 }
class BillboardSetHandler m_TypeTextureMapping

References m_TypeTextureMapping.

◆ LoadConfig()

void LoadConfig ( string path)
protected

Definition at line 88 of file BillboardSet.c.

89 {
90 int count = g_Game.ConfigGetChildrenCount(path);
91 for (int i = 0; i < count; i++)
92 {
93 string itemName;
94 GetGame().ConfigGetChildName(path, i, itemName);
95
96 string typesPath = path + " " + itemName + " types";
97 string texturePath = path + " " + itemName + " texture";
98
99 if (GetGame().ConfigIsExisting(typesPath) && GetGame().ConfigIsExisting(texturePath))
100 {
102 string texture;
103 GetGame().ConfigGetText(texturePath, texture);
104 GetGame().ConfigGetTextArray(typesPath, types);
105
106 foreach (string s: types)
108 }
109 else
110 ErrorEx("Billboard set incorrect configuration, type or texture param missing: " + path);
111
112 }
113 }
DayZGame g_Game
Definition DayZGame.c:3528
proto native CGame GetGame()
enum ShapeType ErrorEx
array< string > TStringArray
Definition EnScript.c:666

References ErrorEx, g_Game, GetGame(), m_TypeTextureMapping, and path.

Referenced by BillboardSet().

Variable Documentation

◆ m_TypeTextureMapping

class BillboardSetHandler m_TypeTextureMapping = new map<string, string>()

Referenced by GetTextureByType(), and LoadConfig().

◆ string