Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Allow multi-frame entity checkout for GameObject creation #1330

Merged
merged 8 commits into from
Mar 23, 2020

Conversation

paulbalaji
Copy link
Contributor

@paulbalaji paulbalaji commented Mar 23, 2020

Description

We now perform gameobject creation on entities that match the minimum component set required by the creator, instead of any entity that is newly added.

This means we no longer care if the components are added to an entity in one frame or multiple.

Updated MockWorld to let people provide constructor arguments for system creation.

Tests

  • added couple tests for single-frame and multi-frame gameobject creation
  • drive-by pass of tests that failed initially

Documentation

  • changelog

Primary reviewers

If your change will take a long time to review, you can name at most two primary reviewers who are ultimately responsible for reviewing this request. @ mention them.

@improbable-prow-robot improbable-prow-robot added jira/no-ticket Indicates a PR has no corresponding JIRA ticket A: game-object-creation Area: Gameobject creation feature module labels Mar 23, 2020
@improbable-prow-robot improbable-prow-robot added the size/XL Denotes a PR that changes 300-599 lines, ignoring generated files. label Mar 23, 2020
Paul Balaji added 4 commits March 23, 2020 12:35
Signed-off-by: Paul Balaji <[email protected]>
Signed-off-by: Paul Balaji <[email protected]>
s
Signed-off-by: Paul Balaji <[email protected]>
Copy link
Contributor

@zeroZshadow zeroZshadow left a comment

Choose a reason for hiding this comment

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

Last question that just popped in my head. What happens if MinimumComponentTypes is null?

@paulbalaji
Copy link
Contributor Author

paulbalaji commented Mar 23, 2020

Last question that just popped in my head. What happens if MinimumComponentTypes is null?

if it's null, we don't concat it with the minimumComponentSet already in the initialization system. the minimum set of components is then just SpatialEntityId

@paulbalaji paulbalaji force-pushed the feature/better-gameobject-initialization branch from 6ff5db1 to a62b9c2 Compare March 23, 2020 13:05
@paulbalaji
Copy link
Contributor Author

Added changelog and short upgrade guide, please TAL

UPGRADE_GUIDE.md Outdated Show resolved Hide resolved
UPGRADE_GUIDE.md Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: game-object-creation Area: Gameobject creation feature module jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/XL Denotes a PR that changes 300-599 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants