예제 #1
0
        private static void saveConfigForTransportType(TransportSystemDefinition tsd, Dictionary <ushort, List <uint> > value)
        {
            string depotList = getConfigStringFromDictionary(value);

            TLMConfigWarehouse.setCurrentConfigString(TLMConfigWarehouse.getConfigDepotPrefix(tsd), depotList);
            cached_lists[tsd] = value;
        }
예제 #2
0
 private static Dictionary <ushort, List <uint> > getConfigForTransportType(TransportSystemDefinition tsd)
 {
     if (!cached_lists.ContainsKey(tsd))
     {
         string depotList = TLMConfigWarehouse.getCurrentConfigString(TLMConfigWarehouse.getConfigDepotPrefix(tsd));
         if (TransportLinesManagerMod.instance != null && TransportLinesManagerMod.debugMode)
         {
             TLMUtils.doLog("getConfigForTransportType STRING FOR {0}: {1}", tsd.ToString(), depotList);
         }
         cached_lists[tsd] = getDictionaryFromConfigString(depotList, tsd);
     }
     return(cached_lists[tsd]);
 }