コード例 #1
0
 /// <inheritdoc />
 public ItemQueryResponseInfo(ItemClassType classType, int subClassType, int soundOverrideSubclass, string[] itemNames, int displayId, ItemQuality quality, ItemFlags itemFlags, ItemFlags2 itemFlags2, int buyPrice, int sellPrice, int inventoryType, uint allowableClass, int allowableRace, int itemLevel, int requiredLevel, int requiredSkill, int requiredSkillRank, int requiredSpell, int requiredHonorRank, int requiredCityRank, int requiredReptuationFaction, int requiredReptuationRank, int maxCount, int maxStackable, int containerSlots, StatInfo[] statInfos, int scalingStatDistribution, int scalingStatValue, ItemDamageDefinition[] itemDamageMods, int[] resistances, int delay, int ammoType, float rangedModRange, ItemSpellInfo[] spellInfos, ItemBondingType bondingType, string itemDescription, int pageText, int languageId, int pageMaterial, int startQuest, int lockId, int material, int sheath, int randomProperty, int randomSuffix, int block, int itemSet, int maxdurability, int area, int map, BAG_FAMILY_MASK bagFamily, ItemSocketInfo socketInformation, int requiredDisenchantSkill, int armorDamageModifier, int duration, int itemLimitCategory, int holidayId)
 {
     ClassType             = classType;
     SubClassType          = subClassType;
     SoundOverrideSubclass = soundOverrideSubclass;
     ItemNames             = itemNames;
     DisplayId             = displayId;
     Quality                   = quality;
     ItemFlags                 = itemFlags;
     ItemFlags2                = itemFlags2;
     BuyPrice                  = buyPrice;
     SellPrice                 = sellPrice;
     InventoryType             = inventoryType;
     AllowableClass            = allowableClass;
     AllowableRace             = allowableRace;
     ItemLevel                 = itemLevel;
     RequiredLevel             = requiredLevel;
     RequiredSkill             = requiredSkill;
     RequiredSkillRank         = requiredSkillRank;
     RequiredSpell             = requiredSpell;
     RequiredHonorRank         = requiredHonorRank;
     RequiredCityRank          = requiredCityRank;
     RequiredReptuationFaction = requiredReptuationFaction;
     RequiredReptuationRank    = requiredReptuationRank;
     MaxCount                  = maxCount;
     MaxStackable              = maxStackable;
     ContainerSlots            = containerSlots;
     StatInfos                 = statInfos;
     ScalingStatDistribution   = scalingStatDistribution;
     ScalingStatValue          = scalingStatValue;
     ItemDamageMods            = itemDamageMods;
     Resistances               = resistances;
     Delay                   = delay;
     AmmoType                = ammoType;
     RangedModRange          = rangedModRange;
     SpellInfos              = spellInfos;
     BondingType             = bondingType;
     ItemDescription         = itemDescription;
     PageText                = pageText;
     LanguageId              = languageId;
     PageMaterial            = pageMaterial;
     StartQuest              = startQuest;
     LockID                  = lockId;
     Material                = material;
     Sheath                  = sheath;
     RandomProperty          = randomProperty;
     RandomSuffix            = randomSuffix;
     Block                   = block;
     ItemSet                 = itemSet;
     Maxdurability           = maxdurability;
     Area                    = area;
     Map                     = map;
     BagFamily               = bagFamily;
     SocketInformation       = socketInformation;
     RequiredDisenchantSkill = requiredDisenchantSkill;
     ArmorDamageModifier     = armorDamageModifier;
     Duration                = duration;
     ItemLimitCategory       = itemLimitCategory;
     HolidayId               = holidayId;
 }
