示例#1
0
        protected void registerDevice()
        {
            LogDeviceBase logDevice = null;

#if ENABLE_WINLOG
            logDevice = new WinLogDevice();
            logDevice.initDevice();
            m_logDeviceList.Add(logDevice);
            m_fightLogDeviceList.Add(logDevice);
#endif

#if ENABLE_NETLOG
            logDevice = new NetLogDevice();
            logDevice.initDevice();
            m_logDeviceList.Add(logDevice);
            m_fightLogDeviceList.Add(logDevice);
#endif
        }
示例#2
0
        protected void registerDevice()
        {
            LogDeviceBase logDevice = null;

#if ENABLE_WINLOG
            logDevice = new WinLogDevice();
            logDevice.initDevice();
            m_logDeviceList.Add(logDevice);
            m_fightLogDeviceList.Add(logDevice);
#endif

#if ENABLE_NETLOG
            logDevice = new NetLogDevice();
            logDevice.initDevice();
            m_logDeviceList.Add(logDevice);
            m_fightLogDeviceList.Add(logDevice);
#endif
        }