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

Ability to handle custom save file layouts #145

Open
Pulverizer opened this issue Apr 19, 2020 · 1 comment
Open

Ability to handle custom save file layouts #145

Pulverizer opened this issue Apr 19, 2020 · 1 comment
Milestone

Comments

@Pulverizer
Copy link

Similar to YAML flow style but allowing the user to override on a per-node basis.
eg. YAML Block Style:

flyblocks:
    minecraft:wool:
    - 50.0
    - 100.0
    ?   - minecraft:chest
        - minecraft:trapped_chest
    :   - 0.0
        - N50

vs the plugin I'm porting:

flyblocks:
    "minecraft:wool": #wool represents lift
        - 50.0
        - 100.0
    ["minecraft:chest","minecraft:trapped_chest"]: # limit chests to make big airships important for merchant missions
        - 0.0
        - N50
@zml2008
Copy link
Member

zml2008 commented Apr 20, 2020

Looking into SnakeYAML, this should actually be possible -- we'll want to migrate from using their load/dump API to using their compose/represent APIs to give us more control.

This will require RepresentationHints to be added to nodes, so it won't make it in for 3.7

@zml2008 zml2008 added this to the 4.0 milestone Apr 20, 2020
@zml2008 zml2008 modified the milestones: 4.0, 4.1 Oct 26, 2020
@zml2008 zml2008 modified the milestones: 4.1, 4.2 May 3, 2021
@zml2008 zml2008 modified the milestones: 4.2.0, 4.3.0 Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants