feat: Converts player deletion handling to a generated event (#2029)

This commit is contained in:
Kamron Batman 2024-12-21 20:55:10 -08:00 • committed by GitHub
parent 059f008b48
commit 2bff1d2cbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 32 additions and 17 deletions

View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using ModernUO.CodeGeneratedEvents;
using Server.Collections;
using Server.Mobiles;
@ -25,6 +26,7 @@ public class ChampionTitleSystem : GenericPersistence
_championTitleTimer.Start();
}
[OnEvent(nameof(PlayerMobile.PlayerDeletedEvent))]
public static void OnPlayerDeleted(Mobile m)
{
if (m is PlayerMobile pm)