new Factory(entity, group, bounds [, limit])
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
entity |
any | ||
group |
any | ||
bounds |
Array | ||
limit |
number |
<optional> |
- Source:
Methods
-
next(x, y, key) → {Entity}
-
This will return a new
Entity
if the number of existingEntities
has not exceeded thelimit
.Parameters:
Name Type Description x
number y
number key
any - Source:
Returns:
- Type
- Entity
-
next(x, y, key) → {Entity}
-
This will return a new
Entity
if the number of existingEntities
has not exceeded thelimit
.Parameters:
Name Type Description x
number y
number key
any - Source:
Returns:
- Type
- Entity