예제 #1
0
 public BluePrint(BluePrintEnum type, String name, List <ResourceQuantity> produces, List <ResourceQuantity> consumes, int baseTicks)
 {
     Type      = type;
     Name      = name;
     Produces  = produces;
     Consumes  = consumes;
     BaseTicks = baseTicks;
 }
예제 #2
0
 public BluePrint(BluePrintEnum type, String name, List<ResourceQuantity> produces, List<ResourceQuantity> consumes, int baseTicks)
 {
     Type = type;
     Name = name;
     Produces = produces;
     Consumes = consumes;
     BaseTicks = baseTicks;
 }
예제 #3
0
        private Producer GetProducer(String seedName, BluePrintEnum bpType)
        {
            Producer prod = new Producer();

            prod.Name                 = seedName;
            prod.BluePrintType        = bpType;
            prod.Producing            = false;
            prod.AutoResumeProduction = true;
            prod.ProduceNThenStop     = 0;
            return(prod);
        }
예제 #4
0
 public static BluePrint GetBluePrint(BluePrintEnum bpType)
 {
     int bpIdx = (int)bpType;
     return types_Var[bpIdx];
 }
예제 #5
0
 private static BluePrint createBluePrint(BluePrintEnum type, String name, List<ResourceQuantity> produces, List<ResourceQuantity> consumes, int baseTicks)
 {
     BluePrint bp = new BluePrint(type, name, produces, consumes, baseTicks);
     return bp;
 }
예제 #6
0
 private Producer GetProducer(String seedName, BluePrintEnum bpType)
 {
     Producer prod = new Producer();
     prod.Name = seedName;
     prod.BluePrintType = bpType;
     prod.Producing = false;
     prod.AutoResumeProduction = true;
     prod.ProduceNThenStop = 0;
     return prod;
 }
예제 #7
0
        public static BluePrint GetBluePrint(BluePrintEnum bpType)
        {
            int bpIdx = (int)bpType;

            return(types_Var[bpIdx]);
        }
예제 #8
0
        private static BluePrint createBluePrint(BluePrintEnum type, String name, List <ResourceQuantity> produces, List <ResourceQuantity> consumes, int baseTicks)
        {
            BluePrint bp = new BluePrint(type, name, produces, consumes, baseTicks);

            return(bp);
        }