bevy-learning

A learning project of mine.
git clone git://archive.git.mtrnord.blog/MTRNord/bevy-learning.git
Log | Files | Refs

player.rs (320B)


      1 use crate::entities::common::Health;
      2 use crate::entities::markers::Player;
      3 use bevy::prelude::*;
      4 
      5 #[derive(Debug)]
      6 pub struct PlayerXp(pub f64);
      7 
      8 pub struct PlayerName(pub String);
      9 
     10 #[derive(Bundle)]
     11 pub struct PlayerBundle {
     12     pub xp: PlayerXp,
     13     pub name: PlayerName,
     14     pub health: Health,
     15     pub _p: Player,
     16 }