Table of Contents

Method AddAllAvailableFromPool

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

AddAllAvailableFromPool<T>(ICollection<T>, IPool<T>)

Adds all available objects from the pool to the collection, activating each of them.

public static void AddAllAvailableFromPool<T>(this ICollection<T> collection, IPool<T> pool)

Parameters

collection ICollection<T>

The collection to add objects to.

pool IPool<T>

The pool to get objects from.

Type Parameters

T

The type of the objects in the pool.

Remarks

Similar to AddFromPool<T>(ICollection<T>, IPool<T>, int), but adds all available objects from the pool.