Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clue object structure #81

Closed
alexis-martel opened this issue Mar 23, 2023 · 0 comments
Closed

Clue object structure #81

alexis-martel opened this issue Mar 23, 2023 · 0 comments
Labels
enhancement New feature or request oc editor This is specific to the puzzle editor oc player This is specific to the puzzle player

Comments

@alexis-martel
Copy link
Owner

Change the structure of the clues object from this:

"clues": {
    "across": {
      "1": "Example clue 1-Across"
    }
  }

to something like this:

"clues": {
    "across": {
      "1": {
        "content": "Example clue 1-Across",
        "hint": "This is the hint to 1-Across",
        "links": ["1-Down", "2-Across"],
        "media": [
          {
          "type": "image",
          "source": "example.com/image.png"
          }
        ]
      }
    }
  }

to allow fixing issues #77 and #60.

@alexis-martel alexis-martel added enhancement New feature or request oc editor This is specific to the puzzle editor oc player This is specific to the puzzle player labels Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request oc editor This is specific to the puzzle editor oc player This is specific to the puzzle player
Projects
None yet
Development

No branches or pull requests

1 participant