Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 public static void Tick(SubStarBody station, IndustryConstruction module)
 {
     behav.Tick(new ManufactureWrapper {
         body = station, module = module
     });
 }