Exemplo n.º 1
0
 /// <summary>
 /// Fill in the participants for the current event stub based on the set of rules defined.
 /// </summary>
 public void FillIn(EventStub evnt)
 {
     EventPopulation selected = new RoleFiller(
         manager.ToStoryArc(),
         manager.GetLevelForEvent(evnt) - 1,
         evnt.ToStoryEvent(),
         FillInOptionsSerializer.ActiveRules,
         stateSpaceManager).FillInRoles();
     //if we found a match, try setting the params. Success here is guaranteed.
     if (selected != null)
     {
         evnt.TrySetParams(selected.AsParams().Cast<SmartObject>());
     }
 }