Esempio n. 1
0
    // Token: 0x06001408 RID: 5128 RVA: 0x00073EBC File Offset: 0x000720BC
    public List <IUnityItem> GetShopItems(UberstrikeItemType itemType, BuyingMarketType marketType)
    {
        List <IUnityItem> allShopItems = this.GetAllShopItems();

        allShopItems.RemoveAll((IUnityItem item) => item.View.ItemType != itemType);
        return(allShopItems);
    }
Esempio n. 2
0
    // Token: 0x06001881 RID: 6273 RVA: 0x00083830 File Offset: 0x00081A30
    public bool CanGoInSlot(global::LoadoutSlotType slot, UberstrikeItemType type)
    {
        switch (type)
        {
        case UberstrikeItemType.Weapon:
            return(slot >= global::LoadoutSlotType.WeaponMelee && slot <= global::LoadoutSlotType.WeaponTertiary);

        case UberstrikeItemType.Gear:
            return(slot >= global::LoadoutSlotType.GearHead && slot <= global::LoadoutSlotType.GearHolo);

        case UberstrikeItemType.QuickUse:
            return(slot >= global::LoadoutSlotType.QuickUseItem1 && slot <= global::LoadoutSlotType.QuickUseItem3);

        case UberstrikeItemType.Functional:
            return(slot >= global::LoadoutSlotType.FunctionalItem1 && slot <= global::LoadoutSlotType.FunctionalItem3);
        }
        Debug.LogError("Item attempted to be equipped into a slot that isn't supported.");
        return(false);
    }
Esempio n. 3
0
 // Token: 0x06000867 RID: 2151 RVA: 0x000073A0 File Offset: 0x000055A0
 public RefreshCurrentItemList(UberstrikeItemClass itemClass, UberstrikeItemType itemType)
 {
     this.UseCurrentSelection = false;
     this.ItemClass           = itemClass;
     this.ItemType            = itemType;
 }
Esempio n. 4
0
        // Token: 0x060011BE RID: 4542 RVA: 0x0001D2E0 File Offset: 0x0001B4E0
        public static Coroutine BuyPack(int itemId, string authToken, PackType packType, UberStrikeCurrencyType currencyType, UberstrikeItemType itemType, BuyingLocationType marketLocation, BuyingRecommendationType recommendationType, Action <int> callback, Action <Exception> handler)
        {
            Coroutine result;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, itemId);
                StringProxy.Serialize(memoryStream, authToken);
                EnumProxy <PackType> .Serialize(memoryStream, packType);

                EnumProxy <UberStrikeCurrencyType> .Serialize(memoryStream, currencyType);

                EnumProxy <UberstrikeItemType> .Serialize(memoryStream, itemType);

                EnumProxy <BuyingLocationType> .Serialize(memoryStream, marketLocation);

                EnumProxy <BuyingRecommendationType> .Serialize(memoryStream, recommendationType);

                result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "BuyPack", memoryStream.ToArray(), delegate(byte[] data)
                {
                    if (callback != null)
                    {
                        callback(Int32Proxy.Deserialize(new MemoryStream(data)));
                    }
                }, handler));
            }
            return(result);
        }
 // Token: 0x06000E29 RID: 3625 RVA: 0x0000A53B File Offset: 0x0000873B
 public ItemByClassFilter(UberstrikeItemType itemType, UberstrikeItemClass itemClass)
 {
     this._itemType  = itemType;
     this._itemClass = itemClass;
 }
 // Token: 0x06000E27 RID: 3623 RVA: 0x0000A517 File Offset: 0x00008717
 public ItemByTypeFilter(UberstrikeItemType itemType)
 {
     this._itemType = itemType;
 }