コード例 #1
0
ファイル: ModifierChange.cs プロジェクト: KroneckerX/WCell
 /// <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);
 }
コード例 #2
0
ファイル: ModifierChange.cs プロジェクト: NecroSharper/WCell
 /// <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);
 }