kubi/kubi-shared/src/player.rs

12 lines
258 B
Rust
Raw Normal View History

2023-03-08 15:34:41 -06:00
use shipyard::Component;
use crate::block::Block;
2023-03-08 15:34:41 -06:00
2023-03-12 20:24:37 -05:00
pub const PLAYER_HEALTH: u8 = 20;
2023-03-08 15:34:41 -06:00
#[derive(Component)]
pub struct Player;
#[derive(Component, Clone, Copy, Debug, Default, PartialEq, Eq)]
#[repr(transparent)]
pub struct PlayerHolding(pub Option<Block>);