Pool

Module: engine.pool

Pool manager. Instance automatically created at game.pool

Properties

pools Object

(No description yet)

Methods

create(pool) Boolean

Create new pool.

Parameters:

  • pool String

    Name of the pool.

Returns false, if pool already exists.

get(pool) Object

Get object from pool.

Parameters:

  • pool String

    Name of the pool.

put(pool, object) Boolean

Put object to pool.

Parameters:

  • pool String

    Name of the pool.

  • object Object

    Object to put to the pool.

Returns false, if pool not found.