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

Enable/disable Replication by inserting/removing component #182

Open
connorcarpenter opened this issue May 30, 2023 · 1 comment
Open

Enable/disable Replication by inserting/removing component #182

connorcarpenter opened this issue May 30, 2023 · 1 comment

Comments

@connorcarpenter
Copy link
Member

Using the Bevy adapter crates, right now replication is enabled/disabled by calling commands.entity(entity).enable_replication(&mut client) or commands.entity(entity).disable_replication(&mut server) .. It may be more ergonomic to just insert a Marker Component in order to begin/end replication.

What should this Marker Component be called? Replication ? ShouldReplicate ? Needs some further thought. Please leave feedback if you have it!

@Veritius
Copy link
Contributor

I called it Replicated for my implementation I made in the meantime.

Also, to further elaborate on the reasoning for a marker component:

  • It's more aligned with the ECS architecture
  • You can put it in a Bundle

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

No branches or pull requests

2 participants