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

Automatic resource tracking #42

Open
wainwrightmark opened this issue Jul 14, 2023 · 0 comments
Open

Automatic resource tracking #42

wainwrightmark opened this issue Jul 14, 2023 · 0 comments

Comments

@wainwrightmark
Copy link

Hi.
Thanks for making this plugin - it's unbelievably useful.

For my game I've built quite an ergonomic wrapper around it and I think might be worth adding something like it to this crate.
Basically, you call app.init_tracked_resource<T>() for some Resource, and then that resource gets initialized with the value in the PkvStore and every time the resource changes, the store updates. You never need to use the PkvStore directly.

Happy to contribute code / examples / documentation if this is considered worth adding.

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

No branches or pull requests

1 participant