-
Notifications
You must be signed in to change notification settings - Fork 48
/
WorldBossListSheet.cs
37 lines (34 loc) · 1.19 KB
/
WorldBossListSheet.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
using System.Collections.Generic;
using static Nekoyume.TableData.TableExtensions;
namespace Nekoyume.TableData
{
public class WorldBossListSheet : Sheet<int, WorldBossListSheet.Row>
{
public class Row : SheetRow<int>
{
public override int Key => Id;
public int Id;
public int BossId;
public long StartedBlockIndex;
public long EndedBlockIndex;
public int EntranceFee;
public int TicketPrice;
public int AdditionalTicketPrice;
public int MaxPurchaseCount;
public override void Set(IReadOnlyList<string> fields)
{
Id = ParseInt(fields[0]);
BossId = ParseInt(fields[1]);
StartedBlockIndex = ParseLong(fields[2]);
EndedBlockIndex = ParseLong(fields[3]);
EntranceFee = ParseInt(fields[4]);
TicketPrice = ParseInt(fields[5]);
AdditionalTicketPrice = ParseInt(fields[6]);
MaxPurchaseCount = ParseInt(fields[7]);
}
}
public WorldBossListSheet() : base(nameof(WorldBossListSheet))
{
}
}
}