예제 #1
0
 public Content_RandomItems(LootContentSerializable serializable, Database database)
 {
     if (serializable == null || database == null)
     {
         return;
     }
     MinAmount = new NumericValue <int>(serializable.MinAmount, 0, 100000000);
     MaxAmount = new NumericValue <int>(serializable.MaxAmount, 0, 100000000);
     Items     = serializable.Items?.Select(item => LootItemData.Deserialize(item, database)).ToArray();
 }