Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant