Skip to content

📦 Results Helpers

Utility helpers for converting result-first operation outcomes into readable text.


🎯 Purpose

Provide formatting helpers for presenting inventory operation results in UI and debugging contexts.


🧩 What Lives Here

  • InvOpResultExtensions → converts operation results into user-facing messages

⚠️ Important Notes

  • These helpers are presentation-only
  • They do not affect gameplay logic or control flow
  • They should not be used for validation or branching decisions

🧠 Usage Guidance

Result formatting

Helpers convert InvOpResult into readable messages using operation codes and optional message content.


Typical usage

Suitable for:

  • debug logging
  • UI messages
  • editor tools
  • teaching and demo panels

Behaviour

  • uses operation codes to determine phrasing
  • may include additional message context when available
  • always returns a string

🚫 Not for Production Use

This folder does not:

  • Define result semantics
  • Replace result-based logic handling
  • Influence gameplay decisions