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 (
GetGame().ConfigIsExisting(typesPath) &&
GetGame().ConfigIsExisting(texturePath))
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 bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto Man GetPlayer()
get player
The class that will be instanced (moddable)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
array< string > TStringArray