FromEDName() public static method

public static FromEDName ( string from ) : Material
from string
return Material
Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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;
        }