예제 #1
0
    public static WaitingForDelStruct createStruct()
    {
        var temp = new WaitingForDelStruct();

        temp._uniqueId = s_waitForDelUniqueIdx;
        s_waitForDelUniqueIdx++;
        return(temp);
    }
예제 #2
0
    public void addWaitingForDelStruct(WaitingForDelStruct wait)
    {
        bool find = false;

        for (int i = _arrNeedDelList.Count - 1; i >= 0; i--)
        {
            if (wait._uniqueId == _arrNeedDelList[i]._uniqueId)
            {
                Debug.Break();
            }
        }

        _arrNeedDelList.Add(wait);
    }
예제 #3
0
    public WaitingForDelStruct getWaitingStructById(int id)
    {
        int count   = _arrNeedDelList.Count;
        int findnum = 0;
        WaitingForDelStruct temp = null;

        for (int i = 0; i < count; i++)
        {
            if (id == _arrNeedDelList[i]._uniqueId)
            {
                temp = _arrNeedDelList[i];
                findnum++;
                if (findnum >= 2)
                {
                    Debug.Break();
                }
            }
        }

        return(temp);
    }