ultimate-research / ssbh_lib

Reading and writing SSBH file formats in Rust
MIT License
8 stars 3 forks source link

Add an enum for booleans #98

Open ScanMountGoat opened 3 years ago

ScanMountGoat commented 3 years ago

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
}