Jump to content

Some questions about event dispatch


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...