예제 #1
0
        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");
            }
        }
예제 #2
0
 static KinFactionLogs()
 {
     m_Instance = new KinFactionLogs();
 }
예제 #3
0
		static KinFactionLogs()
		{
			m_Instance = new KinFactionLogs();
		}