Result
Result
Lightweight generic result type used by integration-facing interfaces such as IPlaceableInventoryAdapter and IPlaceablePersistenceAdapter.
Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Core/Interfaces/Result.cs
Namespace: GridBuilding.Core.Interfaces
Kind: class
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
Properties
Success
True when the operation completed successfully.
Value
Value produced by a successful operation. May be null when the operation failed.
ErrorMessage
Optional error message for failed operations.
Methods
CreateSuccess
Creates a successful result wrapping the provided value.
Returns: Result<T>
Parameters:
T value
Failure
Creates a failed result with an error message.
Returns: Result<T>
Parameters:
string errorMessage