Skip to content

JSON Mappings#47

Merged
Novampr merged 1 commit into
masterfrom
feat/mappings_abstraction
Dec 23, 2025
Merged

JSON Mappings#47
Novampr merged 1 commit into
masterfrom
feat/mappings_abstraction

Conversation

@Novampr

@Novampr Novampr commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator

Turns TextureMappings into JsonMappings which abstracts this system out to allow other asset types to take advantage of the JSON mapping system. This also brings some nice changes which makes working with the mappings easier, notibly, the JSON mapping is "compiled" before hand, which means while the JSON can have objects, at the end, you just need to input a path:

{
    "block": {
        "test": "success"
    }
}

turns into

{
    "block/test": "block/success"
}

For textures, the sub directory changing is handled after the fact still (block -> blocks), so this has been handled.

@Novampr Novampr force-pushed the feat/mappings_abstraction branch from c00da11 to 5bed685 Compare December 23, 2025 12:38
@Novampr Novampr merged commit 37f5a55 into master Dec 23, 2025
2 checks passed
@Novampr Novampr deleted the feat/mappings_abstraction branch December 23, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants