コード例 #1
0
 bool CheckIsEntryFiltered(EntryDrawData drawData)
 {
     if (!DevConsole.settings.useAndFiltering)
     {
         return((currentFilter & drawData.tagsHash) != 0);
     }
     else
     {
         return((currentFilter & drawData.tagsHash) == currentFilter);
     }
 }
コード例 #2
0
        void AddNewEntries()
        {
            for (int i = 0; i < buffer.Count; i++)
            {
                tempEntry = new Entry(buffer[i]);
                SetupEntry(tempEntry);
                entriesList.Add(tempEntry);
                EntryDrawData drawData = new EntryDrawData();
                drawData.justCreated = true;
                drawData.tagsHash    = CalculateTagsHash(tempEntry);
                drawDataList.Add(drawData);
            }
            buffer.Clear();

            while (entriesList.Count > capacity)
            {
                RemoveEntry(entriesList[0]);
            }

            MakeEntriesArray();
            SelectDrawingEntries();
        }