3beaa12706
Build / build (push) Failing after 30s
Capture, +, and - use RecipeProvider.outputCount. Planks move by 4. Gather stays 1. Minus at or below one yield removes the goal.
134 lines
2.6 KiB
Markdown
134 lines
2.6 KiB
Markdown
# 🗣️ Ubiquitous Language
|
||
|
||
> These terms have **ONE** meaning across the entire project.
|
||
|
||
---
|
||
|
||
## Core chain
|
||
|
||
```text
|
||
Goal → Recipe Resolution → Material Requirements
|
||
→ Material Aggregation → Inventory State
|
||
→ Missing Materials / Ready To Craft
|
||
→ Completed Goal
|
||
```
|
||
|
||
[[📁 Project]] is optional grouping. It is not a step in the chain.
|
||
|
||
Material calculations aggregate across projects.
|
||
|
||
---
|
||
|
||
## [[🎯 Goal]]
|
||
|
||
A thing the player wishes to obtain.
|
||
|
||
Contains: Target Item (**ItemId**, `namespace:path`), Target Quantity (≥ 1).
|
||
|
||
One Goal per ItemId in the plan. Create / `[+]` / `[-]` step by one recipe’s output (no recipe → 1). `[-]` at or below one yield removes it.
|
||
|
||
Examples: 4 Ender Chests. 1 AE2 Controller. 64 Export Buses.
|
||
|
||
Player copy **Crafting Goals** means this. Code and docs say Goal. See [[🖥️ Experience]].
|
||
|
||
---
|
||
|
||
## [[📁 Project]]
|
||
|
||
An optional grouping of goals.
|
||
|
||
Examples: AE2 Setup. Reactor Project. Factory Expansion.
|
||
|
||
Projects exist purely for organization.
|
||
|
||
---
|
||
|
||
## [[🧱 Material Requirement]]
|
||
|
||
A quantity of a material required to complete a goal.
|
||
|
||
Example: Diamond x12
|
||
|
||
---
|
||
|
||
## Aggregated Material Requirement
|
||
|
||
The combined [[🧱 Material Requirement|material requirements]] of all active goals.
|
||
|
||
Goal A needs Diamond x4. Goal B needs Diamond x8. Aggregated: Diamond x12.
|
||
|
||
---
|
||
|
||
## [[🎒 Inventory State]]
|
||
|
||
A snapshot of materials currently available to the player.
|
||
|
||
The domain only cares about available quantities.
|
||
|
||
---
|
||
|
||
## [[📉 Missing Material]]
|
||
|
||
A material requirement that has not yet been fulfilled.
|
||
|
||
```text
|
||
Missing = Required - Available
|
||
```
|
||
|
||
---
|
||
|
||
## [[🛠️ Ready To Craft]]
|
||
|
||
All materials required for a goal are available.
|
||
|
||
Ready To Craft does not imply completion.
|
||
|
||
---
|
||
|
||
## [[✅ Completed Goal]]
|
||
|
||
A goal the player considers finished.
|
||
|
||
Completion strategy is configurable (manual, inventory detection, future implementations).
|
||
|
||
---
|
||
|
||
## Domain services
|
||
|
||
| Service | Meaning |
|
||
|---------|---------|
|
||
| [[🧾 Recipe Resolution]] | Goal → material requirements |
|
||
| [[➕ Material Aggregation]] | Active goals → aggregated material list |
|
||
| [[📈 Progress Calculation]] | Missing, ready-to-craft, completion status |
|
||
|
||
---
|
||
|
||
## Rejected (not in the language)
|
||
|
||
Not owned by this domain. May be integrated with later.
|
||
|
||
- Auto Crafting
|
||
- AE2 Job Submission
|
||
- Storage Automation
|
||
- Item Routing
|
||
- Quest Management
|
||
- Factory Automation
|
||
- Inventory Sorting
|
||
- Recipe Viewing
|
||
|
||
---
|
||
|
||
## Related Documents
|
||
|
||
[[📦 Bounded Contexts]]
|
||
|
||
[[🌟 Project Vision]]
|
||
|
||
[[🧭 Notes for the Wayfinder]]
|
||
|
||
[[🖥️ Experience]]
|
||
|
||
[[▶️ Create Goal]]
|
||
|
||
[[🔌 Recipe Provider]]
|