Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

macroquad-particles nanoserde deserialization of HIT_FX fail #12

Open
logixworx opened this issue Mar 17, 2023 · 0 comments
Open

macroquad-particles nanoserde deserialization of HIT_FX fail #12

logixworx opened this issue Mar 17, 2023 · 0 comments

Comments

@logixworx
Copy link

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 },
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant