refactors image loading into fully-fledged prefab builder

This commit is contained in:
Llywelwyn 2023-07-20 21:55:03 +01:00
parent fc59880b80
commit ea79d4064f
7 changed files with 181 additions and 70 deletions

View file

@ -121,7 +121,7 @@ pub fn spawn_region(ecs: &mut World, area: &[usize], map_depth: i32) {
}
}
fn spawn_entity(ecs: &mut World, spawn: &(&usize, &String)) {
pub fn spawn_entity(ecs: &mut World, spawn: &(&usize, &String)) {
let x = (*spawn.0 % MAPWIDTH) as i32;
let y = (*spawn.0 / MAPWIDTH) as i32;