Added savannah settlement lod

This commit is contained in:
Treeco 2024-03-26 21:32:48 +00:00
parent 5bd884df86
commit 9d83b046a6
5 changed files with 27 additions and 0 deletions

BIN
assets/voxygen/lod/savannah_hut.obj (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/lod/savannah_pit.obj (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -32,6 +32,8 @@ pub enum ObjectKind {
Desert,
Palm,
Arena,
SavannahHut,
SavannahPit,
}
#[derive(Clone, Debug, Serialize, Deserialize)]

View File

@ -106,6 +106,14 @@ impl Lod {
),
(lod::ObjectKind::Palm, make_lod_object("palm", renderer)),
(lod::ObjectKind::Arena, make_lod_object("arena", renderer)),
(
lod::ObjectKind::SavannahHut,
make_lod_object("savannah_hut", renderer),
),
(
lod::ObjectKind::SavannahPit,
make_lod_object("savannah_pit", renderer),
),
]
.into(),
}

View File

@ -697,6 +697,17 @@ impl World {
Rgb::black(),
lod::ObjectKind::Arena,
)),
site2::plot::PlotKind::SavannahHut(_)
| site2::plot::PlotKind::SavannahWorkshop(_) => Some((
site.tile_wpos(plot.root_tile),
Rgb::black(),
lod::ObjectKind::SavannahHut,
)),
site2::plot::PlotKind::SavannahPit(_) => Some((
site.tile_wpos(plot.root_tile),
Rgb::black(),
lod::ObjectKind::SavannahPit,
)),
_ => None,
})
})