本文整理汇总了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];
}
示例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];
}
示例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);
}
示例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();
}
示例5: ENpcBase
public ENpcBase(IXivSheet sheet, IRelationalRow sourceRow)
: base(sheet, sourceRow)
{
}
示例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) { }
示例7: AirshipExplorationLog
public AirshipExplorationLog(IXivSheet sheet, SaintCoinach.Ex.Relational.IRelationalRow sourceRow) : base(sheet, sourceRow) { }
示例8: CompanionTransient
public CompanionTransient(IXivSheet sheet, IRelationalRow sourceRow)
: base(sheet, sourceRow)
{
}
示例9: FccShop
public FccShop(IXivSheet sheet, IRelationalRow sourceRow)
: base(sheet, sourceRow)
{
}
示例10: ClassJob
public ClassJob(IXivSheet sheet, IRelationalRow sourceRow)
: base(sheet, sourceRow)
{
}
示例11: HousingLayoutLimit
protected HousingLayoutLimit(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
示例12: MinionSkillType
public MinionSkillType(IXivSheet sheet, IRelationalRow sourceRow)
: base(sheet, sourceRow)
{
}
示例13: PhysicalWeapon
public PhysicalWeapon(IXivSheet sheet, IRelationalRow sourceRow)
: base(sheet, sourceRow)
{
}
示例14: GrandCompany
public GrandCompany(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }
示例15: PointRecovery
protected PointRecovery(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { }