7class JsonUndergroundAreaBreadcrumb
52 private static string m_Path =
"$mission:cfgundergroundtriggers.json";
62 PrintToRPT(
"[WARNING] :: [UndergroundAreaLoader GetData()] :: file not found in MISSION folder, your path is " +
m_Path +
" Attempting DATA folder");
66 m_Path =
string.Format(
"dz/worlds/%1/ce/cfgundergroundtriggers.json", worldName);
70 PrintToRPT(
"[WARNING] :: [UndergroundAreaLoader GetData()] ::file not found in DATA folder, your path is " +
m_Path);
77 if (!JsonFileLoader<JsonUndergroundTriggers>.LoadFile(
m_Path, data, errorMessage))
109 carrier.SetIndex(index);
124 Param1<JsonUndergroundTriggers> data =
new Param1< JsonUndergroundTriggers>(null);
126 if ( ctx.
Read(data) )
132 ErrorEx(
"UndergroundAreaLoader datasynced - failed to read");
ref array< float > Position
proto void GetWorldName(out string world_name)
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
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)
proto bool Read(void value_in)
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()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Serializer ParamsReadContext
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.
class JsonUndergroundAreaTriggerData GetPosition