49 private static string m_Path =
"$mission:cfgundergroundtriggers.json";
59 PrintToRPT(
"[WARNING] :: [UndergroundAreaLoader GetData()] :: file not found in MISSION folder, your path is " +
m_Path +
" Attempting DATA folder");
63 m_Path =
string.Format(
"dz/worlds/%1/ce/cfgundergroundtriggers.json",
worldName);
67 PrintToRPT(
"[WARNING] :: [UndergroundAreaLoader GetData()] ::file not found in DATA folder, your path is " +
m_Path);
120 ErrorEx(
"UndergroundAreaLoader datasynced - failed to read");
class JsonUndergroundAreaTriggerData GetPosition
ref array< float > Position
ref array< ref JsonUndergroundAreaBreadcrumb > Breadcrumbs
ref array< float > Position
ref array< float > Orientation
ref array< ref JsonUndergroundAreaTriggerData > Triggers
The class that will be instanced (moddable)
Serialization general interface. Serializer API works with:
static void SpawnTriggerCarrier(int index, JsonUndergroundAreaTriggerData data)
static ref JsonUndergroundTriggers m_JsonData
static void SyncDataSend(PlayerIdentity identity)
static void OnRPC(ParamsReadContext ctx)
static void SpawnAllTriggerCarriers()
static JsonUndergroundTriggers GetData()
proto native CGame GetGame()
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.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.