private bool ParserFile()
        {
            m_mapAllSampleList.Clear();
            m_listAllSampleName.Clear();

            if (m_content == null)
            {
                return(false);
            }

            List <NetSampleItem> listAll = m_content.profiler_samples;

            for (int i = 0; i < listAll.Count; i++)
            {
                NetSampleItem        item = listAll[i];
                List <NetSampleItem> list = m_mapAllSampleList[item.name];
                if (list == null)
                {
                    list = new List <NetSampleItem>();
                    m_mapAllSampleList.Add(item.name, list);
                    m_listAllSampleName.Add(item.name);
                }
                list.Add(item);
            }

            return(true);
        }
        // Очищение хранилища
        public void Clear()
        {
            vars.Length = 10;

            list.Clear();

            cacheByte.Clear();
            cacheString.Clear();
        }
        public void Clean()
        {
            m_listListener.Clear();

            foreach (var pair in m_mapMethodHelper)
            {
                pair.Value.listener = null;
                pair.Value.method   = null;
            }
            m_mapMethodHelper.Clear();
        }
Beispiel #4
0
        public void Stop()
        {
            m_GameState = FSPGameState.None;

            if (m_Client != null)
            {
                m_Client.Clean();
                m_Client = null;
            }

            m_FrameListener = null;
            m_FrameCtrl.Stop();
            m_FrameBuffer.Clear();
            m_IsRunning = false;

            onGameBegin    = null;
            onRoundBegin   = null;
            onControlStart = null;
            onGameEnd      = null;
            onRoundEnd     = null;
        }
Beispiel #5
0
        public void Dispose()
        {
            if (m_disposed)
            {
                return;
            }
            m_disposed = true;

            foreach (var pair in m_binders)
            {
                pair.Value.Clear();
            }
            m_binders.Clear();
        }