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; } }
public static void Stop(CommandEventArgs e) { Console.WriteLine("RandomEncounters: Stop() command"); RandomEncounterEngine.Stop(); }