use bevy::prelude::*; use bevy_platform::collections::hash_map::HashMap; use crate::{entities::item::Item, game}; #[derive(Resource, Default, Clone)] pub struct TileMap { pub floor_tiles: HashMap, //id, canStandIn, canStandOn, visiblyTransparent, astar_weight, visible_range pub fixture_tiles: HashMap, // id, canStandIn, canStandOn, visible_range pub item_tiles: HashMap>, // Entity.id's of items on this tile } #[derive(Resource)] pub struct ItemRotationTimer { timer: Timer, current_indices: HashMap, } impl Default for ItemRotationTimer { fn default() -> Self { Self { timer: Timer::from_seconds(0.4f32, TimerMode::Repeating), current_indices: HashMap::default(), } } } pub fn item_tile_management_system( time: Res