Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Working on the bee dungeon, I've added an import button to the map editor so it can import the data from JSON. so starting on a fresh map I can import it either by choosing a file or pasting the JSON. It's very crude and could be made prettier, but it works.
Pressing the import button shows this modal
When you load the json the map will be replaced. Remember to press save to persist it in the database
Early on in my develop environment I lost my database every time I made code changes, so this works nicely, it also allows to supply a map in a json file for easy import when the server boots up.
It does this by looking in
design/maps/[keyname].json
for a json file with the contents you get from pressing the JSON button in the map editor. This allows for us to easily make a PR containing a map that will be loaded when the server restarts.This PR is temporarily marked as draft untill Drippy has verified it works on their local environment.