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

refactor: Pointer System #2071

Merged
merged 24 commits into from
Nov 10, 2021
Merged

refactor: Pointer System #2071

merged 24 commits into from
Nov 10, 2021

Conversation

eonarheim
Copy link
Member

@eonarheim eonarheim commented Oct 29, 2021

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
    • v0.26.0 milestone ECS refactor
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

This is still work in progress, the goal is for this to be nearly 100% backwards compatible

  • Re-implement missing API surface
  • Remove old pointer system
  • Fix tests

Related #1161 Pointer Refactor

Changes:

  • Refactors pointer system into ECS style system
  • Pointer component allows for configuring
  • Will add the ability to use the collider and or the graphics as the target for pointer events

@eonarheim eonarheim added the work-in-progress A work in progress pull request, will not be merged until this is removed label Oct 29, 2021
@eonarheim eonarheim removed the work-in-progress A work in progress pull request, will not be merged until this is removed label Oct 30, 2021
@eonarheim eonarheim changed the title refactor: [WIP] Pointer System refactor refactor: Pointer System refactor Oct 30, 2021
@eonarheim
Copy link
Member Author

Before merge I want to add a story for the new configurations

@kamranayub kamranayub self-requested a review October 31, 2021 02:52
CHANGELOG.md Outdated Show resolved Hide resolved
src/engine/Engine.ts Outdated Show resolved Hide resolved
src/engine/Engine.ts Outdated Show resolved Hide resolved
src/engine/Engine.ts Outdated Show resolved Hide resolved
super.off(event, handler);
}

public update() {
Copy link
Member

Choose a reason for hiding this comment

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

in theory with an internal reference to engine, this could hook into through events right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure I'm following, can you expand?

Co-authored-by: Kamran Ayub <[email protected]>
src/engine/Scene.ts Outdated Show resolved Hide resolved
Copy link
Member

@kamranayub kamranayub left a comment

Choose a reason for hiding this comment

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

LGTM, just minor suggestions to fix jsdocs and remove potential future-confusing comments

@eonarheim eonarheim merged commit bc7986b into main Nov 10, 2021
@eonarheim eonarheim deleted the feature/pointer-refactor branch November 10, 2021 04:15
@eonarheim eonarheim changed the title refactor: Pointer System refactor refactor: Pointer System Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants