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

Allow de/serialization of character profiles and sources from/to files #108

Merged
merged 16 commits into from
Nov 7, 2024

Conversation

Carifio24
Copy link
Owner

@Carifio24 Carifio24 commented Nov 2, 2024

This PR adds the ability to save character profiles and created sources (with their created spells) to JSON files, in addition to the current functionality of copying to the clipboard. This also adds the ability to import profiles and sources directly off JSON files saved on the user's device.

As part of this, the functionality for the character and source adapter popup menus is now handler via a handler interface that gets passed in, rather than via the adapter directly. We don't have events that we can emit here, but this interface is intended to mimic an event handler-style setup. This was necessary for setting up the file export handling, but also has the benefit of making the adapters significantly more reusable.

@Carifio24 Carifio24 added the enhancement New feature or request label Nov 2, 2024
@Carifio24 Carifio24 merged commit 4a5faae into master Nov 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant