common/src/map.rs
2024-02-04 22:41:45 -08:00

15 lines
439 B
Rust

use std::collections::HashMap;
use crate::model;
use crate::gameplay_modes;
use crate::gameplay_attributes;
//this is the current map data loaded in memory
pub struct Map{
pub modes:gameplay_modes::Modes,
pub indexed_models:HashMap<model::IndexedModelId,model::IndexedModel>,
pub models:HashMap<model::ModelId,model::Model>,
pub attributes:Vec<gameplay_attributes::CollisionAttributes>,
//RenderPattern
pub textures:Vec<Vec<u8>>,
}