当前位置: 首页>>代码示例>>C#>>正文


C# IXivSheet类代码示例

本文整理汇总了C#中IXivSheet的典型用法代码示例。如果您正苦于以下问题:C# IXivSheet类的具体用法?C# IXivSheet怎么用?C# IXivSheet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IXivSheet类属于命名空间,在下文中一共展示了IXivSheet类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ReadItem

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

                var key = Convert.ToInt32(reader.Value);
                this.Item = allItems[key];
            }
开发者ID:viion,项目名称:SaintCoinach,代码行数:7,代码来源:InstanceContentData.RewardItem.cs

示例2: ReadRequiredQuest

            private void ReadRequiredQuest(JsonReader reader, IXivSheet<Quest> allQuests)
            {
                if (!reader.Read()) throw new InvalidOperationException();

                var key = Convert.ToInt32(reader.Value);
                this.RequiredQuest = allQuests[key];
            }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:7,代码来源:InstanceContentData.RewardItem.cs

示例3: GrandCompanySealShopItem

        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);
        }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:10,代码来源:GrandCompanySealShopItem.cs

示例4: WeatherRate

        /// <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();
        }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:27,代码来源:WeatherRate.cs

示例5: ENpcBase

 public ENpcBase(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:4,代码来源:ENpcBase.cs

示例6: ContentType

 /// <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) { }
开发者ID:mclark4386,项目名称:SaintCoinach,代码行数:6,代码来源:ContentType.cs

示例7: AirshipExplorationLog

 public AirshipExplorationLog(IXivSheet sheet, SaintCoinach.Ex.Relational.IRelationalRow sourceRow) : base(sheet, sourceRow) { }
开发者ID:mclark4386,项目名称:SaintCoinach,代码行数:1,代码来源:AirshipExplorationLog.cs

示例8: CompanionTransient

 public CompanionTransient(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:4,代码来源:CompanionTransient.cs

示例9: FccShop

 public FccShop(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:4,代码来源:FccShop.cs

示例10: ClassJob

 public ClassJob(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:4,代码来源:ClassJob.cs

示例11: HousingLayoutLimit

 protected HousingLayoutLimit(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
开发者ID:mclark4386,项目名称:SaintCoinach,代码行数:1,代码来源:HousingLayoutLimit.cs

示例12: MinionSkillType

 public MinionSkillType(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:4,代码来源:MinionSkillType.cs

示例13: PhysicalWeapon

 public PhysicalWeapon(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
 }
开发者ID:KevinAllenWiegand,项目名称:SaintCoinach,代码行数:4,代码来源:PhysicalWeapon.cs

示例14: GrandCompany

 public GrandCompany(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
开发者ID:mclark4386,项目名称:SaintCoinach,代码行数:1,代码来源:GrandCompany.cs

示例15: PointRecovery

 protected PointRecovery(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
开发者ID:mclark4386,项目名称:SaintCoinach,代码行数:1,代码来源:PointRecovery.cs


注:本文中的IXivSheet类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。