Ejemplo n.º 1
0
 public void EnsureCapacity()
 {
     if (this.count == this.capacity)
     {
         this.capacity = this.capacity * 2;
         this.queries  = MemoryUtility.Realloc(queries, this.capacity);
     }
 }
Ejemplo n.º 2
0
 public void EnsureCapacity()
 {
     if (this.count == this.capacity)
     {
         this.capacity   = this.capacity * 2;
         this.archetypes = MemoryUtility.Realloc(archetypes, this.capacity);
     }
 }
Ejemplo n.º 3
0
        public void EnsureCapacity(int count)
        {
            int requiredCapacity = this.count + count;

            if (requiredCapacity > this.capacity)
            {
                this.capacity        = MemoryUtility.RoundToPowerOfTwo(requiredCapacity);
                this.entitiesInChunk = MemoryUtility.Realloc <EntityInChunk>(this.entitiesInChunk, this.capacity);
            }
        }
Ejemplo n.º 4
0
        public void EnsureCapacity(int count)
        {
            int requiredCapacity = this.count + count;

            if (requiredCapacity > this.capacity)
            {
                this.capacity = MemoryUtility.RoundToPowerOfTwo(requiredCapacity);
                this.slots    = MemoryUtility.Realloc <int>(this.slots, this.capacity);
            }
        }