static void EventSink_WorldLoad() { Console.Write("KinFactionLogData Loading..."); string filePath = Path.Combine("Saves/KinFactions", "pendinglogs.xml"); if (!File.Exists(filePath)) { return; } XmlSerializer x = new XmlSerializer(typeof(KinFactionLogs)); try { using (StreamReader sr = new StreamReader(filePath)) { KinFactionLogs temp = (KinFactionLogs)x.Deserialize(sr); m_Instance.m_EntitesToSerialize = temp.m_EntitesToSerialize; } } catch { Console.WriteLine(); Console.WriteLine("Warning: KinFactionLogs instance load failed"); } }
static KinFactionLogs() { m_Instance = new KinFactionLogs(); }