예제 #1
0
 public FloraConfig(FloraConfig config)
 {
     this.PlantName          = config.PlantName;
     this.PlantImagePath     = config.PlantImagePath;
     this.GrowthDuration     = config.GrowthDuration;
     this.HealthPoints       = config.HealthPoints;
     this.BioreactorCharge   = config.BioreactorCharge;
     this.CanEat             = config.CanEat;
     this.NutrientsAmount    = config.NutrientsAmount;
     this.WaterAmount        = config.WaterAmount;
     this.Decomposes         = config.Decomposes;
     this.DecompositionSpeed = config.DecompositionSpeed;
 }
예제 #2
0
 public bool IsEqual(FloraConfig to)
 {
     //string.Compare(this.PlantName, to.PlantName, true, CultureInfo.InvariantCulture) != 0 ||
     //string.Compare(this.PlantImagePath, to.PlantImagePath, true, CultureInfo.InvariantCulture) != 0 ||
     return(!(this.GrowthDuration != to.GrowthDuration ||
              this.HealthPoints != to.HealthPoints ||
              this.BioreactorCharge != to.BioreactorCharge ||
              this.CanEat != to.CanEat ||
              this.NutrientsAmount != to.NutrientsAmount ||
              this.WaterAmount != to.WaterAmount ||
              this.Decomposes != to.Decomposes ||
              this.DecompositionSpeed != to.DecompositionSpeed));
 }