Expand description
§openstranded-common-building
Shared data types for the OpenStranded building system.
This crate defines the canonical structures that represent building recipes — what gets built, what materials are required, and where it can be placed.
§Types
| Type | Purpose |
|---|---|
BuildingDef | A single building recipe (from buildings.inf) |
BuildingGroup | Category enum (building, storage, production, …) |
BuildSpace | Placement requirement (land, water, at object, …) |
BuildingRequirement | Material required: item_id + count |
§Relationship to .inf files
Each id=N entry inside a buildings*.inf file corresponds to one
BuildingDef. req=item_id,count lines become
BuildingRequirements. The buildspace= field maps to
BuildSpace.
§Dependency
Only serde — this is a pure data crate with no engine or plugin API
dependencies.
Structs§
- Building
Def - A single building recipe definition.
- Building
Requirement - A single material requirement for a building recipe.
Enums§
- Build
Space - Where a building can be placed.
- Building
Group - Category of a building recipe.