API Docs for: 0.6.1
Show:

Pool Class

Defined in: src/utils/Pool.js:3

For pooling objects that can be reused.

Constructor

Pool

()

Defined in src/utils/Pool.js:3

Item Index

Properties

Methods

constructObject

() Mixed

Construct an object. Should be implmented in each subclass.

Returns:

Mixed:

get

() Mixed

Get an object

Returns:

Mixed:

release

(
  • obj
)

Release an object after use

Parameters:

  • obj Object

Properties

objects

Array

Defined in src/utils/Pool.js:9

The pooled objects

type

Mixed

Constructor of the objects