private void ReadItem(JsonReader reader, IXivSheet<Item> allItems)
            {
                if (!reader.Read()) throw new InvalidOperationException();

                var key = Convert.ToInt32(reader.Value);
                this.Item = allItems[key];
            }
            private void ReadRequiredQuest(JsonReader reader, IXivSheet<Quest> allQuests)
            {
                if (!reader.Read()) throw new InvalidOperationException();

                var key = Convert.ToInt32(reader.Value);
                this.RequiredQuest = allQuests[key];
            }
        public GrandCompanySealShopItem(IXivSheet sheet, IRelationalRow sourceRow)
            : base(sheet, sourceRow)
        {
            GCShop = Sheet.Collection.GetSheet<GCShop>().FirstOrDefault(_ => _.Min <= Key && _.Max >= Key);

            if (GCShop == null) return;

            var sealItem = GCShop.GrandCompany.SealItem;
            Cost = new ShopListingItem(this, sealItem, AsInt32("Cost"), false);
        }
Exemplo n.º 4
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="WeatherRate" /> class.
        /// </summary>
        /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
        /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
        public WeatherRate(IXivSheet sheet, IRelationalRow sourceRow)
            : base(sheet, sourceRow)
        {
            const int Count = 8;

            var w = new List<Weather>();
            var wr = new List<Tuple<int, Weather>>();
            var min = 0;
            for (var i = 0; i < Count; ++i) {
                var suffix = string.Format("[{0}]", i);

                var weather = (Weather)this["Weather" + suffix];
                var rate = Convert.ToInt32(this["Rate" + suffix]);

                w.Add(weather);
                wr.Add(Tuple.Create(min + rate, weather));

                min += rate;
            }
            _PossibleWeathers = w.Distinct().ToArray();
            _WeatherRates = wr.ToArray();
        }
Exemplo n.º 5
0
 public Status(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentType"/> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet"/> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow"/> to read data from.</param>
 public ContentType(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
 public CompanionTransient(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 8
0
 public ClassJob(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 9
0
 public Addon(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 10
0
 protected ActionBase(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 11
0
 public HpRecovery(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 12
0
 protected ClassJobActionBase(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 13
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ItemBase" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 protected ItemBase(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentRoulette"/> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet"/> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow"/> to read data from.</param>
 public ContentRoulette(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 15
0
 public ChocoboRaceStatus(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 16
0
 public BeastReputationRank(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InstanceContent"/> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet"/> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow"/> to read data from.</param>
 public ContentFinderCondition(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 18
0
 public BNpcName(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 19
0
 protected HousingLayoutLimit(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 20
0
 public JournalCategory(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 21
0
 public SphereScroll(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 22
0
        // TODO: DefaultTalk

        #endregion

        #region Constructors

        public TripleTriad(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
        {
        }
Exemplo n.º 23
0
 public BuddyAction(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 24
0
 public FishingSpotCategory(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 25
0
 public FccShop(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="LeveRewardItem" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public LeveRewardItem(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
 public AirshipExplorationLog(IXivSheet sheet, SaintCoinach.Ex.Relational.IRelationalRow sourceRow) : base(sheet, sourceRow) { }
 public GatheringNotebookRegion(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 29
0
 public ENpcBase(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 30
0
 public ItemRoulette(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 31
0
 protected PointRecovery(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
 public PhysicalWeapon(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 33
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Weapon" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public Weapon(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 34
0
 public Food(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 35
0
 public GrandCompany(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
 /// <summary>
 ///     Initializes a new instance of the <see cref="EquipSlotCategory" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public EquipSlotCategory(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
     Build();
 }
 public MinionSkillType(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 38
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ItemLevel" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public ItemLevel(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 39
0
 public BuddyEquipUnlock(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
 public CompanyCraftDraftCategory(IXivSheet sheet, SaintCoinach.Ex.Relational.IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 41
0
 public ChocoboRaceStatus(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 42
0
 public Title(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
 public CompanionUnlock(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 44
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="TerritoryType" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public TerritoryType(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 45
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Equipment" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 protected Equipment(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 46
0
 public HousingYardObject(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 47
0
 public GatheringCondition(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 48
0
 public BuddyEquipUnlock(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 49
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModelChara"/> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet"/> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow"/> to read data from.</param>
 public ModelChara(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 50
0
 public GatheringItem(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 51
0
 public EventAction(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 52
0
 public MapMarker(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 53
0
 public ActionCategory(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
 /// <summary>
 /// Initializes a new instance of the <see cref="InstanceContent"/> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet"/> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow"/> to read data from.</param>
 public InstanceContent(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="LeveRewardItem" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public LeveRewardItem(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
Exemplo n.º 56
0
 public ENpcResident(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 57
0
 public GatheringPoint(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 58
0
 public CraftCrystalType(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }
Exemplo n.º 59
0
 public RetainerTaskRandom(IXivSheet sheet, SaintCoinach.Ex.Relational.IRelationalRow sourceRow) : base(sheet, sourceRow) { }
Exemplo n.º 60
0
 public MasterpieceSupplyDuty(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
 }