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

Class Level

src/ldtk.rs:67–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65#[derive(Clone, Debug, Deserialize)]
66#[serde(rename_all = "camelCase")]
67pub struct Level {
68 #[serde(rename = "__neighbours")]
69 pub neighbours: Vec<Neighbour>,
70
71 pub identifier: String,
72
73 pub iid: String,
74
75 #[serde(rename = "pxWid")]
76 pub width: i32,
77
78 #[serde(rename = "pxHei")]
79 pub height: i32,
80
81 #[serde(default = "Vec::new")]
82 pub layer_instances: Vec<LayerInstance>,
83}
84
85impl Level {
86 pub fn get_layer(&self, id: &str) -> Option<&LayerInstance> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected