public void Add(FilterData filter)
        {
            {
                var bits = filter.archetypeContains.value.BitsCount;
                for (int i = 0; i <= bits; ++i)
                {
                    if (filter.archetypeContains.value.HasBit(i) == true)
                    {
                        ArrayUtils.Resize(i, ref this.itemsContains, resizeWithOffset: true);
                        ref var item = ref this.itemsContains.arr[i];
                        if (item.isCreated == false)
                        {
                            item = new Item()
                            {
                                isCreated = true,
                                bit       = i,
                                index     = 0,
                            };
                        }

                        item.Add(filter);
                    }
                }
            }
Exemple #2
0
 public void Validate(int capacity)
 {
     ArrayUtils.Resize(capacity, ref this.values);
 }
 public void Add(FilterData filterData)
 {
     ArrayUtils.Resize(this.index, ref this.filters, resizeWithOffset: true);
     this.filters.arr[this.index] = filterData.id;
     ++this.index;
 }
Exemple #4
0
 public void Validate(int capacity)
 {
     ArrayUtils.Resize(capacity, ref this.types);
     ArrayUtils.Resize(capacity, ref this.prevTypes);
 }