Home > Software engineering >  How turn-based combat logic synchronization
How turn-based combat logic synchronization

Time:09-19

My thread pool is directly submit tasks and single thread loop until the end of combat, the question now is whether the user to enter the operational problems difficult to synchronize, 30 seconds countdown is similar to the dream, how to let all players! Ask god to reassure

CodePudding user response:

The client or server? Client to initialize the default action first, 30 seconds after the upload operation, if the user didn't operations are uploaded is the default action,
Server to the client sends synchronization instructions, all the client start the countdown, do not?
  • Related