openstranded-common-items 0.1.1

OpenStranded item domain types: ItemDef, ItemGroup, Material, ItemStack
Documentation
//! # openstranded-common-items
//!
//! Shared data types for the OpenStranded item system.
//!
//! This crate defines the canonical structures that represent item types
//! and item stacks, used by both the engine (Bevy ECS components) and WASM
//! game plugins (parsing `.ron` registry data, defining service contracts).
//!
//! ## Types
//!
//! | Type | Purpose |
//! |------|---------|
//! | [`ItemDef`] | Full item type definition |
//! | [`ItemGroup`] | Category enum (material, food, tool, weapon, …) |
//! | [`Material`] | Material enum (wood, stone, metal, flesh, …) |
//! | [`ItemStack`] | ECS component: `item_id` + `amount` + optional `durability` |
//!
//! ## Dependency
//!
//! Only `serde` — this is a pure data crate with no engine or plugin API
//! dependencies.

mod item_def;
mod item_stack;

pub use item_def::{ItemDef, ItemGroup, Material};
pub use item_stack::ItemStack;