예제 #1
0
 public void Store(OriItem item, ulong amount = 1)
 {
     for (ulong i = 0; i < amount; i++)
     {
         Items.Add(item);
     }
 }
예제 #2
0
        public Reward(RewardType type, ulong amount, OriItem item = null)
        {
            Type = type;

            switch (type)
            {
            case RewardType.Item:
                if (item == null)
                {
                    throw new Exception("RewardType.Item requires that an item be specified to reward.");
                }
                else
                {
                    Item = item;
                }
                break;
            }

            Amount = amount;
        }