You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, processAction is a synchronous function. This means that when the action of a player arrives.
Client-side, it may be useful to allow for an asynchronous processAction. This could be used to trigger animations during the processing of an action. In code, this would translate into:
This is useful because sometimes you may want to maintain the state of the game to an intermediary state, between the processing of actions.
This would have a lot of impact on the architecture of Ravens, as all the code was done synchronously. There are also some questions that should be answered, like what to do when an action arrives from the server while processAction is waiting for a promise.
The text was updated successfully, but these errors were encountered:
At the moment,
processAction
is a synchronous function. This means that when the action of a player arrives.Client-side, it may be useful to allow for an asynchronous
processAction
. This could be used to trigger animations during the processing of an action. In code, this would translate into:This is useful because sometimes you may want to maintain the state of the game to an intermediary state, between the processing of actions.
This would have a lot of impact on the architecture of Ravens, as all the code was done synchronously. There are also some questions that should be answered, like what to do when an action arrives from the server while
processAction
is waiting for a promise.The text was updated successfully, but these errors were encountered: