item flashing

This commit is contained in:
2025-09-14 18:48:50 +01:00
parent 8a5884c6d5
commit 4c4c985be3
13 changed files with 137 additions and 84 deletions
-5
View File
@@ -2,15 +2,10 @@ use bevy::prelude::*;
#[derive(Component, Debug)]
pub struct Container {
// Maximum weight this container can hold
pub max_weight: u32,
// Maximum number of items (None = unlimited)
pub max_items: Option<u32>,
// Current weight of contents
pub current_weight: u32,
// List of item entities contained
pub contents: Vec<Entity>, // TODO - move away from Entity
// Whether the container is currently open/accessible
pub is_open: bool,
}