Skip to content

Conversation

valzargaming
Copy link
Member

@valzargaming valzargaming commented Sep 4, 2025

This pull request refactors numerous attribute getter methods across the codebase to use a new helper method, attributeHelper, for Part creation and attribute access. This change improves code consistency, reduces duplication, and makes it easier to manage extra data passed to constructors. The update also modifies the implementation of attributeHelper in PartTrait to support additional data merging for object instantiation.

Refactoring attribute getters to use attributeHelper:

Enhancements to attributeHelper:

  • Updated the attributeHelper method in PartTrait to accept an optional extraData array, which is merged into the attributes when creating new objects, allowing for more flexible and context-aware instantiation.

This refactor will make future maintenance easier and help ensure that attribute access and object creation remain consistent throughout the codebase.

@valzargaming valzargaming marked this pull request as ready for review September 4, 2025 13:25
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