6 private static ref BunkerBroadcastConfigInstance
m_Data =
new BunkerBroadcastConfigInstance();
19 GetGame().GetWorldName(worldName);
21 string errorMessage,
path;
24 if (!JsonFileLoader<BunkerBroadcastConfigInstance>.LoadFile(
path,
m_Data, errorMessage))
29 if (!JsonFileLoader<BunkerBroadcastConfigInstance>.LoadFile(
path,
m_Data, errorMessage))
46 static BunkerBroadcastConfigInstance
GetData()
62 GetGame().RPCSingleParam(null,
ERPCs.RPC_BUNKERBROADCAST_CONFIG_SYNC,
new Param1<BunkerBroadcastConfigInstance>(
m_Data),
true, identity);
67 Param1<BunkerBroadcastConfigInstance> data =
new Param1<BunkerBroadcastConfigInstance>(null);
76 ErrorEx(
"CfgBunkerBroadcast - client failed to read incoming data");
static void SyncDataSend(PlayerIdentity identity)
static void OnRPC(ParamsReadContext ctx)
static const string m_ConfigFilePath
static BunkerBroadcastConfigInstance GetData()
static bool IsInitialized()
static ref BunkerBroadcastConfigInstance m_Data
static void SpawnBunker(BunkerBroadcastProxySpawn proxySpawn)
static bool m_Initialized
static int GetBunkerBroadcastEnabled()
The class that will be instanced (moddable)
proto bool Read(void value_in)
static vector ArrayToVec(float arr[])
Convert static array of floats into a vector.
Serializer ParamsReadContext
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
proto bool FileExist(string name)
Check existence of file.