static void endPlayerJob() { OnJobEnd.Invoke(); EventControl.removeEvents(PlayerDataHolder.Current.PlayerJob.getJobEvents()); PaerToolBox.callNonUniqueStatChange(PlayerDataHolder.Current.PlayerJob); PlayerDataHolder.Current.PlayerJob = null; Flag flag = new Flag("PLAYER_JOB_CONTRACT_END", 0, false); flag.FireFlag(); }
/// <summary> /// Passthrough event handler for <see cref="OnJobEnd"/>. /// </summary> /// <param name="obj">The <see cref="JobEndInfo"/>.</param> private static void JobManager_JobEnd(JobEndInfo obj) => OnJobEnd?.Invoke(null, obj);