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

Extensibility of DDAPI #26

Open
DecDuck opened this issue Aug 14, 2023 · 3 comments
Open

Extensibility of DDAPI #26

DecDuck opened this issue Aug 14, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request meta Anything related to the future and planning of the project

Comments

@DecDuck
Copy link
Member

DecDuck commented Aug 14, 2023

Context: I'm looking into ways to build my Spellbind mod.

A way to add custom submodules (see #25) that transform mod-specific schemas.

Namespacing was definitely a good idea.

@DecDuck DecDuck added the enhancement New feature or request label Aug 14, 2023
@DecDuck DecDuck self-assigned this Aug 14, 2023
@DecDuck
Copy link
Member Author

DecDuck commented Aug 14, 2023

I'm thinking about a kind of structure rework (from a monolithic module) to something like this:
image
Pros:

  • Mods can add custom handlers and then add their own DDAPI definitions
  • Versioning available
  • Validation from schema, so catching errors early on in the loading process (also making us maintain schemas)
    Cons:
  • More work?
  • ... I think I'm blind to the down sides because I made it up

@DecDuck
Copy link
Member Author

DecDuck commented Aug 14, 2023

Just a little context:

  1. By "transform data" I mean expanding schema shortcuts (like when people put a single value for a single entry array), and stuff like that - no actual game processing.
  2. "Hook game and load data" isn't a single script, it's probably closer to what DDAPI already does, with shadows all over the place.

@DecDuck
Copy link
Member Author

DecDuck commented Aug 14, 2023

Approach would also solve #24

@DecDuck DecDuck added the meta Anything related to the future and planning of the project label Aug 14, 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 meta Anything related to the future and planning of the project
Projects
None yet
Development

No branches or pull requests

1 participant