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

fix(ecs-gestalt): Migrate Components to gestalt's Components. #10

Merged
merged 6 commits into from
Aug 25, 2021

Conversation

DarkWeird
Copy link
Contributor

this.monitorSize = other.monitorSize;
this.front = other.front;
this.mode = other.mode;
this.data = Lists.newArrayList(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

If you change the constructor to use addAll , why not .clear() and .addAll(other.data) here?

Also, there's a bug in there as it should at least be

Suggested change
this.data = Lists.newArrayList(data);
this.data = Lists.newArrayList(other.data);

Copy link
Member

Choose a reason for hiding this comment

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

like so?

this.monitorSize.set(other.monitorSize);
this.front = other.front;
this.mode = other.mode;
this.data = Lists.newArrayList(other.data);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question as above.

Copy link
Member

Choose a reason for hiding this comment

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

like so?

jdrueckert
jdrueckert previously approved these changes Aug 25, 2021
…yComponent.java

Co-authored-by: Tobias Nett <skaldarnar@googlemail.com>
@jdrueckert jdrueckert merged commit 82e1612 into develop Aug 25, 2021
@jdrueckert jdrueckert deleted the feature/migrate-ecs-to-gestalt branch August 25, 2021 16:39
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.

None yet

4 participants