Amerio.Stephane Posted July 10, 2020 Posted July 10, 2020 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.
alexander Posted July 15, 2020 Posted July 15, 2020 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
Recommended Posts