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