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 an enum for booleans #98

Open
ScanMountGoat opened this issue Oct 22, 2021 · 0 comments
Open

Add an enum for booleans #98

ScanMountGoat opened this issue Oct 22, 2021 · 0 comments
Labels
enhancement New feature or request ssbh_lib reading and writing of ssbh files

Comments

@ScanMountGoat
Copy link
Member

ScanMountGoat commented Oct 22, 2021

This would prevent potentially invalid values while making the API cleaner. This will also impact serializing/deserializing. For clarity, the serialization should use lowercase to match the expected formatting for JSON.

pub enum Bool32 {
    True,
    False
}
@ScanMountGoat ScanMountGoat added enhancement New feature or request ssbh_lib reading and writing of ssbh files labels Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ssbh_lib reading and writing of ssbh files
Projects
None yet
Development

No branches or pull requests

1 participant