コード例 #2
0
		/// <inheritdoc />
		public ItemQueryResponseInfo_Vanilla(ItemClassType classType, int subClassType, string[] itemNames, int displayId, ItemQuality quality, ItemFlags itemFlags, int buyPrice, int sellPrice, int inventoryType, uint allowableClass, int allowableRace, int itemLevel, int requiredLevel, int requiredSkill, int requiredSkillRank, int requiredSpell, int requiredHonorRank, int requiredCityRank, int requiredReptuationFaction, int requiredReptuationRank, int maxCount, int maxStackable, int containerSlots, StatInfo[] statInfos, ItemDamageDefinition[] itemDamageMods, int[] resistances, int delay, int ammoType, float rangedModRange, ItemSpellInfo[] spellInfos, ItemBondingType bondingType, string itemDescription, int pageText, int languageId, int pageMaterial, int startQuest, int lockId, int material, int sheath, int randomProperty, int block, int itemSet, int maxdurability, int area, int map, BAG_FAMILY_MASK bagFamily)
		{
			ClassType = classType;
			SubClassType = subClassType;
			ItemNames = itemNames;
			DisplayId = displayId;
			Quality = quality;
			ItemFlags = itemFlags;
			BuyPrice = buyPrice;
			SellPrice = sellPrice;
			InventoryType = inventoryType;
			AllowableClass = allowableClass;
			AllowableRace = allowableRace;
			ItemLevel = itemLevel;
			RequiredLevel = requiredLevel;
			RequiredSkill = requiredSkill;
			RequiredSkillRank = requiredSkillRank;
			RequiredSpell = requiredSpell;
			RequiredHonorRank = requiredHonorRank;
			RequiredCityRank = requiredCityRank;
			RequiredReptuationFaction = requiredReptuationFaction;
			RequiredReptuationRank = requiredReptuationRank;
			MaxCount = maxCount;
			MaxStackable = maxStackable;
			ContainerSlots = containerSlots;
			StatInfos = statInfos;
			ItemDamageMods = itemDamageMods;
			Resistances = resistances;
			Delay = delay;
			AmmoType = ammoType;
			RangedModRange = rangedModRange;
			SpellInfos = spellInfos;
			BondingType = bondingType;
			ItemDescription = itemDescription;
			PageText = pageText;
			LanguageId = languageId;
			PageMaterial = pageMaterial;
			StartQuest = startQuest;
			LockID = lockId;
			Material = material;
			Sheath = sheath;
			RandomProperty = randomProperty;
			Block = block;
			ItemSet = itemSet;
			Maxdurability = maxdurability;
			Area = area;
			Map = map;
			BagFamily = bagFamily;
		}
