#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
22
Scripts/Engines/VeteranRewards/RewardList.cs
Normal file
22
Scripts/Engines/VeteranRewards/RewardList.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Engines.VeteranRewards
|
||||
{
|
||||
public class RewardList
|
||||
{
|
||||
private TimeSpan m_Age;
|
||||
private RewardEntry[] m_Entries;
|
||||
|
||||
public TimeSpan Age{ get{ return m_Age; } }
|
||||
public RewardEntry[] Entries{ get{ return m_Entries; } }
|
||||
|
||||
public RewardList( TimeSpan interval, int index, RewardEntry[] entries )
|
||||
{
|
||||
m_Age = TimeSpan.FromDays( interval.TotalDays * index );
|
||||
m_Entries = entries;
|
||||
|
||||
for ( int i = 0; i < entries.Length; ++i )
|
||||
entries[i].List = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue