void CheckAllProcessor() { for (int i = 0; i < mTaskTable.Length; i++) { if (mTaskTable[i] != null) { for (int j = mTaskTable[i].npcList.Count - 1; j >= 0; j--) { CSPersonnel csp = mTaskTable[i].npcList[j]; if (!csp.CanProcess && !csp.IsProcessing) { csp.StopWork(); } else if (csp.IsProcessing && csp.ShouldStopProcessing) { csp.StopWork(); } } } } }