Skip to content

refactor: Re-organize internal event imports#3742

Merged
spydon merged 1 commit intomainfrom
luan.events-organize
Oct 7, 2025
Merged

refactor: Re-organize internal event imports#3742
spydon merged 1 commit intomainfrom
luan.events-organize

Conversation

@luanpotter
Copy link
Copy Markdown
Member

@luanpotter luanpotter commented Oct 5, 2025

Description

Re-organize internal event files using the events.dart export.

This changes the imports on all files to use the exposed events.dart export - this will vastly help us to catch issues of forgetting to expose things. If anything is imported from src/, we know it is not exposed by Flame.

This should be absolutely no-op whatsoever - just organizational.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

@luanpotter luanpotter force-pushed the luan.events-organize branch from 743ccaf to cb06bb4 Compare October 5, 2025 18:25
@luanpotter luanpotter requested a review from a team October 5, 2025 19:11
Copy link
Copy Markdown
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

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

Hmm, events/messages isn't very clear, but events/events is confusing

@luanpotter
Copy link
Copy Markdown
Member Author

Yeah I thought it was less bad. But I really wanted to change the first folder, and reclaim the name input once we delete the old system. Though that will take forever, and be user facing. This folder is purely internal so we can play around with it.

@spydon spydon closed this Oct 6, 2025
@spydon spydon reopened this Oct 6, 2025
@luanpotter
Copy link
Copy Markdown
Member Author

I just do the import fix for now - we can discuss the directory structre in the doc.

@luanpotter luanpotter marked this pull request as draft October 6, 2025 16:50
@luanpotter luanpotter force-pushed the luan.events-organize branch from cb06bb4 to e2111a7 Compare October 6, 2025 22:58
@luanpotter luanpotter marked this pull request as ready for review October 6, 2025 22:58
@luanpotter luanpotter changed the title refactor: Re-organize internal event files into a events folder refactor: Re-organize internal event imports Oct 6, 2025
@luanpotter luanpotter requested a review from spydon October 6, 2025 23:02
@spydon spydon merged commit 7523e01 into main Oct 7, 2025
68 checks passed
@spydon spydon deleted the luan.events-organize branch October 7, 2025 04:57
nickf2k pushed a commit to nickf2k/flame that referenced this pull request Nov 16, 2025
Re-organize internal event files using the `events.dart` export.

This changes the imports on all files to use the exposed `events.dart`
export - this will vastly help us to catch issues of forgetting to
expose things. If anything is imported from `src/`, we know it is not
exposed by Flame.

This should be absolutely no-op whatsoever - just organizational.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants