public CustomRecipeStruct(RecipeInput[] Inputs, RecipeOutput[] Outputs, RecipeTable.Recipe.OutputType OutputType, string NameOfFabricator, float BuildTime) { this.Inputs = Inputs.Where(v => v.IsValid).ToArray(); this.Outputs = Outputs; this.OutputType = OutputType; this.NameOfFabricator = NameOfFabricator; this.BuildTime = BuildTime; }
public static void RegisterRecipe(RecipeInput[] Inputs, RecipeOutput[] Outputs, RecipeTable.Recipe.OutputType OutputType = RecipeTable.Recipe.OutputType.Items, string NameOfFabricator = "gsofab", float BuildTime = 1f) { new GameObject().AddComponent <RecipeTimer>().CallRecipeRegister(new CustomRecipeStruct(Inputs, Outputs, OutputType, NameOfFabricator, BuildTime)); }