Ejemplo n.º 1
0
 public void SetUp()
 {
     flowerBreed = new FlowerBreed("Some flower breed", new RandomHenHenTimeRange[]
     {
         new(HenHenTime.FromSeconds(2), HenHenTime.FromSeconds(2)),
         new(HenHenTime.FromSeconds(3), HenHenTime.FromSeconds(3))
     }, new(new ChanceTableEntry <int>[]
Ejemplo n.º 2
0
 public FlowerDisplay(Flower flower, FlowerBreed breed)
 {
     Flower        = flower;
     Breed         = breed;
     AddChild(stem = new Rectangle
     {
         RelativeSizeAxes = Axes.Both,
         Size             = new(0.2f, 0),
         Color            = new(0, 100, 0),
         Anchor           = new(0.5f, 1),
         Origin           = new(0.5f, 1)
     });
Ejemplo n.º 3
0
 public Flower(FlowerBreed breed, HenHenTime birthDate) : base(breed, birthDate) => DropAmount = breed.DropAmount.GetRandom();