private bool onPurchaseComplete(IglooServiceEvents.DecorationUpdated evt)
        {
            Service.Get <EventDispatcher>().RemoveListener <IglooServiceEvents.DecorationUpdated>(onPurchaseComplete);
            setState(ConfirmationState.Complete);
            hidePurchaseModal();
            PersistentBreadcrumbTypeDefinitionKey type          = null;
            StaticBreadcrumbDefinitionKey         breadcrumbKey = null;
            string id = "";

            if (evt.DecorationId.type == DecorationType.Decoration)
            {
                type          = decorationTypeBreadcrumb;
                id            = evt.DecorationId.definitionId.ToString();
                breadcrumbKey = decorationBreadcrumb;
            }
            else if (evt.DecorationId.type == DecorationType.Structure)
            {
                type          = structureTypeBreadcrumb;
                id            = evt.DecorationId.definitionId.ToString();
                breadcrumbKey = structureBreadcrumb;
            }
            if (notificationBreadcrumbController.GetPersistentBreadcrumbCount(type, id) == 0)
            {
                notificationBreadcrumbController.AddPersistentBreadcrumb(type, id);
            }
            notificationBreadcrumbController.AddBreadcrumb(breadcrumbKey);
            return(false);
        }
Ejemplo n.º 2
0
 public void Init(StaticBreadcrumbDefinitionKey friendAddedBreadcrumb, StaticBreadcrumbDefinitionKey friendRequestBreadcrumb)
 {
     this.friendAddedBreadcrumb   = friendAddedBreadcrumb;
     this.friendRequestBreadcrumb = friendRequestBreadcrumb;
 }
Ejemplo n.º 3
0
 public InventoryController(StaticBreadcrumbDefinitionKey breadcrumb)
 {
     this.breadcrumb = breadcrumb;
 }
Ejemplo n.º 4
0
 private void addBreadCrumbsForReward <TItemDefinition, URewardable, VIdType>(Reward reward, PersistentBreadcrumbTypeDefinitionKey singleBreadcrumbId, StaticBreadcrumbDefinitionKey groupBreadcrumbId) where TItemDefinition : IMemberLocked where URewardable : AbstractListReward <VIdType>
 {
     if (reward.TryGetValue(out URewardable rewardable) && !rewardable.IsEmpty())
     {
         bool           flag = false;
         List <VIdType> list = (List <VIdType>)rewardable.Reward;
         foreach (VIdType item in list)
         {
             if (dataEntityCollection.IsLocalPlayerMember() || !RewardUtils.IsMemberLockableItemMemberOnly <TItemDefinition, VIdType>(item))
             {
                 notificationBreadcrumbController.AddPersistentBreadcrumb(singleBreadcrumbId, item.ToString());
                 flag = true;
             }
         }
         if (flag)
         {
             notificationBreadcrumbController.AddBreadcrumb(groupBreadcrumbId);
         }
     }
 }