Exemplo n.º 1
0
        public void Setup()
        {
            m_config_watcher = new FileDirWatcher();
            m_config_watcher.Start(@"..\data\config", "*.csv", true);
            m_config_watcher.OnChangedEvt += OnConfigChanged;

            AddConfig(PacketCDConfig.Instance);
        }
Exemplo n.º 2
0
        public void Destroy()
        {
            if (m_config_watcher != null)
            {
                m_config_watcher.Stop();
                m_config_watcher = null;
            }

            UnloadAll();
            m_configs.Clear();
            m_watch_configs.Clear();
        }
Exemplo n.º 3
0
 public void Setup()
 {
     m_config_watcher = new FileDirWatcher();
     m_config_watcher.Start(@"..\data\config", "*.csv", true);
     m_config_watcher.OnChangedEvt += OnConfigChanged;
 }