mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
drop gate parts
This commit is contained in:
parent
a966841c5a
commit
ee83479748
BIN
assets/voxygen/voxel/sprite/castle/drop_gate_bars-0.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/castle/drop_gate_bars-0.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/castle/drop_gate_bottom-0.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/castle/drop_gate_bottom-0.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -88,6 +88,8 @@ pub enum BlockKind {
|
||||
Stones,
|
||||
Twigs,
|
||||
ShinyGem,
|
||||
DropGate,
|
||||
DropGateBottom,
|
||||
}
|
||||
|
||||
impl fmt::Display for BlockKind {
|
||||
@ -191,6 +193,8 @@ impl BlockKind {
|
||||
BlockKind::Stones => true,
|
||||
BlockKind::Twigs => true,
|
||||
BlockKind::ShinyGem => true,
|
||||
BlockKind::DropGate => false,
|
||||
BlockKind::DropGateBottom => false,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
@ -288,6 +292,8 @@ impl BlockKind {
|
||||
BlockKind::Stones => false,
|
||||
BlockKind::Twigs => false,
|
||||
BlockKind::ShinyGem => false,
|
||||
BlockKind::DropGate => false,
|
||||
BlockKind::DropGateBottom => false,
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
@ -362,6 +368,8 @@ impl BlockKind {
|
||||
BlockKind::Stones => false,
|
||||
BlockKind::Twigs => false,
|
||||
BlockKind::ShinyGem => false,
|
||||
BlockKind::DropGate => true,
|
||||
BlockKind::DropGateBottom => false,
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
@ -486,7 +494,10 @@ impl Block {
|
||||
| BlockKind::WardrobeSingle
|
||||
| BlockKind::WardrobeDouble
|
||||
| BlockKind::Pot
|
||||
| BlockKind::DropGate
|
||||
| BlockKind::DropGateBottom
|
||||
| BlockKind::Door => Some(self.color[0] & 0b111),
|
||||
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
@ -350,6 +350,14 @@ fn sprite_config_for(kind: BlockKind) -> Option<SpriteConfig> {
|
||||
variations: 3,
|
||||
wind_sway: 0.0,
|
||||
}),
|
||||
BlockKind::DropGate => Some(SpriteConfig {
|
||||
variations: 1,
|
||||
wind_sway: 0.0,
|
||||
}),
|
||||
BlockKind::DropGateBottom => Some(SpriteConfig {
|
||||
variations: 1,
|
||||
wind_sway: 0.0,
|
||||
}),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
@ -2733,6 +2741,23 @@ impl<V: RectRasterableVol> Terrain<V> {
|
||||
Vec3::one(),
|
||||
),
|
||||
),
|
||||
// Drop Gate Parts
|
||||
(
|
||||
(BlockKind::DropGate, 0),
|
||||
make_models(
|
||||
"voxygen.voxel.sprite.castle.drop_gate_bars-0",
|
||||
Vec3::new(-5.5, -5.5, 0.0),
|
||||
Vec3::one(),
|
||||
),
|
||||
),
|
||||
(
|
||||
(BlockKind::DropGateBottom, 0),
|
||||
make_models(
|
||||
"voxygen.voxel.sprite.castle.drop_gate_bottom-0",
|
||||
Vec3::new(-5.5, -5.5, 0.0),
|
||||
Vec3::one(),
|
||||
),
|
||||
),
|
||||
]
|
||||
.into_iter()
|
||||
.collect(),
|
||||
|
Loading…
Reference in New Issue
Block a user