コード例 #3
0
        // Token: 0x0600213C RID: 8508 RVA: 0x000BEF6C File Offset: 0x000BD16C
        private void RenderGroupHeader(TextWriter writer, IGroupRange group)
        {
            if (group != null)
            {
                Utilities.RenderDirectionEnhancedValue(writer, Utilities.HtmlEncode(group.Header), base.UserContext.IsRtl);
                return;
            }
            ColumnId id = this.groupByColumn.Id;

            if (id <= ColumnId.ContactIcon)
            {
                if (id != ColumnId.MailIcon)
                {
                    switch (id)
                    {
                    case ColumnId.HasAttachment:
                    {
                        bool itemProperty = this.DataSource.GetItemProperty <bool>(ItemSchema.HasAttachment, false);
                        if (itemProperty)
                        {
                            writer.Write(this.GetHtmlEncodedLocalizeString(-67583501));
                            return;
                        }
                        writer.Write(this.GetHtmlEncodedLocalizeString(549410256));
                        return;
                    }

                    case ColumnId.Importance:
                    {
                        Importance importance    = Importance.Normal;
                        object     itemProperty2 = this.DataSource.GetItemProperty <object>(ItemSchema.Importance);
                        if (itemProperty2 is Importance || itemProperty2 is int)
                        {
                            importance = (Importance)itemProperty2;
                        }
                        switch (importance)
                        {
                        case Importance.Low:
                            writer.Write(this.GetHtmlEncodedLocalizeString(-1013519457));
                            return;

                        case Importance.High:
                            writer.Write(this.GetHtmlEncodedLocalizeString(-1275094763));
                            return;
                        }
                        writer.Write(this.GetHtmlEncodedLocalizeString(1896035036));
                        return;
                    }

                    default:
                        if (id != ColumnId.ContactIcon)
                        {
                            goto IL_2C1;
                        }
                        break;
                    }
                }
            }
            else if (id <= ColumnId.ConversationIcon)
            {
                if (id != ColumnId.TaskIcon)
                {
                    if (id != ColumnId.ConversationIcon)
                    {
                        goto IL_2C1;
                    }
                    string itemProperty3 = this.DataSource.GetItemProperty <string>(ConversationItemSchema.ConversationMessageClasses);
                    Utilities.RenderDirectionEnhancedValue(writer, Utilities.HtmlEncode(ItemClassType.GetDisplayString(itemProperty3)), base.UserContext.IsRtl);
                    return;
                }
            }
            else
            {
                switch (id)
                {
                case ColumnId.ConversationHasAttachment:
                {
                    bool itemProperty4 = this.DataSource.GetItemProperty <bool>(ConversationItemSchema.ConversationHasAttach, false);
                    if (itemProperty4)
                    {
                        writer.Write(this.GetHtmlEncodedLocalizeString(-67583501));
                        return;
                    }
                    writer.Write(this.GetHtmlEncodedLocalizeString(549410256));
                    return;
                }

                case ColumnId.ConversationSenderList:
                    goto IL_2C1;

                case ColumnId.ConversationImportance:
                {
                    Importance importance2   = Importance.Normal;
                    object     itemProperty5 = this.DataSource.GetItemProperty <object>(ConversationItemSchema.ConversationImportance);
                    if (itemProperty5 is Importance || itemProperty5 is int)
                    {
                        importance2 = (Importance)itemProperty5;
                    }
                    switch (importance2)
                    {
                    case Importance.Low:
                        writer.Write(this.GetHtmlEncodedLocalizeString(-1013519457));
                        return;

                    case Importance.High:
                        writer.Write(this.GetHtmlEncodedLocalizeString(-1275094763));
                        return;
                    }
                    writer.Write(this.GetHtmlEncodedLocalizeString(1896035036));
                    return;
                }

                default:
                    if (id != ColumnId.ConversationFlagStatus)
                    {
                        goto IL_2C1;
                    }
                    switch (this.DataSource.GetItemProperty <int>(ConversationItemSchema.ConversationFlagStatus, 0))
                    {
                    case 1:
                        writer.Write(this.GetHtmlEncodedLocalizeString(-1576429907));
                        return;

                    case 2:
                        writer.Write(this.GetHtmlEncodedLocalizeString(-568934371));
                        return;

                    default:
                        writer.Write(this.GetHtmlEncodedLocalizeString(-41558891));
                        return;
                    }
                    break;
                }
            }
            string itemProperty6 = this.DataSource.GetItemProperty <string>(StoreObjectSchema.ItemClass);

            Utilities.RenderDirectionEnhancedValue(writer, Utilities.HtmlEncode(ItemClassType.GetDisplayString(itemProperty6)), base.UserContext.IsRtl);
            return;

IL_2C1:
            object itemProperty7 = this.DataSource.GetItemProperty <object>(this.groupByColumn[0]);
            string text = itemProperty7 as string;

            if (itemProperty7 == null || itemProperty7 is PropertyError || (text != null && text.Length == 0))
            {
                writer.Write(this.GetHtmlEncodedLocalizeString(-1001801028));
                return;
            }
            base.RenderColumn(writer, this.groupByColumn.Id);
        }
