Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type inferring for Linked Forms and Linking of DeathItems #27

Merged
merged 10 commits into from
Mar 30, 2024

Conversation

adya
Copy link
Collaborator

@adya adya commented Mar 26, 2024

#22
This change expands Linked Forms feature by allowing to make any regular entry as linked using Linked prefix, e.g. LinkedItem, LinkedOutfit, etc. This also introduces type inference by allowing to write LinkedForm and let SPID figure out form's type.

As a side benefit it adds support for linking DeathItems. Note that Only DeathItems can be linked to other DeathItems 🙂

TODO:

  • Backport type inferring to regular entries as well.

This now also allows to write

Form = 0x12345|...

without specifying type of the form you want.

Explicit form type is still useful as it can check whether user's intention matches the actual form type.

P.S. Performance impact of type inference is negligible. (2030 forms scored average ~204ms with both explicit and inferred types)

@adya adya marked this pull request as ready for review March 30, 2024 00:20
@adya adya merged commit a91a1f0 into stable Mar 30, 2024
1 check passed
@adya adya deleted the feature/22-allow-specifying-form-type-in-linkedf branch March 30, 2024 00:24
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