Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EVStat : ULongStat
- {
- public static readonly int DefaultGrowthAmount = 1000;
- public int GrowthAmount { get; }
- public override ulong Value
- {
- get
- {
- var oldValue = Value;
- Value += ExcerciseAmount;
- return oldValue;
- }
- protected set { Value = value; }
- }
- public EVStat Copy()
- {
- return new EVStat(Name, Value, GrowthAmount, MinLimit, MaxLimit, Description, Notes);
- }
- public EVStat() : this("UnnamedStat", 0, DefaultGrowthAmount, ulong.MinValue, ulong.MaxValue, null, null) { }
- public EVStat(string name) : this(name, 0, DefaultGrowthAmount, ulong.MinValue, ulong.MaxValue, null, null) { }
- public EVStat(string name, ulong value) : this(name, value, DefaultGrowthAmount, ulong.MinValue, ulong.MaxValue, null, null) { }
- public EVStat(string name, ulong value, int growth) : this(name, value, growth, ulong.MinValue, ulong.MaxValue, null, null) { }
- public EVStat(string name, ulong value, int growth, ulong min, ulong max) : this(name, value, growth, min, max, null, null) { }
- public EVStat(string name, ulong value, int growth, ulong min, ulong max, string desc, string notes)
- : base(name, value, (ulong)(Math.Max(min, ulong.MinValue)), (ulong)(Math.Min(max, ulong.MaxValue)), desc, notes)
- {
- GrowthAmount = growth;
- }
- }
- public interface StatContainer<T>
- {
- T
- }
- public delegate T CompositeStatCombine<T>(Dictionary<string, T> stats)
- public class CompositeStat<T>
- where T: NumericStat
- {
- protected Dictionary<string, T> Stats { get; set; }
- protected List<long> AdditionFactors { get; set; }
- protected List<float> MultiplicationFactors { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment