Ejemplo n.º 1
0
 public void InitPlants()
 {
     InitialPlants(em);
     statsFlowers = TxAutotrophStats.MakeFlowerStats(em,
                                                     es.environmentConsts.bounds,
                                                     es.environmentConsts.flowerStatsSize, 128f);
 }
Ejemplo n.º 2
0
        public void Execute(
            [ReadOnly] ref TxAutotrophChrome2AB txAutotrophChrome2AB,
            [ReadOnly] ref Translation translation
            )
        {
            var indexFS = TxAutotrophStats.FlowerStatIndex(translation.Value,
                                                           environmentSettings[0].environmentConsts.bounds,
                                                           environmentSettings[0].environmentConsts.flowerStatsSize
                                                           );
            var chrome2Stats = flowerStats[indexFS].chrome2Stats.Add(txAutotrophChrome2AB);

            flowerStats[indexFS] = new StatsArea {
                count        = flowerStats[indexFS].count + 1,
                chrome2Stats = chrome2Stats
            };
        }