/// <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)); }
internal static void InvokeLeveledUp(EventArgsLevelUp.LevelType type, int newLevel) { LeveledUp.Invoke(null, new EventArgsLevelUp(type, newLevel)); }