vitium_api/game/components/
container.rs1use bevy_ecs::component::Component;
2use serde::{Deserialize, Serialize};
3
4use crate::UId;
5
6#[derive(Clone, Serialize, Deserialize, Component)]
8#[cfg_attr(target_family = "wasm", derive(tsify_next::Tsify))]
9#[cfg_attr(
10 target_family = "wasm",
11 tsify(into_wasm_abi, from_wasm_abi, large_number_types_as_bigints)
12)]
13pub struct Container {
14 pub time_cost: i32,
16 pub length: i32,
18 pub volume: i32,
20 pub weight: i32,
22 pub waterproof: bool,
24 pub content: Vec<UId>,
25}