Beispiel #1
0
        public PerformViewModel(uint key, ExcelSheet <Perform> sheet, GameData lumina)
            : base(key, sheet, lumina)
        {
            LuminaExtensions.GetModel(this.Value.ModelKey, true, out this.modelSet, out this.modelBase, out this.modelVariant);

            this.Mod = TexToolsService.GetMod(this);
        }
Beispiel #2
0
        public ItemViewModel(int key, ExcelSheet <Item> sheet, Lumina lumina)
            : base(key, sheet, lumina)
        {
            this.classJob = this.Value.ClassJobCategory.Value;

            LuminaExtensions.GetModel(this.Value.ModelMain, this.IsWeapon, out this.modelSet, out this.modelBase, out this.modelVariant);
            LuminaExtensions.GetModel(this.Value.ModelSub, this.IsWeapon, out this.subModelSet, out this.subModelBase, out this.subModelVariant);
        }
Beispiel #3
0
        private IItem GetItem(ItemSlots slot, uint baseVal, uint?equipVal)
        {
            if (equipVal != null && equipVal != 0 && equipVal != uint.MaxValue && equipVal != long.MaxValue)
            {
                return(LuminaExtensions.GetGearItem(slot, (uint)equipVal));
            }

            return(LuminaExtensions.GetGearItem(slot, baseVal));
        }
Beispiel #4
0
        private IItem GetItem(ItemSlots slot, uint baseVal, uint?equipVal)
        {
            if (equipVal != null)
            {
                return(LuminaExtensions.GetGearItem(slot, (uint)equipVal));
            }

            return(LuminaExtensions.GetGearItem(slot, baseVal));
        }
Beispiel #5
0
        public ItemViewModel(int key, ExcelSheet <Sheets.Item> sheet, GameData lumina)
            : base(key, sheet, lumina)
        {
            this.classJob = this.Value.ClassJobCategory !.Value;

            LuminaExtensions.GetModel(this.Value.ModelMain, this.IsWeapon, out this.modelSet, out this.modelBase, out this.modelVariant);
            LuminaExtensions.GetModel(this.Value.ModelSub, this.IsWeapon, out this.subModelSet, out this.subModelBase, out this.subModelVariant);

            this.Mod = TexToolsService.GetMod(this);
        }