private static IReadOnlyList <ProtoItemWithCount> SharedSetupRequriedRepairComponents()
        {
            var items = new InputItems();

            items.Add <ItemDuctTape>(count: 1);
            return(items.AsReadOnly());
        }
Exemple #2
0
        protected override void PrepareConstructionConfig(
            ConstructionTileRequirements tileRequirements,
            ConstructionStageConfig build,
            ConstructionStageConfig repair,
            ConstructionUpgradeConfig upgrade,
            out ProtoStructureCategory category)
        {
            var buildAdditionalReactor = new InputItems();

            this.PrepareConstructionConfigGenerator(tileRequirements,
                                                    build,
                                                    repair,
                                                    buildAdditionalReactor,
                                                    out category);
            this.BuildAdditionalReactorRequiredItems = buildAdditionalReactor.AsReadOnly();
        }
Exemple #3
0
        protected sealed override void PrepareProto()
        {
            var inputItems  = new InputItems();
            var outputItems = new OutputItems();

            this.SetupRecipe(out var craftDuration, inputItems, outputItems);

            if (this.RecipeType != RecipeType.ManufacturingByproduct &&
                this.RecipeType != RecipeType.Manufacturing)
            {
                Api.Assert(inputItems.Count > 0, "Crafting recipe requires at least one input item.");
            }

            Api.Assert(outputItems.Count > 0, "Crafting recipe requires at least one output item.");

            this.OriginalDuration = craftDuration.TotalSeconds;
            this.InputItems       = inputItems.AsReadOnly();
            this.OutputItems      = outputItems.AsReadOnly();
        }
Exemple #4
0
 public LaunchpadTasksList AddTask(string name, ITextureResource icon, InputItems inputItems)
 {
     this.list.Add(new LaunchpadTask(name, icon, inputItems.AsReadOnly()));
     return(this);
 }