Skip to content

feat(systems): system sets support#83

Merged
Miou-zora merged 7 commits intomainfrom
76-system-groups
Feb 3, 2025
Merged

feat(systems): system sets support#83
Miou-zora merged 7 commits intomainfrom
76-system-groups

Conversation

@ripel2
Copy link
Contributor

@ripel2 ripel2 commented Feb 1, 2025

Related to:

@ripel2 ripel2 linked an issue Feb 1, 2025 that may be closed by this pull request
@ripel2 ripel2 changed the title 76 system groups feat(systems): system sets support Feb 1, 2025
@ripel2
Copy link
Contributor Author

ripel2 commented Feb 1, 2025

last sonar issues are related to the tests

Comment on lines +96 to +104
/**
* Add multiple systems as a tuple to the registry.
*
* @tparam TScheduler The type of scheduler to use.
* @param systems Arg containing multiple systems to register.
*/
template <typename TScheduler = ES::Engine::Scheduler::Update, typename... Systems>
void RegisterSystem(Systems... systems);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than creating a new method which enlarge current API, why didn't you update the current method ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will check it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works and doesn't break tests, I will push it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test feels like pretty heavy to understand and I don't know why you added a new scheduler and run it two times. I think that you could just have 2 systems that set 2 variables to true and that's all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even I am having trouble explaining the tests so I will add some comments for them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rewrote the entire tests according to your recommandations, it should be more explicit now.

@Miou-zora
Copy link
Contributor

Miou-zora commented Feb 2, 2025

last sonar issues are related to the tests

I accept the issues related to global variables but passing std::vector must (in majority of cases) be made with reference avoiding unoptimised copy of data.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2025

@ripel2 ripel2 marked this pull request as ready for review February 2, 2025 22:30
@ripel2 ripel2 requested a review from Miou-zora February 2, 2025 22:30
Copy link
Contributor

@Miou-zora Miou-zora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Miou-zora Miou-zora merged commit cee046a into main Feb 3, 2025
2 checks passed
@Miou-zora Miou-zora deleted the 76-system-groups branch February 3, 2025 04:44
MasterLaplace pushed a commit that referenced this pull request Feb 12, 2025
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.

System groups

2 participants