Table of Contents

Method DecCapacity

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

DecCapacity(int, bool)

Decreases the capacity of the pool.

[Obsolete("Use DecreaseCapacity instead.")]
public int DecCapacity(int decrement, bool deactivateFirst = false)

Parameters

decrement int

The number of pool objects to destroy.

deactivateFirst bool

Whether to deactivate (active) objects before destroying them.

Returns

int

Remarks

This method may destroy active objects.

Exceptions

ArgumentOutOfRangeException

decrement is negative.