示例#1
0
        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);
                });
            });
        }
示例#2
0
 public static void HandleQuest(Mobile from, Server.Engines.Quests.BaseQuest quest)
 {
     Systems.ForEach(s => s.ProcessQuest(from, quest));
 }
示例#3
0
 public static void HandleKill(BaseCreature victim, Mobile damager, int index)
 {
     Systems.ForEach(s => s.ProcessKill(victim, damager, index));
 }
示例#4
0
 public static void CompleteQuest(QuestCompleteEventArgs e)
 {
     Systems.ForEach(s => s.ProcessQuest(e.Mobile, e.QuestType));
 }
示例#5
0
 public static void OnKilledBy(Mobile victim, Mobile damager)
 {
     Systems.ForEach(s => s.ProcessKill(victim, damager));
 }
示例#6
0
 public void InvokeSystems() => Systems.ForEach(a => a.Invoke(Entities));