MCPcopy Create free account
hub / github.com/17cupsofcoffee/rl / new

Method new

src/resources.rs:14–20  ·  view source on GitHub ↗
(world: &mut World, map_width: usize, map_height: usize)

Source from the content-addressed store, hash-verified

12
13impl Resources {
14 pub fn new(world: &mut World, map_width: usize, map_height: usize) -> Resources {
15 Resources {
16 input: Input::new(),
17 turn_state: TurnState::new(),
18 map: Map::generate(world, map_width, map_height),
19 }
20 }
21}
22
23pub struct Input {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected