public static void OnSave(WorldSaveEventArgs e) { Persistence.Serialize( FilePath, writer => { writer.Write((int)2); writer.Write(Systems.Count); Systems.ForEach(s => { writer.Write((int)s.Loyalty); s.Serialize(writer); }); }); }
public static void HandleQuest(Mobile from, Server.Engines.Quests.BaseQuest quest) { Systems.ForEach(s => s.ProcessQuest(from, quest)); }
public static void HandleKill(BaseCreature victim, Mobile damager, int index) { Systems.ForEach(s => s.ProcessKill(victim, damager, index)); }
public static void CompleteQuest(QuestCompleteEventArgs e) { Systems.ForEach(s => s.ProcessQuest(e.Mobile, e.QuestType)); }
public static void OnKilledBy(Mobile victim, Mobile damager) { Systems.ForEach(s => s.ProcessKill(victim, damager)); }
public void InvokeSystems() => Systems.ForEach(a => a.Invoke(Entities));