openstranded-common-objects 0.1.0

OpenStranded object domain types: ObjectDef, CollisionMode, SpawnDef, HarvestDef
Documentation
//! # openstranded-common-objects
//!
//! Shared data types for the OpenStranded world object system.
//!
//! This crate defines the canonical structures that represent world
//! objects — static and interactive entities like trees, rocks,
//! buildings, grass, flowers, and stuff.
//!
//! ## Types
//!
//! | Type | Purpose |
//! |------|---------|
//! | [`ObjectDef`] | Full definition of one object type |
//! | [`CollisionMode`] | Collision mode enum |
//! | [`ObjectScale`] | Per-axis scale factors |
//! | [`ObjectState`] | State offset mode (random / fixed) |
//! | [`SpawnDef`] | Periodic item-spawn configuration |
//! | [`HarvestDef`] | Item-find / search configuration |
//!
//! ## Relationship to `.inf` files
//!
//! Each `id=N` entry in an `objects*.inf` file corresponds to one
//! [`ObjectDef`].  All fields are mapped from their `.inf` names to
//! Rust struct fields by [`ObjectDef::from_inf_fields`].
//!
//! ## Dependency
//!
//! Only `serde` — this is a pure data crate with no engine or plugin API
//! dependencies.

mod object_def;

pub use object_def::{
    CollisionMode, HarvestDef, ObjectDef, ObjectScale, ObjectState, SpawnDef,
};