Esempio n. 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="src">The source.</param>
        /// <exception cref="System.ArgumentNullException">src</exception>
        public Material(SerializableMaterialQuantity src)
        {
            src.ThrowIfNull(nameof(src));

            Item = StaticItems.GetItemByID(src.ID);
            Quantity = src.Quantity;
        }
Esempio n. 2
0
 public Material(SerializableMaterialQuantity src)
 {
     m_product = StaticItems.GetItemByID(src.ID);
     m_quantity = src.Quantity;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes the reprocessing informations.
 /// </summary>
 /// <param name="srcMaterials"></param>
 internal void InitializeReprocessing(SerializableMaterialQuantity[] srcMaterials)
 {
     foreach (var src in srcMaterials)
     {
         m_reprocessing.Add(new Material(src));
     }
 }