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)
68 GetGame().RPCSingleParam( identity.GetPlayer(),
ERPCs.RPC_SET_BILLBOARDS, param,
true, identity );
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 (
GetGame().ConfigIsExisting(typesPath) &&
GetGame().ConfigIsExisting(texturePath))
105 GetGame().ConfigGetText(texturePath, texture);
106 GetGame().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
The class that will be instanced (moddable)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
array< string > TStringArray