Skip to content

Commit

Permalink
Serialize rooms so they match ranvier's coordinates API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean O'Donohue committed Apr 2, 2018
1 parent c678761 commit 532334e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = function generator (options = {}) {

return {
graphic: map.draw(),
rooms: map.getAllRooms()
rooms: map.getAllRooms().map(room => room.serialize())
}
} else {
throw new Error('3D areas are as of yet unsupported. Omit the Z value for your map.')
Expand Down

0 comments on commit 532334e

Please sign in to comment.