Exemplo n.º 1
0
    public bool IsExistNotClearDelivery(DELIVERY_CONDITION_TYPE[] conditionTypeList)
    {
        int i = 0;

        for (int count = delivery.Count; i < count; i++)
        {
            if (delivery[i].dId > 0)
            {
                DeliveryTable.DeliveryData deliveryTableData = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)delivery[i].dId);

                if (deliveryTableData != null && deliveryTableData.needs != null && deliveryTableData.needs.Length > 0)
                {
                    int j = 0;
                    for (int num = deliveryTableData.needs.Length; j < num; j++)
                    {
                        DeliveryTable.DeliveryData.NeedData needData = deliveryTableData.needs[j];
                        if (needData != null && conditionTypeList.Contains(needData.conditionType) && !IsClearDelivery(deliveryTableData.id))
                        {
                            return(true);
                        }
                    }
                }
            }
        }
        return(false);
    }
Exemplo n.º 2
0
    private void SetABingoChildrenData(CardData cardData, BingoData bingoData)
    {
        DeliveryTable.DeliveryData.NeedData[] needs = bingoData.deliveryData.needs;
        int i = 0;

        for (int num = needs.Length; i < num; i++)
        {
            DeliveryTable.DeliveryData.NeedData need = needs[i];
            if ((uint)need.needId != 0)
            {
                GridData gridData = cardData.gridDataList.FirstOrDefault((GridData grid) => grid.deliveryData.id == (uint)need.needId);
                if (gridData != null && gridData.deliveryData != null)
                {
                    bingoData.childrenGridList.Add(gridData);
                }
            }
        }
    }