MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / deserialize_ldtk_flags

Function deserialize_ldtk_flags

src/ldtk.rs:224–234  ·  view source on GitHub ↗
(de: D)

Source from the content-addressed store, hash-verified

222}
223
224fn deserialize_ldtk_flags<'de, D>(de: D) -> Result<BVec2, D::Error>
225where
226 D: Deserializer<'de>,
227{
228 let flags: u8 = Deserialize::deserialize(de)?;
229
230 let x = flags == 1 || flags == 3;
231 let y = flags == 2 || flags == 3;
232
233 Ok(BVec2::new(x, y))
234}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected