예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 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);
         }
     }
 }
예제 #4
0
        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);
                }
            }
        }