(autoformat)

This commit is contained in:
2025-08-25 19:18:06 -05:00
parent e2b2d5b5d9
commit d235d6af5e
2 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
//! TODO: module doc :v //! TODO: module doc :v
use bevy::ecs::component::Component;
/// Value for the "sub tiles" inside a room tile /// Value for the "sub tiles" inside a room tile
#[derive(Clone, Copy, Debug, Default, PartialEq)] #[derive(Clone, Copy, Debug, Default, PartialEq)]
pub enum Cell { pub enum Cell {
@@ -47,7 +49,7 @@ pub enum RotationDir {
/// An invidiual room, or "card" in the player's hand. The room may /// An invidiual room, or "card" in the player's hand. The room may
/// *or may not* be valid, yet. /// *or may not* be valid, yet.
#[derive(Clone, Copy, Debug, Default, PartialEq)] #[derive(Clone, Copy, Component, Debug, Default, PartialEq)]
pub struct Card { pub struct Card {
cells: [Cell; 9], cells: [Cell; 9],
nw: bool, nw: bool,

View File

@@ -1,4 +1,3 @@
use bevy::prelude::*; use bevy::prelude::*;
/// Data component for info about the player's current set of cards. /// Data component for info about the player's current set of cards.
@@ -7,7 +6,7 @@ use bevy::prelude::*;
/// ///
/// [`Self::low_water_mark`] is the threshold for drawing new cards on-room-enter. /// [`Self::low_water_mark`] is the threshold for drawing new cards on-room-enter.
#[derive(Component)] #[derive(Component)]
pub struct PlayerHand{ pub struct PlayerHand {
cards: Vec<Entity>, cards: Vec<Entity>,
capacity: u8, capacity: u8,
low_water_mark: u8, low_water_mark: u8,