Expand description
§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.
Structs§
- Harvest
Def - Item-harvest / search configuration.
- Object
Def - Full definition of a single world-object type.
- Object
Scale - Per-axis scale factors for the object’s 3D model.
- Spawn
Def - Periodic item-spawn configuration.
Enums§
- Collision
Mode - Collision mode for a world object.
- Object
State - How the object’s state (animation/growth offset) is determined.