protected override bool IsVisibleDelivery(Delivery delivery, DeliveryTable.DeliveryData tableData)
 {
     if (eventData == null)
     {
         return(false);
     }
     if (tableData.IsEvent() && tableData.eventID == eventData.eventId)
     {
         return(true);
     }
     return(false);
 }
    private void AddDataCompleted(CardData cardData)
    {
        List <ClearStatusDelivery> clearStatusDelivery = MonoBehaviourSingleton <DeliveryManager> .I.clearStatusDelivery;
        int i = 0;

        for (int count = clearStatusDelivery.Count; i < count; i++)
        {
            ClearStatusDelivery        clearStatusDelivery2 = clearStatusDelivery[i];
            DeliveryTable.DeliveryData deliveryTableData    = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)clearStatusDelivery2.deliveryId);

            if (deliveryTableData == null)
            {
                Log.Warning("DeliveryTable Not Found : dId " + clearStatusDelivery2.deliveryId);
            }
            else if (deliveryTableData.IsEvent() && deliveryTableData.eventID == cardData.eventData.eventId && clearStatusDelivery2.deliveryStatus == 3)
            {
                AddMissionData(deliveryTableData, null, cardData, true);
            }
        }
    }
    private void AddDataNotCompleted(CardData cardData)
    {
        Delivery[] deliveryList = MonoBehaviourSingleton <DeliveryManager> .I.GetDeliveryList(false);

        int i = 0;

        for (int num = deliveryList.Length; i < num; i++)
        {
            Delivery delivery = deliveryList[i];
            DeliveryTable.DeliveryData deliveryTableData = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)delivery.dId);

            if (deliveryTableData == null)
            {
                Log.Warning("DeliveryTable Not Found : dId " + delivery.dId);
            }
            else if (deliveryTableData.IsEvent() && deliveryTableData.eventID == cardData.eventData.eventId)
            {
                AddMissionData(deliveryTableData, delivery, cardData, false);
            }
        }
    }
Beispiel #4
0
    public void CheckAnnounceHomeReturn(int delivery_id)
    {
        //IL_006c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0071: Expected O, but got Unknown
        if (m_compDeliveryId == 0)
        {
            DeliveryTable.DeliveryData deliveryTableData = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)delivery_id);

            if (deliveryTableData.IsClearDialogInGame() && !IsDeliveryExplore(deliveryTableData) && !IsDeliveryRush(deliveryTableData))
            {
                if (m_coroutine != null)
                {
                    this.StopCoroutine(m_coroutine);
                }
                if (deliveryTableData.IsEvent())
                {
                    m_compDeliveryId = delivery_id;
                }
                m_coroutine = this.StartCoroutine(CheckRequestHomeReturn());
            }
        }
    }
Beispiel #5
0
    protected override void GetDeliveryList()
    {
        deliveryInfo = MonoBehaviourSingleton <DeliveryManager> .I.GetDeliveryList(true);

        int             groupId  = regionData.groupId;
        uint            regionId = regionData.regionId;
        List <Delivery> list     = new List <Delivery>();
        int             i        = 0;

        for (int num = deliveryInfo.Length; i < num; i++)
        {
            Delivery delivery = deliveryInfo[i];
            DeliveryTable.DeliveryData deliveryTableData = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)delivery.dId);

            if (deliveryTableData == null)
            {
                Log.Warning("DeliveryTable Not Found : dId " + delivery.dId);
            }
            else if (!deliveryTableData.IsEvent())
            {
                NPCTable.NPCData nPCData = Singleton <NPCTable> .I.GetNPCData((int)deliveryTableData.npcID);

                if (nPCData == null)
                {
                    Log.Error("DeliveryTable NPC ID Found  : dId " + delivery.dId + " : npcID " + deliveryTableData.npcID);
                }
                else if (deliveryTableData.regionId == regionId)
                {
                    list.Add(delivery);
                }
                else if (groupId > 0 && deliveryTableData.regionId == groupId)
                {
                    list.Add(delivery);
                }
            }
        }
        deliveryInfo = list.ToArray();
    }
 protected virtual bool IsVisibleDelivery(Delivery delivery, DeliveryTable.DeliveryData tableData)
 {
     return(!tableData.IsEvent());
 }