예제 #1
0
 public Account(Currency _currency, IIntSerializable _saveable, IReporteable _reportable = null)
 {
     this.saveable = _saveable;
     this.money    = new Money(this.saveable.GetValue(), _currency);
     this.thisGame = new Money(0, _currency);
     if (_reportable != null)
     {
         this.reporteable  = _reportable;
         this.shouldReport = true;
     }
 }
예제 #2
0
 public Accumulator(IIntSerializable _serialize)
 {
     this.amount    = _serialize.GetValue();
     this.serialize = _serialize;
 }