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

Move persistent storage into LuaGuiElement#tags #6

Open
maxpowa opened this issue Sep 3, 2024 · 0 comments
Open

Move persistent storage into LuaGuiElement#tags #6

maxpowa opened this issue Sep 3, 2024 · 0 comments

Comments

@maxpowa
Copy link
Owner

maxpowa commented Sep 3, 2024

LuaGuiElement provides .tags, which is a Tags object: https://lua-api.factorio.com/latest/concepts.html#Tags

Will need to be careful to directly update .tags and not mutate, but it should work fine otherwise. Unable to store functions in this object, but that is good since we should be rebuilding event listeners and such when we load the save file.

@maxpowa maxpowa converted this from a draft issue Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant