Skip to content

Move StoredEffect's ResultType next to Result and make it required - #255

Merged
stidsborg merged 3 commits into
mainfrom
stored-effect-result-type-required
Aug 9, 2026
Merged

stidsborg merged 3 commits into
mainfrom
stored-effect-result-type-required

Conversation

@stidsborg

Copy link
Copy Markdown
Owner

StoredEffect.ResultType sat last in the parameter list with a = null default, away from the Result it describes. It is now declared directly after Result and has no default, so every construction site must state the type id the result was serialized as.

  • Storage/Types.cs: parameter moved, default removed; the Create* factories and Deserialize follow the new order. The serialized layout (BinaryPacker slot 5) is unchanged, so persistence is unaffected.
  • All construction sites pass ResultType explicitly — InvocationHelper.MapInitialEffects, EffectPrinter, ExistingEffects and the test suites. The two sites that already supplied a real type id keep it, just moved next to Result.

Solution builds clean; the core test suite passes (557 tests).

🤖 Generated with Claude Code

@stidsborg
stidsborg merged commit 325b463 into main Aug 9, 2026
8 checks passed
@stidsborg
stidsborg deleted the stored-effect-result-type-required branch August 9, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant