private static IndustryConstruction CreateIndustryConstruction(ResourceDeposit deposit) { IndustryConstruction industryConstruction = new IndustryConstruction(); Recipe recipe; if (deposit == null) { recipe = (Recipe)productRecipeArr[Rnd.Next(0, productRecipeArr.Length - 1)]; } else { recipe = (Recipe)miningRecipesArr[deposit.idResource]; deposit.isExistConstruction = true; } industryConstruction.resourceDeposit = deposit; industryConstruction.stageProcess = 0; industryConstruction.state = EProducingState.finished; industryConstruction.recipe = recipe; return(industryConstruction); }
public static void Tick(SubStarBody station, IndustryConstruction module) { behav.Tick(new ManufactureWrapper { body = station, module = module }); }