// Event for the person to signal that they have become pregnant. // Schedule the birth event. public void OnGiveBirth(Person person, BirthEventArgs e) { //Console.WriteLine("Adding {0} to game", e.Child.FirstName); EntitiesAdd(e.Child); e.Child.OnScheduleEvent(e.Child, new ScheduleEventArgs(Person.ageSeconds, new AgeAction())); person.Abort(); person.GiveBirth -= OnGiveBirth; // Remove the listener. }