Crates.io | ldtk-codegen |
lib.rs | ldtk-codegen |
version | 1.0.2 |
source | src |
created_at | 2023-08-07 11:57:32.721754 |
updated_at | 2024-08-24 13:28:20.334944 |
description | Generate typed rust code from LDtk Project |
homepage | |
repository | https://github.com/InfiniteCoder01/ldtk-codegen/ |
max_upload_size | |
id | 937883 |
size | 145,117 |
Generate typed rust code from LDtk Project, just like Haxe API (almost...)!
Just use cargo install or cargo binstall:
cargo install ldtk-codegen
Generate demo.rs from project demo.ldtk using raylib Vector2 and Color:
ldtk-codegen demo.ldtk -v 'raylib::prelude::Vector2' -c 'raylib::prelude::Color'
Generate project.rs from project demo.ldtk with serde support and preserving case:
ldtk-codegen demo.ldtk -o project.rs -p -s
For more info, see ldtk-codegen --help