Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
20
Projects/Scripts/Engines/VeteranRewards/RewardList.cs
Normal file
20
Projects/Scripts/Engines/VeteranRewards/RewardList.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Engines.VeteranRewards
|
||||
{
|
||||
public class RewardList
|
||||
{
|
||||
public RewardList(TimeSpan interval, int index, RewardEntry[] entries)
|
||||
{
|
||||
Age = TimeSpan.FromDays(interval.TotalDays * index);
|
||||
Entries = entries;
|
||||
|
||||
for (int i = 0; i < entries.Length; ++i)
|
||||
entries[i].List = this;
|
||||
}
|
||||
|
||||
public TimeSpan Age{ get; }
|
||||
|
||||
public RewardEntry[] Entries{ get; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue