Beispiel #1
0
        protected override void OnTick()
        {
            DateTime checkTime = File.GetLastWriteTime(RandomEncounterEngine.EncountersFile);

            if (checkTime > m_lastWriteTime)
            {
                if (RandomEncounterEngine.Debug)
                {
                    Console.WriteLine("RandomEncounters: rereading encounters file");
                }

                RandomEncounterEngine.Stop();

                RandomEncounterEngine.Initialize();

                m_lastWriteTime = checkTime;
            }
        }
Beispiel #2
0
 public static void Stop(CommandEventArgs e)
 {
     Console.WriteLine("RandomEncounters: Stop() command");
     RandomEncounterEngine.Stop();
 }