Exemplo n.º 1
0
 partial void pATC_GlobalID(BaseEffectHandler eh, TotalChange tc)
 {
     try
     {
         Effect effect;
         string globalID;
         var    components = tc.Components;
         int    i;
         for (i = 0; i < components.Count; i++)
         {
             effect   = components[i].GetEffect();
             globalID = (string)components[i].GetParameters()[0];
             if (globalID != null)
             {
                 Effect.AddGlobalEffect(globalID, effect);
             }
         }
     }
     catch (Exception ex) { MakeLogError("Error while applying TotalChange via pATC_GlobalID: " + ex); }
 }