Skip to content

Util Extension#92

Open
TheDavSmasher wants to merge 33 commits into
All-Of-Us-Mods:devfrom
TheDavSmasher:util-extension-dev
Open

Util Extension#92
TheDavSmasher wants to merge 33 commits into
All-Of-Us-Mods:devfrom
TheDavSmasher:util-extension-dev

Conversation

@TheDavSmasher

Copy link
Copy Markdown

There's a chance I have to separate this into different branches if anything isn't desired, so just let me know.

Extends the system with the following:

  • Created generic ModdedEnumOptionAttribute, just like base ModdedEnumOption
  • Modifiers have an easy RemoveSelf method
  • ModifierComponent (and the PlayerControl extensions of those methods) now includes:
    • HasModifierOfType
    • GetModifiersOfType
    • GetModifierOfType
    • TryGetModifierOfType
    • TryRemoveModifier with overloads
  • Created new type for property for Option Groups: ModdedOptionList. Allows the creation of a set of multiple options that otherwise share the exact same structure but would have had to be different properties into the same property that can be indexed like a list.
    • My main inspiration was the Role List Slots from Town of Us: Mira, but it is still useful I think.

@TheDavSmasher

Copy link
Copy Markdown
Author

Apparently I also did very minor changes to ModdedOption that should not affect anything, except for maybe changing the set to init for the property but that's it

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