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

Placeholder file to default some polygons #7

Closed
Ezian opened this issue May 4, 2022 · 0 comments · Fixed by #20
Closed

Placeholder file to default some polygons #7

Ezian opened this issue May 4, 2022 · 0 comments · Fixed by #20
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@Ezian
Copy link
Owner

Ezian commented May 4, 2022

Actual behavior

Only the polygons defined through a specific XXYY-something.md file will be rendered. It can be painful to define large map with almost nothing.

Expected behavior

Allow user to passe several yaml files which contains description of tiles without MD parts.

Each yaml files can contains several parts splitted as yaml specification (--- characters) and contains a map of values indexed by a string on the "XXYY" format.

Since Yaml can be inlined, it could be easy to quickly define simple hexagons, with full support of all feature, even future one.

Example:

# Careful: 0XXX in YAML spec is an octal number. To avoid confusion, we need to put XXYY coordinates between quotes.
"0705": {"terrain": {"type": "grassland", "mixed":[{"type": "sea", "sides":["NO","SO","NE"}], "roads": ["c SE"], "icon": "fortin", "alt":"Fortin"}
"0806": {"terrain": {"type": "grassland", "mixed":[{"type": "sea", "sides":["N","NE","SE"}], "roads": ["NO NE", "NO S"], "rivers": ["N S", "N SO", "N SE"]}

Above yaml will be equivalent to:

# File 0705-something.md
---
terrain:
    type: grassland
    mixed: 
      - type: sea
        sides:
          - NO
          - SO
          - NE
roads:
  - c SE
icon: fortin
alt: Fortin
---
# File 0806-something.md
---
terrain:
    type: grassland
    mixed: 
      - type: sea
        sides:
          - N
          - NE
          - SE
      - type: plains:
        sides:
          - S
roads:
  - NO NE
  - NO S
rivers: 
  - N S
  - N SO
  - N SE
---
@Ezian Ezian added enhancement New feature or request good first issue Good for newcomers labels May 4, 2022
@Ezian Ezian added this to the v1.1.0 milestone May 7, 2022
@Ezian Ezian assigned Ezian and unassigned Ezian May 14, 2022
@Ezian Ezian self-assigned this Jun 5, 2022
@Ezian Ezian changed the title Placeholder CSV file to default some polygons Placeholder file to default some polygons Jun 7, 2022
@Ezian Ezian pinned this issue Jun 7, 2022
Ezian pushed a commit that referenced this issue Jun 12, 2022
Ezian pushed a commit that referenced this issue Jun 12, 2022
Ezian pushed a commit that referenced this issue Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant