Beispiel #1
0
 private void FindFirstPhaseAndModify(ref WorkerPhase workerPhase, Type phaseId, WorkerPhaseModifierDelegate callback)
 {
     if (workerPhase.IsPhase(phaseId))
     {
         callback(ref workerPhase);
     }
     else
     {
         workerPhase.FindFirstPhaseAndModify(phaseId, callback);
     }
 }
Beispiel #2
0
        internal WorkerCycleCore()
        {
            //Logic Phase
            logicRoot = new WorkerPhase(RootPhaseId.Default, "Logic Root Phase");

            List <WorkerPhase> phases = new List <WorkerPhase>()
            {
                new WorkerPhase(MainPhases.EarlyPhaseId.Default, "Early Phase"),
                new WorkerPhase(MainPhases.DefaultPhaseId.Default, "Default Phase"),
                new WorkerPhase(MainPhases.LatePhaseId.Default, "Late Phase"),
            };

            logicRoot.SetPhases(phases.ToArray());

            //Render Phase
            renderRoot = new WorkerPhase(RootPhaseId.Default, "Render Root Phase");
        }