예제 #1
0
 public GrowingPlant(PlantDetails details, ISchedule schedule)
 {
     PlantDetails = details;
     schedule.AddAgent(this);
 }
예제 #2
0
 public Plant(PlantDetails details, ISchedule schedule = null)
 {
     PlantDetails = details;
     schedule?.AddAgent(this);
     // for IScheduleAgent aspects, do I need to link back to my entity?
 }