public static void Initialize() { Console.Write("Initializing SpeechRules Dataset..."); CommandSystem.Register("dbReload", AccessLevel.Batisseur, new CommandEventHandler(dbReload_OnCommand)); SpeechData.LoadData(); Console.WriteLine("done ({0})", SpeechData.dsSpeechRules.DataSetName); }
protected override void OnTick() { SpeechData.LoadData(); m_from.SendMessage("Townsperson Database Reloaded"); if (Townsperson.Logging == Townsperson.LogLevel.Basic || Townsperson.Logging == Townsperson.LogLevel.Debug) { TownspersonLogging.WriteLine(m_from, "Reloaded the Townsperson Speech Data from XML"); } }