private void _InitializeLogSystem() { m_logQueue = new ConcurrentQueue <string>(); m_isLogUpdating = false; m_logUpdateStateLock = new object(); m_gameLogUpdateFuncDelegate = new GameUIUpdateFunc(_LogUpdateFunc); }
private void _frmTest_Load(object sender, EventArgs e) { m_uiUpdateStateLock = new object(); m_gameUIUpdateFuncDelegate = new GameUIUpdateFunc(_GameUIUpdateFunc); _InitializeGame(); _InitializeCommandSystem(); _InitializeGameUI(); _InitializeSoundSystem(); m_gameLoopThread = new Thread(_GameLoop); m_isGameRun = true; m_gameLoopThread.Start(); }