private void BuildTriggers() { if (ContractTypeBuild.ContainsKey(TRIGGERS_ID)) { JArray triggersArray = (JArray)ContractTypeBuild[TRIGGERS_ID]; Main.LogDebug($"[ContractTypeBuild.{ContractTypeKey}] There are '{triggersArray.Count}' trigger(s) defined."); foreach (JObject trigger in triggersArray.Children <JObject>()) { BuildTrigger(trigger); } } }
private void BuildChunks() { if (ContractTypeBuild.ContainsKey(CHUNKS_ID)) { JArray chunksArray = (JArray)ContractTypeBuild[CHUNKS_ID]; Main.LogDebug($"[ContractTypeBuild.{ContractTypeKey}] There are '{chunksArray.Count}' chunk(s) defined."); foreach (JObject chunk in chunksArray.Children <JObject>()) { BuildChunk(chunk); } } }
private void BuildTeamsData() { if (ContractTypeBuild.ContainsKey(TEAMS_ID)) { JArray teamsData = (JArray)ContractTypeBuild[TEAMS_ID]; Main.LogDebug($"[ContractTypeBuild.{ContractTypeKey}] There are '{teamsData.Count}' team data entries defined."); foreach (JObject teamData in teamsData.Children <JObject>()) { BuildTeamData(teamData); } } }
private void BuildPlotsData() { if (ContractTypeBuild.ContainsKey(PLOTS_ID)) { JArray plotsData = (JArray)ContractTypeBuild[PLOTS_ID]; PlotOverride plotOverride = MissionControl.Instance.EncounterLayerData.GetComponent <PlotOverride>(); Main.LogDebug($"[ContractTypeBuild.{ContractTypeKey}] There are '{plotsData.Count}' plot data entries defined."); foreach (JObject plotData in plotsData.Children <JObject>()) { BuildPlotData(plotOverride, plotData); } } }