/// <summary> /// You should use do <see cref="DispatchAction.CastJob">, in order to make <see cref="JobDispatchAction"> which can be copied into a job. /// </summary> protected abstract JobHandle OnAction(DispatchAction da, JobHandle jobHandle);
/// <summary> /// Called immediately synchronously on dispatching action, but it will just queue the action to be /// converted to jobs on its turn to update. We have to be in the <see cref="JobComponentSystem">'s "pipeline" /// to ensure nice dependency chain. /// </summary> private void HandleAction(DispatchAction action) { //Collect jobs to put in dep chain when update arrives. queuedActions.Enqueue(new DispatchAction(action)); }