5 protected static const string ROOT_CLASS =
"BillboardPresets";
13 return bbset.GetTextureByType(type);
33 for (
int setIndex = 0; setIndex < setCount; setIndex++)
52 for (
int setIndex = 0; setIndex < setCount; setIndex++)
57 if (setName == setClassName)
92 int count =
g_Game.ConfigGetChildrenCount(
path);
93 for (
int i = 0; i < count; i++ )
98 string typesPath =
path +
" " + itemName +
" types";
99 string texturePath =
path +
" " + itemName +
" texture";
101 if (
g_Game.ConfigIsExisting(typesPath) &&
g_Game.ConfigIsExisting(texturePath))
105 g_Game.ConfigGetText(texturePath, texture);
106 g_Game.ConfigGetTextArray(typesPath, types);
108 foreach (
string s: types)
115 ErrorEx(
"Billboard set incorrect configuration, type or texture param missing: " +
path);
class BillboardSetHandler m_TypeTextureMapping
void BillboardSet(string path)
string GetTextureByType(string type)
void LoadConfig(string path)
void OnRPCIndex(int index)
static int m_SetIndexCached
static const string ROOT_CLASS
bool LoadBillboardConfigs()
string GetTextureByType(string type)
static bool ActivateBillboardSet(string setClassName, PlayerIdentity identity)
ref array< ref BillboardSet > m_BillboardSets
proto Man GetPlayer()
get player
The class that will be instanced (moddable)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
array< string > TStringArray