Example #1
0
 public TestRoute(
     string originBody,
     string originBiome,
     string destinationBody,
     string destinationBiome,
     int payload,
     IDepotRegistry depotRegistry) : base(originBody, originBiome, destinationBody, destinationBiome, payload, depotRegistry)
 {
 }
Example #2
0
        public WOLF_GuiFilters(IRegistryCollection depotRegistry)
        {
            _depotRegistry = depotRegistry;

            InitStyles();
            CreateCache();
            CreateDropdowns();

            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_HEADER_LABEL", out string headerLabel))
            {
                HEADER_LABEL = headerLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_ORIGIN_LABEL", out string originLabel))
            {
                ORIGIN_LABEL = originLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_DESTINATION_LABEL", out string destinationLabel))
            {
                DESTINATION_LABEL = destinationLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_RESOURCES_LABEL", out string resourcesLabel))
            {
                RESOURCES_LABEL = resourcesLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_RAW_LABEL", out string rawLabel))
            {
                RAW_LABEL = rawLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_REFINED_LABEL", out string refinedLabel))
            {
                REFINED_LABEL = refinedLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_ASSEMBLED_LABEL", out string assembledLabel))
            {
                ASSEMBLED_LABEL = assembledLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_LIFE_SUPPORT_LABEL", out string lifeSupportLabel))
            {
                LIFE_SUPPORT_LABEL = lifeSupportLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_CREW_LABEL", out string crewLabel))
            {
                CREW_LABEL = crewLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_RESET_HEADER_LABEL", out string resetHeaderLabel))
            {
                RESET_HEADER_LABEL = resetHeaderLabel;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_GUI_FILTERS_RESET_BUTTON_LABEL", out string resetButtonLabel))
            {
                RESET_BUTTON_LABEL = resetButtonLabel;
            }
        }
Example #3
0
 public TestRoute(
     string originBody,
     string originBiome,
     string destinationBody,
     string destinationBiome,
     int payload,
     IDepotRegistry depotRegistry,
     Dictionary <string, int> resources) : base(originBody, originBiome, destinationBody, destinationBiome, payload, depotRegistry)
 {
     _resources.Clear();
     foreach (var resource in resources)
     {
         _resources.Add(resource.Key, resource.Value);
     }
 }
Example #4
0
        public WOLF_PlanningMonitor(IRegistryCollection depotRegistry)
        {
            _depotRegistry = depotRegistry;

            CreateCache();
            CreateDropdown();

            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_NO_DEPOTS_ESTABLISHED_MESSAGE", out string noDepotsMessage))
            {
                NO_DEPOTS_MESSAGE = noDepotsMessage;
            }
            if (Localizer.TryGetStringByTag("#autoLOC_USI_WOLF_INVALID_HOPPER_PART_ATTACHMENT_MESSAGE", out string invalidPartAttachMessage))
            {
                INVALID_PART_ATTACHMENT_MESSAGE = invalidPartAttachMessage;
            }
        }
Example #5
0
        public Route(
            string originBody,
            string originBiome,
            string destinationBody,
            string destinationBiome,
            int payload,
            IDepotRegistry depotRegistry)
        {
            OriginBody       = originBody;
            OriginBiome      = originBiome;
            DestinationBody  = destinationBody;
            DestinationBiome = destinationBiome;
            if (payload < 1)
            {
                throw new RouteInsufficientPayloadException();
            }
            Payload = payload;

            OriginDepot      = depotRegistry.GetDepot(originBody, originBiome);
            DestinationDepot = depotRegistry.GetDepot(destinationBody, destinationBiome);
        }
Example #6
0
 /// <summary>
 /// Don't use this constructor. It's used only by the persistence layer.
 /// </summary>
 public Route(IDepotRegistry depotRegistry)
 {
     _depotRegistry = depotRegistry;
 }
Example #7
0
 public TestRoute(IDepotRegistry depotRegistry) : base(depotRegistry)
 {
 }