コード例 #4
0
        // Token: 0x06001F53 RID: 8019 RVA: 0x000B4688 File Offset: 0x000B2888
        private bool RenderConversationIcon(TextWriter writer)
        {
            this.DataSource.GetItemProperty <int>(ConversationItemSchema.ConversationMessageCount, 0);
            int  itemProperty  = this.DataSource.GetItemProperty <int>(ConversationItemSchema.ConversationUnreadMessageCount, 0);
            bool itemProperty2 = this.DataSource.GetItemProperty <bool>(ConversationItemSchema.ConversationHasIrm, false);

            string[] array = null;
            if (base.SortedColumn.Id == ColumnId.ConversationIcon)
            {
                string itemProperty3 = this.DataSource.GetItemProperty <string>(ConversationItemSchema.ConversationMessageClasses, null);
                if (!string.IsNullOrEmpty(itemProperty3))
                {
                    array = new string[]
                    {
                        itemProperty3
                    };
                }
            }
            else
            {
                array = this.DataSource.GetItemProperty <string[]>(ConversationItemSchema.ConversationMessageClasses, null);
            }
            int itemProperty4 = this.DataSource.GetItemProperty <int>(ConversationItemSchema.ConversationReplyForwardState, -1);

            if (this.currentRowGlobalCount == 1)
            {
                string itemClass = "IPM.Note";
                if (array != null && array.Length >= 1)
                {
                    itemClass = array[0];
                }
                ListViewContentsRenderingUtilities.RenderMessageIcon(writer, base.UserContext, itemClass, itemProperty != 1, false, itemProperty4, itemProperty2);
                return(true);
            }
            ThemeFileId themeFileId = itemProperty2 ? ThemeFileId.IrmConversationIconRead : ThemeFileId.ConversationIconRead;
            bool        flag        = false;

            if (array != null)
            {
                int num = 0;
                while (num < array.Length && ItemClassType.IsMeetingType(array[num]))
                {
                    num++;
                }
                if (num >= array.Length)
                {
                    flag = true;
                }
            }
            bool flag2 = false;

            if (array != null)
            {
                int num2 = 0;
                while (num2 < array.Length && ItemClassType.IsSmsType(array[num2]))
                {
                    num2++;
                }
                if (num2 >= array.Length)
                {
                    flag2 = true;
                }
            }
            if (flag)
            {
                themeFileId = ThemeFileId.ConversationIconMeeting;
            }
            else if (flag2)
            {
                if (itemProperty4 == 261)
                {
                    themeFileId = ThemeFileId.ConversationIconSmsReply;
                }
                else if (itemProperty4 == 262)
                {
                    themeFileId = ThemeFileId.ConversationIconSmsForward;
                }
                else
                {
                    themeFileId = ThemeFileId.ConversationIconSmsReadAndUnread;
                }
            }
            else if (itemProperty4 == 261)
            {
                themeFileId = (itemProperty2 ? ThemeFileId.IrmConversationIconReply : ThemeFileId.ConversationIconReply);
            }
            else if (itemProperty4 == 262)
            {
                themeFileId = (itemProperty2 ? ThemeFileId.IrmConversationIconForward : ThemeFileId.ConversationIconForward);
            }
            else if (itemProperty > 0)
            {
                themeFileId = (itemProperty2 ? ThemeFileId.IrmConversationIconUnread : ThemeFileId.ConversationIconUnread);
            }
            return(ListViewContentsRenderingUtilities.RenderItemIcon(writer, base.UserContext, themeFileId));
        }
