mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Added stupid method argument compilation info for bid(blockNumber) to various Aether compilation steps.
This commit is contained in:
parent
c090103126
commit
7b59c42f5d
3 changed files with 5 additions and 1 deletions
|
@ -400,6 +400,8 @@ module.exports = class Simulator extends CocoClass
|
|||
executionLimit: 1 * 1000 * 1000
|
||||
if methodName is 'hear'
|
||||
aetherOptions.functionParameters = ['speaker', 'message', 'data']
|
||||
if methodName is 'bid'
|
||||
aetherOptions.functionParameters = ['blockNumber']
|
||||
#console.log "creating aether with options", aetherOptions
|
||||
return new Aether aetherOptions
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ module.exports = class LadderSubmissionView extends CocoView
|
|||
includeFlow: false
|
||||
executionLimit: 1 * 1000 * 1000
|
||||
if spellID is "hear" then aetherOptions["functionParameters"] = ["speaker","message","data"]
|
||||
if spellID is "bid" then aetherOptions["functionParameters"] = ["blockNumber"]
|
||||
|
||||
aether = new Aether aetherOptions
|
||||
transpiledCode[thang][spellID] = aether.transpile spell
|
||||
|
|
|
@ -41,6 +41,7 @@ transpileLevelSession = (sessionID, cb) ->
|
|||
includeFlow: false
|
||||
executionLimit: 1 * 1000 * 1000
|
||||
if spellID is "hear" then aetherOptions["functionParameters"] = ["speaker","message","data"]
|
||||
if spellID is "bid" then aetherOptions["functionParameters"] = ["blockNumber"]
|
||||
|
||||
aether = new Aether aetherOptions
|
||||
transpiledCode[thang][spellID] = aether.transpile spell
|
||||
|
@ -83,4 +84,4 @@ transpileLadderSessions = ->
|
|||
throw err if err
|
||||
|
||||
serverSetup.connectToDatabase()
|
||||
transpileLadderSessions()
|
||||
transpileLadderSessions()
|
||||
|
|
Loading…
Reference in a new issue