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

Method get_level

src/ldtk.rs:19–21  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

17 }
18
19 pub fn get_level(&self, id: &str) -> Option<&Level> {
20 self.levels.iter().find(|l| l.identifier == id)
21 }
22
23 pub fn get_level_by_iid(&self, id: &str) -> Option<&Level> {
24 self.levels.iter().find(|l| l.iid == id)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected