bevy_replicon icon indicating copy to clipboard operation
bevy_replicon copied to clipboard

Allow out-of-order event registration

Open UkoeHB opened this issue 1 year ago • 3 comments

We can do this by storing registered events in a sorted list of typeids, then assigning channel ids based on index.

UkoeHB avatar Jan 19 '24 02:01 UkoeHB

Agree, but shouldn't use TypeId since it's not stable across binaries. Relevant issue in Bevy. But it looks like we can just use type names.

Shatur avatar Jan 19 '24 17:01 Shatur

It looks like type_name is also not stable.

UkoeHB avatar Jan 19 '24 18:01 UkoeHB

Hm... Yes, I missed it. That just what @cart suggested in https://github.com/bevyengine/bevy/issues/32#issuecomment-673784868. Then I'm not sure how to solve it properly.

Shatur avatar Jan 19 '24 18:01 Shatur