Mercury Posted August 28, 2022 Share Posted August 28, 2022 I'm working on dynamic event subscription and have some questions about how events currently work. Why is CComponentManager::DynamicSubscriptionNonsync only useable for nonsync? Why are messages dispatched in order of entityId? Thank you. Link to comment Share on other sites More sharing options...
hyperion Posted August 28, 2022 Share Posted August 28, 2022 Using entityid as order is just one possibility, straight forward and easy to understand. Nothing inherent. Basically you have two types of events, those that have or might have side effects and those who don't (at least wrt simulation). The removal of a corpse for instance is a case of the latter. For events with side effects you must guarantee the same order of execution every single time, however you do it. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now