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
Entityif the number of existingEntitieshas not exceeded thelimit.Parameters:
Name Type Description xnumber ynumber keyany - Source:
 
Returns:
- Type
 - Entity
 
 - 
    
next(x, y, key) → {Entity}
 - 
    
    
This will return a new
Entityif the number of existingEntitieshas not exceeded thelimit.Parameters:
Name Type Description xnumber ynumber keyany - Source:
 
Returns:
- Type
 - Entity