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

Add support for loading resources from disk #34

Merged
merged 2 commits into from
Nov 14, 2020
Merged

Conversation

ThomasThelen
Copy link
Collaborator

@ThomasThelen ThomasThelen commented Nov 3, 2020

Fixes issue #33

This pull request adds a load method to the resource_manager class that loads resources from disk and adds them to the manager. @ohmannyy the code for loading winiks should look almost identical to this.

To test

  1. Create your own file that contains resources
  2. Make sure that you can load and edit them in a custom model

edit: There's a bit of extra code in get_states that doesn't work, but it never worked before and this is a *bit closer to working. I can remove this extra code of of the pull request if you want!

@ThomasThelen
Copy link
Collaborator Author

It'll be a bit easier to look at the changes commit by commit. I fixed a few bugs and updated the unit test in subsequent commits.

@ThomasThelen ThomasThelen merged commit 8afa452 into master Nov 14, 2020
@ThomasThelen ThomasThelen deleted the load_resources branch November 14, 2020 19:09
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.

None yet

2 participants