God needs no options.

This commit is contained in:
Nick Winter 2014-02-15 17:38:45 -08:00
parent addf4ca245
commit f94456295e

View file

@ -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 = []