コード例 #5
0
        // 239      3.3.0

        /// <inheritdoc />
        public SpellEntry(int spellId, uint category, uint dispel, SpellMechanic mechanic, SpellAtribute attributes, SpellAtributeEx attributesEx, SpellAtributeEx2 attributesEx2, SpellAtributeEx3 attributesEx3, SpellAtributeEx4 attributesEx4, SpellAtributeEx5 attributesEx5, SpellAtributeEx6 attributesEx6, SpellAtributeEx7 attributesEx7, ulong stances, ulong stancesNot, uint targets, CreatureTypeMask targetCreatureType, uint requiresSpellFocus, uint facingCasterFlags, AuraState casterAuraState, AuraState targetAuraState, AuraState casterAuraStateNot, AuraState targetAuraStateNot, uint casterAuraSpell, uint targetAuraSpell, uint excludeCasterAuraSpell, uint excludeTargetAuraSpell, uint castingTimeIndex, uint recoveryTime, uint categoryRecoveryTime, SpellInteruptFlags interruptFlags, SpellAuraInterruptFlags auraInterruptFlags, SpellChannelInterruptFlags channelInterruptFlags, ProcFlags procFlags, uint procChance, uint procCharges, uint maxLevel, uint baseLevel, uint spellLevel, uint durationIndex, SpellCostPower powerType, uint manaCost, uint manaCostPerlevel, uint manaPerSecond, uint manaPerSecondPerLevel, uint rangeIndex, float speed, uint modalNextSpell, uint stackAmount, RequiredReagentData reagentsRequired, ItemClassType equippedItemClass, int equippedItemSubClassMask, InventoryTypeMask equippedItemInventoryTypeMask, SpellEffectData spellEffectInformation, SpellVisualData spellVisual, uint spellIconId, uint activeIconId, uint spellPriority, LocalizedStringDBC <TStringType> spellName, LocalizedStringDBC <TStringType> rank, LocalizedStringDBC <TStringType> description, LocalizedStringDBC <TStringType> toolTip, uint manaCostPercentage, uint startRecoveryCategory, uint startRecoveryTime, uint maxTargetLevel, SpellFamilyName spellFamilyName, Flags96 <uint> spellFamilyFlags, uint maxAffectedTargets, SpellDamageClassType dmgClass, SpellPreventionType preventionType, uint stanceBarOrder, SpellEffectDataChunk <float> dmgMultiplier, uint minFactionId, uint minReputation, uint requiredAuraVision, SpellTotemDataChunk <uint> totemCategory, int areaGroupId, SpellSchoolMask schoolMask, uint runeCostId, uint spellMissileId, uint powerDisplayId, SpellEffectDataChunk <float> damageCoeficient, uint spellDescriptionVariableId, uint spellDifficultyId)
        {
            SpellId                = spellId;
            Category               = category;
            Dispel                 = dispel;
            Mechanic               = mechanic;
            Attributes             = attributes;
            AttributesEx           = attributesEx;
            AttributesEx2          = attributesEx2;
            AttributesEx3          = attributesEx3;
            AttributesEx4          = attributesEx4;
            AttributesEx5          = attributesEx5;
            AttributesEx6          = attributesEx6;
            AttributesEx7          = attributesEx7;
            Stances                = stances;
            StancesNot             = stancesNot;
            Targets                = targets;
            TargetCreatureType     = targetCreatureType;
            RequiresSpellFocus     = requiresSpellFocus;
            FacingCasterFlags      = facingCasterFlags;
            CasterAuraState        = casterAuraState;
            TargetAuraState        = targetAuraState;
            CasterAuraStateNot     = casterAuraStateNot;
            TargetAuraStateNot     = targetAuraStateNot;
            CasterAuraSpell        = casterAuraSpell;
            TargetAuraSpell        = targetAuraSpell;
            ExcludeCasterAuraSpell = excludeCasterAuraSpell;
            ExcludeTargetAuraSpell = excludeTargetAuraSpell;
            CastingTimeIndex       = castingTimeIndex;
            RecoveryTime           = recoveryTime;
            CategoryRecoveryTime   = categoryRecoveryTime;
            InterruptFlags         = interruptFlags;
            AuraInterruptFlags     = auraInterruptFlags;
            ChannelInterruptFlags  = channelInterruptFlags;
            ProcFlags              = procFlags;
            ProcChance             = procChance;
            ProcCharges            = procCharges;
            MaxLevel               = maxLevel;
            BaseLevel              = baseLevel;
            SpellLevel             = spellLevel;
            DurationIndex          = durationIndex;
            PowerType              = powerType;
            ManaCost               = manaCost;
            ManaCostPerlevel       = manaCostPerlevel;
            ManaPerSecond          = manaPerSecond;
            ManaPerSecondPerLevel  = manaPerSecondPerLevel;
            RangeIndex             = rangeIndex;
            Speed                         = speed;
            ModalNextSpell                = modalNextSpell;
            StackAmount                   = stackAmount;
            ReagentsRequired              = reagentsRequired;
            EquippedItemClass             = equippedItemClass;
            EquippedItemSubClassMask      = equippedItemSubClassMask;
            EquippedItemInventoryTypeMask = equippedItemInventoryTypeMask;
            SpellEffectInformation        = spellEffectInformation;
            SpellVisual                   = spellVisual;
            SpellIconID                   = spellIconId;
            ActiveIconID                  = activeIconId;
            SpellPriority                 = spellPriority;
            SpellName                     = spellName;
            Rank                       = rank;
            Description                = description;
            ToolTip                    = toolTip;
            ManaCostPercentage         = manaCostPercentage;
            StartRecoveryCategory      = startRecoveryCategory;
            StartRecoveryTime          = startRecoveryTime;
            MaxTargetLevel             = maxTargetLevel;
            SpellFamilyName            = spellFamilyName;
            SpellFamilyFlags           = spellFamilyFlags;
            MaxAffectedTargets         = maxAffectedTargets;
            DmgClass                   = dmgClass;
            PreventionType             = preventionType;
            StanceBarOrder             = stanceBarOrder;
            DmgMultiplier              = dmgMultiplier;
            MinFactionId               = minFactionId;
            MinReputation              = minReputation;
            RequiredAuraVision         = requiredAuraVision;
            TotemCategory              = totemCategory;
            AreaGroupId                = areaGroupId;
            SchoolMask                 = schoolMask;
            RuneCostID                 = runeCostId;
            SpellMissileID             = spellMissileId;
            PowerDisplayId             = powerDisplayId;
            DamageCoeficient           = damageCoeficient;
            SpellDescriptionVariableID = spellDescriptionVariableId;
            SpellDifficultyId          = spellDifficultyId;
        }