예제 #1
0
 public void Customize(CharacterInfo customizations, ContentManager contentLoader)
 {
     foreach (KeyValuePair <Type, Behavior> behavior in Behaviors)
     {
         ICustomizable candidate = behavior.Value as ICustomizable;
         if (candidate != null)
         {
             candidate.Customize(customizations, contentLoader);
         }
     }
 }
예제 #2
0
 public void Customize(CharacterInfo customizations, ContentManager contentLoader)
 {
     foreach (KeyValuePair <ActorComponent.ComponentType, ActorComponent> kvp in mComponents)
     {
         ICustomizable candidate = kvp.Value as ICustomizable;
         if (candidate != null)
         {
             candidate.Customize(customizations, contentLoader);
         }
     }
 }