Hi,
I'm making a tower defense game, each tower has stats (damage, range, etc) held in a ron file, each tower also has its own glb file. I'm unsure on the best way to reference the glb files from the ron config file.
#[derive(Debug, Clone, PartialEq, Eq, serde::Deserialize, Asset, TypePath)]
struct TowerDetails {
name: String,
cost: u32,
damage: u32,
range: u32,
attack_speed: u32,
}
I've got this as a base, but if I add mesh: Handle<Gltf> to it it won't work as Handle<Gltf> doesn't implement deserialise. Any ideas what I should be doing instead? Any example of this?
Thanks in advance.