-
Notifications
You must be signed in to change notification settings - Fork 48
/
WorldBossRankRewardSheet.cs
38 lines (34 loc) · 1.24 KB
/
WorldBossRankRewardSheet.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Collections.Generic;
using static Nekoyume.TableData.TableExtensions;
namespace Nekoyume.TableData
{
public class WorldBossRankRewardSheet: Sheet<int, WorldBossRankRewardSheet.Row>, IWorldBossRewardSheet
{
public class Row : SheetRow<int>, IWorldBossRewardRow
{
public override int Key => Id;
public int Id;
public int BossId { get; private set; }
public int Rank { get; private set; }
public int Rune { get; private set; }
public int Crystal { get; private set; }
public int Circle { get; private set; }
public override void Set(IReadOnlyList<string> fields)
{
Id = ParseInt(fields[0]);
BossId = ParseInt(fields[1]);
Rank = ParseInt(fields[2]);
Rune = ParseInt(fields[3]);
Crystal = ParseInt(fields[4]);
if (fields.Count > 5)
{
Circle = ParseInt(fields[5]);
}
}
}
public WorldBossRankRewardSheet() : base(nameof(WorldBossRankRewardSheet))
{
}
public IReadOnlyList<IWorldBossRewardRow> OrderedRows => OrderedList;
}
}