Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

QBI query component filtering #264

Merged
merged 12 commits into from
Apr 7, 2020
Merged

QBI query component filtering #264

merged 12 commits into from
Apr 7, 2020

Conversation

paulbalaji
Copy link
Contributor

@paulbalaji paulbalaji commented Mar 31, 2020

Description

Add component filters to qbi queries

drive-by upgrade to latest entities package too

Tests

  • local dpl
  • cloud dpl

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 do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 40-149 lines, ignoring generated files. labels Mar 31, 2020
Paul Balaji added 4 commits April 1, 2020 18:24
Signed-off-by: Paul Balaji <paulbalaji@improbable.io>
Signed-off-by: Paul Balaji <paulbalaji@improbable.io>
Signed-off-by: Paul Balaji <paulbalaji@improbable.io>
@paulbalaji paulbalaji marked this pull request as ready for review April 3, 2020 14:24
@improbable-prow-robot improbable-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 3, 2020
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.

Thanks for doing the ECS upgrade as well :D

workers/unity/Assets/Fps/Scenes/FPS-Development.unity Outdated Show resolved Hide resolved
Signed-off-by: Paul Balaji <paulbalaji@improbable.io>
var clientRangeInterest = InterestQuery.Query(Constraint.RelativeCylinder(clientRadius)).FilterResults(new[]
{
Position.ComponentId, Metadata.ComponentId, OwningWorker.ComponentId,
ServerMovement.ComponentId, ClientRotation.ComponentId, HealthComponent.ComponentId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do players need other player's health?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, RagdollSpawner requires it

Comment on lines 98 to 108
var serverSelfInterest = InterestQuery.Query(Constraint.EntityId(entityId)).FilterResults(new[]
{
ClientMovement.ComponentId, ShootingComponent.ComponentId
});

var serverRangeInterest = InterestQuery.Query(Constraint.RelativeCylinder(serverRadius)).FilterResults(new[]
{
Position.ComponentId, Metadata.ComponentId, OwningWorker.ComponentId,
ServerMovement.ComponentId, ClientRotation.ComponentId, HealthComponent.ComponentId,
ShootingComponent.ComponentId
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm having a little trouble understanding why we chose these sets for the server interest, a comment could help? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, will add

@paulbalaji paulbalaji merged commit b1e0390 into develop Apr 7, 2020
@paulbalaji paulbalaji deleted the feature/qbi-results branch April 7, 2020 10:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/M Denotes a PR that changes 40-149 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants