예제 #1
0
 public ArrangementResourceAmount(Currency currency, ArrangementItemAmount arrangementItemAmount, ArrangementCount arrangementCount, MouseOrderAmount mouseOrderAmount)
 {
     this.currency = currency;
     this.arrangementItemAmount = arrangementItemAmount;
     this.arrangementCount      = arrangementCount;
     this.mouseOrderAmount      = mouseOrderAmount;
 }
예제 #2
0
 public bool IsValid(ArrangementCount count)
 {
     foreach (var monoId in count.GetCountedMonoInfos())
     {
         var maxCount     = this.GetMaxCount(monoId);
         var currentCount = count.GetCount(monoId);
         Debug.Assert(maxCount != 0, monoId.ToString() + "のモノの最大数が0です");
         if (maxCount < currentCount)
         {
             return(false);
         }
     }
     return(true);
 }