public MaterialAmount(Material material, int amount) { Material My_material = Material.FromEDName(material.EDName); this.material = My_material.name; this.edname = My_material.EDName; this.amount = amount; this.Category = My_material.category; }
public MaterialAmount(Material material, int amount) { Material My_material = Material.FromEDName(material.edname); this.material = My_material?.invariantName; this.edname = My_material?.edname; this.amount = amount; this.Category = My_material?.category.localizedName; }
public MaterialAmount(Material material, int amount, int?minimum, int?desired, int?maximum) { Material My_material = Material.FromEDName(material.EDName); this.material = My_material.name; this.edname = My_material.EDName; this.amount = amount; this.minimum = minimum; this.desired = desired; this.maximum = maximum; this.Category = My_material.category; }
public MaterialAmount(string edname, int amount, int?minimum, int?desired, int?maximum) { Material My_material = Material.FromEDName(edname); this.material = My_material?.localizedName; this.edname = My_material?.edname; this.amount = amount; this.minimum = minimum; this.desired = desired; this.maximum = maximum; this.Category = My_material?.Category.localizedName; }