public Dictionary <string, string> GetAllBasicAssets(uint nil = 0) { if (basicAssetsList == null) { LoadBasicAssets(); } return(basicAssetsList.ToDictionary(x => x, x => string.Format("[Cap={0}] {1}", TLMUtils.getCapacity(PrefabCollection <VehicleInfo> .FindLoaded(x)), Locale.Get("VEHICLE_TITLE", x)))); }
public Dictionary <string, string> GetAllBasicAssets(uint lineId) { TransportSystemDefinition tsd = TransportSystemDefinition.from(lineId); if (!basicAssetsList.ContainsKey(tsd)) { basicAssetsList[tsd] = TLMUtils.LoadBasicAssets(ref tsd); } return(basicAssetsList[tsd].ToDictionary(x => x, x => string.Format("[Cap={0}] {1}", TLMUtils.getCapacity(PrefabCollection <VehicleInfo> .FindLoaded(x)), Locale.Get("VEHICLE_TITLE", x)))); }
public Dictionary <string, string> GetSelectedBasicAssets(uint prefix) { if (basicAssetsList == null) { LoadBasicAssets(); } return(GetAssetList(prefix).Where(x => PrefabCollection <VehicleInfo> .FindLoaded(x) != null).ToDictionary(x => x, x => string.Format("[Cap={0}] {1}", TLMUtils.getCapacity(PrefabCollection <VehicleInfo> .FindLoaded(x)), Locale.Get("VEHICLE_TITLE", x)))); }