コード例 #1
0
 private static void OnModuleSaved(CoreModuleInfo cmi)
 {
     if (cmi.Enabled && cmi.TypeOf == typeof(AutoPvP))
     {
         File.Serialize(w => w.WriteBlockList(Registry, (w1, o) => o.Serialize(w1)));
     }
 }
コード例 #2
0
 private static void OnModuleLoaded(CoreModuleInfo cmi)
 {
     if (cmi.Enabled && cmi.TypeOf == typeof(AutoPvP))
     {
         File.Deserialize(r => r.ReadBlockList(r1 => new TournamentArchive(r1), Registry));
     }
 }