mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 07:40:22 -04:00
God needs no options.
This commit is contained in:
parent
addf4ca245
commit
f94456295e
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ module.exports = class God
|
|||
worldWaiting: false # whether we're waiting for a worker to free up and run the world
|
||||
constructor: (options) ->
|
||||
@id = God.nextID()
|
||||
options ?= {}
|
||||
@maxAngels = options.maxAngels ? 2 # How many concurrent web workers to use; if set past 8, make up more names
|
||||
@maxWorkerPoolSize = options.maxWorkerPoolSize ? 2 # ~20MB per idle worker
|
||||
@angels = []
|
||||
|
|
Loading…
Add table
Reference in a new issue