Exemplo n.º 1
0
 /// <summary>
 /// Invokes a <see cref="UpdateEnahancementDelegate" /> delegate to update the neccessary fields
 /// for the given change.
 /// </summary>
 /// <param name="updateUnit">the <see cref="Unit" /> to update</param>
 /// <param name="changeType">the change type</param>
 /// <param name="statsCollection">the enhancements collection</param>
 internal static void CommitChange(Unit updateUnit, ModifierType changeType, 
                                     ModifierCollection statsCollection)
 {
     m_updateDelegates[changeType].Invoke(updateUnit, changeType, statsCollection);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Invokes a <see cref="UpdateEnahancementDelegate" /> delegate to update the neccessary fields
 /// for the given change.
 /// </summary>
 /// <param name="updateUnit">the <see cref="Unit" /> to update</param>
 /// <param name="changeType">the change type</param>
 /// <param name="statsCollection">the enhancements collection</param>
 internal static void CommitChange(Unit updateUnit, ModifierType changeType,
                                   ModifierCollection statsCollection)
 {
     m_updateDelegates[changeType].Invoke(updateUnit, changeType, statsCollection);
 }