1. First player joins the level.
2. First player sees that he's alone, figures out all he needs to generate the level. Instead of generating it, he sends an RFC call with am "AllSaved" target.
3. The player gets the RFC sent in step 2, sets TNManager.isActive to 'false' and proceeds to generate the level.
4. Once the level has been generated, TNManager.isActive = true, and continue processing messages as normal.
1. Second player joins the level.
2. Second player sees that he's not alone and does nothing for step 2.
3. The player gets the RFC sent in step 2, sets TNManager.isActive to 'false' and proceeds to generate the level.
4. Once the level has been generated, TNManager.isActive = true, and continue processing messages as normal.
Note how steps 3 and 4 are the same, and that the level creation RFC was sent first? It means it will be received first. If you then need to make corrections to the level, send them via a separate RFC call with a different function name and/or ID.