Systems interconnection

Systems interconnection

Hello again, Smoke authors and community developers!

This time we're curious to find some good way to let Systems communicate before they're initialized.
Suppose, we have SystemGraphics initialized and created a window at some rectangle.
SystemInput is not initalized yet, but it already needs to know the created window's rectangle.
Thus we just can't use Interface::CSubject::PostChanges() yet.

So what is a good way to post some initialized data when the data is avaiable to an initialized system, but the receiving system is not initialized yet?

Thanks!

http://vigroup.ru/
2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting - Koichi Senada
Hello again, Smoke authors and community developers!

This time we're curious to find some good way to let Systems communicate before they're initialized.
Suppose, we have SystemGraphics initialized and created a window at some rectangle.
SystemInput is not initalized yet, but it already needs to know the created window's rectangle.
Thus we just can't use Interface::CSubject::PostChanges() yet.

So what is a good way to post some initialized data when the data is avaiable to an initialized system, but the receiving system is not initialized yet?

Thanks!

Check out GlobalSceneStatusChanged in Scene.cpp of SystemPhysicsCollisionHavok. You can use this GlobalSceneStatus to determine the current initialization state. If you want two systems to communicate directly without using PostChanges, you will need to look at the ServiceManager (FrameworkServiceManager.cpp).

Hope that help!
- Orion

Leave a Comment

Please sign in to add a comment. Not a member? Join today