FactorablePool

Manages active and inactive objects for a factory.

Definition

Namespace: Paragon.Core.ScriptableFactory Assembly: Paragon.dll

public class FactorablePool

Properties

Property
Type
Description

Factory

IScriptableFactory<IFactorable>

Parent factory

Capacity

int

Total pooled objects

Methods

GetObject()

Gets an inactive object, or creates a new one.

public IFactorable GetObject();

Query Methods

public IEnumerable<IFactorable> GetPool();
public IEnumerable<IFactorable> GetActiveObjects();
public IEnumerable<IFactorable> GetInactiveObjects();

Destroy()

Destroys all pooled objects.

See Also

Last updated

Was this helpful?