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 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

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

发表评论

登录添加评论。还不是成员?立即加入