Exemplo n.º 1
0
    public bool QueueWork(Work work)
    {
        for (int i = 0; i < workQueue.Count; i++)
        {
            if (!workQueue[i].isUnique(work))
            {
                work.InvalidWork();
                return false;
            }
        }
        if (work == null)
        {
            //DebugOutput.Shout("F**K WORK");

        }
        //DebugOutput.Shout("QueueWork");

        workQueue.Add(work);

        return true;
    }