parse entity types at compile time

This commit is contained in:
Alexander Medvedev committed 2025-01-11 17:59:36 +01:00
1 parent 308c125a20
commit aad1f91acb
18 files changed
+88 -185

No files matched your search

+2
View File
@@ -7,6 +7,7 @@ use syn::Ident;
mod chunk_status;
mod entity_pose;
mod entity_type;
mod game_event;
mod packet;
mod particle;
@@ -27,6 +28,7 @@ pub fn main() {
write_generated_file(entity_pose::build(), "entity_pose.rs");
write_generated_file(scoreboard_slot::build(), "scoreboard_slot.rs");
write_generated_file(world_event::build(), "world_event.rs");
write_generated_file(entity_type::build(), "entity_type.rs");
}
pub fn array_to_tokenstream(array: Vec<String>) -> TokenStream {