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 get_headers_for_node #185

Merged

Conversation

stargazing-dino
Copy link
Contributor

@stargazing-dino stargazing-dino commented Mar 6, 2024

Hiyo, dialogue does not currently provide a way to access headers outside of plain "tags" so I thought this might be helpful. As background, I'm putting stuff specific to the scene (like time of day and location) in the headers and want it to change some runtime things.

@stargazing-dino
Copy link
Contributor Author

stargazing-dino commented Mar 6, 2024

Hmm... Thinking about this, headers might be better exposed as a hashmap<string, string> or a simple getter. Personally fine with either. I checked the C# version and their dialogue doesn't expose a way of getting headers but i also feel like it should.

@janhohenheim
Copy link
Member

Looks sensible! Could you expose a HashMap as you suggested?

@stargazing-dino
Copy link
Contributor Author

done

@janhohenheim
Copy link
Member

janhohenheim commented Mar 6, 2024

Thanks! Good work :)
Let me know when it would be convenient for you if I made a new release on crates.io

@janhohenheim janhohenheim merged commit 3e33157 into YarnSpinnerTool:main Mar 6, 2024
4 checks passed
@stargazing-dino
Copy link
Contributor Author

I'm just using the main branch 😅. Feel free to do it whenever u think best

@stargazing-dino stargazing-dino deleted the get_headers_for_node branch March 6, 2024 21:10
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.

2 participants