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

New WithTechType overload and explicit cast from Enum to EnumBuilder<Enum> #457

Merged

Conversation

Metious
Copy link
Member

@Metious Metious commented Sep 2, 2023

Changes made in this pull request

  • Added a PrefabInfo.WithTechType overload that doesn't take a display name and a description. Especially useful for tech types that have the language entries set elsewhere (E.G: localizations)
  • Added an explicit casting operator from Enum to EnumBuilder. Can be used to cast a vanilla enum to EnumBuilder, then use the extension methods we provide for each one of them.

This overload is especially useful when you're adding language lines before creating this tech type, so you don't have to supply `null` for displayName and the description and make the call unnecessarily longer.
@Metious Metious self-assigned this Sep 2, 2023
@LeeTwentyThree LeeTwentyThree changed the title Added more WithTechType overloads New WithTechType overload and explicit cast from Enum to EnumBuilder<Enum> Sep 4, 2023
@LeeTwentyThree
Copy link
Member

Great changes

@LeeTwentyThree LeeTwentyThree merged commit 20084f4 into SubnauticaModding:master Sep 4, 2023
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants