Пример #1
0
 public void removeTimeEventsWithSelectedKeys()
 {
     foreach (float key in KeysToRemove)
     {
         if (EventsDict.ContainsKey(key))
         {
             EventsDict.Remove(key);
         }
     }
     KeysToRemove.Clear();
 }
Пример #2
0
        public override string ToString()
        {
            var output = new StringBuilder();

            output.Append(Math.Abs(Day));
            if (Day < 0)
            {
                output.Append(" BC");
            }
            ;
            if (EventsDict.ContainsKey(Day))
            {
                output.AppendLine().Append(EventsDict[Day]);
                // StepTimeout = 2000 / Terrarium.Organisms.Count; wordt setstep()
            }
            else
            {
                // StepTimeout = 1000 / Terrarium.Organisms.Count; wordt setstep()
            };
            return(output.ToString());
        }