diff options
Diffstat (limited to 'codegen/lib/code/utils.py')
| -rwxr-xr-x | codegen/lib/code/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/codegen/lib/code/utils.py b/codegen/lib/code/utils.py index 66b18eed..5550cdb2 100755 --- a/codegen/lib/code/utils.py +++ b/codegen/lib/code/utils.py @@ -63,6 +63,12 @@ def burger_type_to_rust_type(burger_type, field_name: Optional[str] = None, inst elif burger_type == 'metadata': field_type_rs = 'EntityMetadata' uses.add('azalea_entity::EntityMetadata') + elif burger_type == 'bitset': + if instruction: + length = instruction['length'] + field_type_rs = f'todo!("fixed bitset of length {length}")' + else: + field_type_rs = 'todo!("fixed bitset")' elif burger_type == 'abstract': field_type_rs = 'todo!()' elif burger_type == 'enum': |
