示例#1
0
 /// <summary>Rase a <see cref="LeveledUp"/> event.</summary>
 /// <param name="monitor">Encapsulates monitoring and logging.</param>
 /// <param name="type">The player skill that leveled up.</param>
 /// <param name="newLevel">The new skill level.</param>
 internal static void InvokeLeveledUp(IMonitor monitor, EventArgsLevelUp.LevelType type, int newLevel)
 {
     monitor.SafelyRaiseGenericEvent($"{nameof(PlayerEvents)}.{nameof(PlayerEvents.LeveledUp)}", PlayerEvents.LeveledUp?.GetInvocationList(), null, new EventArgsLevelUp(type, newLevel));
 }
示例#2
0
 internal static void InvokeLeveledUp(EventArgsLevelUp.LevelType type, int newLevel)
 {
     LeveledUp.Invoke(null, new EventArgsLevelUp(type, newLevel));
 }