From d112856ff6353592a50658b0ddd316f54dd97b87 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 6 Nov 2022 14:05:01 -0600 Subject: Entity metadata (#37) * add example generated metadata.rs * metadata.rs codegen * add the files * add comment to top of metadata.rs * avoid clone * metadata * defaults * defaults * fix metadata readers and writers * fix bad bitmasks and ignore some clippy warnings in generated code * add set_index function to entity metadatas * applying metadata --- codegen/lib/code/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codegen/lib/code/registry.py') diff --git a/codegen/lib/code/registry.py b/codegen/lib/code/registry.py index 68d8c481..c22eefe9 100644 --- a/codegen/lib/code/registry.py +++ b/codegen/lib/code/registry.py @@ -1,6 +1,6 @@ -from typing import Optional from lib.utils import to_snake_case, upper_first_letter, get_dir_location, to_camel_case from ..mappings import Mappings +from typing import Optional import re REGISTRIES_DIR = get_dir_location('../azalea-registry/src/lib.rs') -- cgit v1.2.3