Jump to content

[2.12] IG Ready callback


photo

Recommended Posts

Posted

Hello,

I found out the IG Ready callback is actually called only once per session, and only by a SystemLogic class. Is this the intended behavior? (->documentation)

Am I right to assume that all WorldLogic::init() and update() will then be called  with a ready IG?

Thanks.

Posted

Hi Stephane,

IG Ready is the same as the Unigine::Plugins::Syncker::Master::SESSION_STARTED callback. It is called only once per session when all slaves are connected to the master and ready to receive messages.
It doesn't matter who actually is subscribed to this callback. It could be SystemLogic/WorldLogic/YourClass. WorldLogic::init()/update() might be called before the "IG Ready" callback. IG doesn't manage the World/SystemLogic classes.

Best regards,
Alexander

×
×
  • Create New...