heroiclabs/fishgame-macroquad

macroquad-particles nanoserde deserialization of HIT_FX fail

logixworx opened this issue · 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 },
}