Beispiel #1
0
        public void AddOrUpdate(PokemonData egg, Incubators incu = null)
        {
            var eggModel = new Eggs(egg)
            {
                Hatchable = incu == null
            };

            Eggs.Add(eggModel);
        }
Beispiel #2
0
        public void AddOrUpdate(PokemonData egg, Incubators incu = null)
        {
            var eggModel = new Eggs(egg)
            {
                Hatchable = incu == null,
            };

            if (!eggModel.Hatchable && incu != null)
            {
                eggModel.KM = incu.KM;
            }
            Eggs.Add(eggModel);
        }