Пример #1
0
 public ChestResult(ChestResultType resultType, int gilAmount)
 {
     if (resultType == ChestResultType.Gil)
     {
         _result = gilAmount;
     }
     else
     {
         _result = (int)resultType;
     }
 }
Пример #2
0
 public ChestResult(ChestResultType result)
 {
     _result = (int)result;
 }