Skip to main content

Crate openstranded_common_items

Crate openstranded_common_items 

Source
Expand description

§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

TypePurpose
ItemDefFull item type definition
ItemGroupCategory enum (material, food, tool, weapon, …)
MaterialMaterial enum (wood, stone, metal, flesh, …)
ItemStackECS component: item_id + amount + optional durability

§Dependency

Only serde — this is a pure data crate with no engine or plugin API dependencies.

Structs§

ItemDef
Full definition of a single item type.
ItemStack
A stack of identical items in an inventory.

Enums§

ItemGroup
Category of an item.
Material
Material type of an item.