7class JsonUndergroundAreaBreadcrumb
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);
73 JsonFileLoader<JsonUndergroundTriggers>.JsonLoadFile(
m_Path, data );
104 carrier.SetIndex(index);
119 Param1<JsonUndergroundTriggers> data =
new Param1< JsonUndergroundTriggers>(null);
121 if ( ctx.
Read(data) )
127 ErrorEx(
"UndergroundAreaLoader datasynced - failed to read");
class JsonUndergroundAreaTriggerData GetPosition
ref array< float > Position
proto void GetWorldName(out string world_name)
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 > Orientation
ref array< float > Position
ref array< ref JsonUndergroundAreaTriggerData > Triggers
The class that will be instanced (moddable)
Serialization general interface. Serializer API works with:
proto bool Read(void value_in)
static private string m_Path
static void SpawnAllTriggerCarriers()
static void SpawnTriggerCarrier(int index, JsonUndergroundAreaTriggerData data)
static ref JsonUndergroundTriggers m_JsonData
static void SyncDataSend(PlayerIdentity identity)
static JsonUndergroundTriggers GetData()
static void OnRPC(ParamsReadContext ctx)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
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.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.