seiyria/IdleLands — pull request #85 by Ancanus (2014-07-21 07:07:37+00:00)
Title: [debug] Allow interactive sessions in Local-Test

Added an interactive prompt that allows evaluating javascript in
Local-Test. Intended usage is to pause execution, evaluate API calls,
and continue execution.

Usage:
coffee ext\local-test\LocalTest.coffee
Rebooted IdleLands.
Registered broadcast handler.
Initializing the Lands that Idle (Idletopia).
Danret, the level 8 Generalist, has joined Idletopia!
Carple, the level 8 Generalist, has joined Idletopia!
Groat, the level 9 Generalist, has joined Idletopia!
Goop, the level 9 Generalist, has joined Idletopia!
Jeut, the level 8 Generalist, has joined Idletopia!
Jombocom, the level 7 Generalist, has joined Idletopia!
Axce, the level 8 Cleric, has joined Idletopia!
[I press Enter]

halt: c to continue> getWrapper().game.api
Evaluating [getWrapper().game.api]
[TypeError: Cannot read property 'api' of undefined]
halt: c to continue> getWrapper().api.game
Evaluating [getWrapper().api.game]
{ nextAction: [Function],
teleport:
{ singleLocation: [Function],
single: [Function],
massLocation: [Function],
mass: [Function] } }
halt: c to continue>