fishgame-macroquad icon indicating copy to clipboard operation
fishgame-macroquad copied to clipboard

macroquad-particles nanoserde deserialization of HIT_FX fail

Open logixworx opened this issue 2 years ago • 0 comments

any ideas?

thread 'main' panicked at 'called Result::unwrap() on an Err value: Json Deserialize error: Enum not defined Point, line:1 col:51', src\main.rs:140:62

let hit_fxses = EmittersCache::new(nanoserde::DeJson::deserialize_json(HIT_FX).unwrap());

under [dependencies] i have: macroquad-particles = {version = "0.1.1", features = ["nanoserde"] }

macroqud-particles lib.rs it has: #[derive(Copy, Clone, PartialEq, Debug)] #[cfg_attr(feature = "nanoserde", derive(DeJson, SerJson))] pub enum EmissionShape { Point, Rect { width: f32, height: f32 }, Sphere { radius: f32 }, }

logixworx avatar Mar 17 '23 09:03 logixworx