Method Upgrade
Upgrade(Material, UpgradeFlags)
Upgrade method.
Declaration
public void Upgrade(Material material, MaterialUpgrader.UpgradeFlags flags)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Material to upgrade. |
MaterialUpgrader.UpgradeFlags | flags | Upgrade flag |
Upgrade(Material, MaterialUpgrader, UpgradeFlags)
Upgrade a material.
Declaration
public static void Upgrade(Material material, MaterialUpgrader upgrader, MaterialUpgrader.UpgradeFlags flags)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Material to upgrade. |
MaterialUpgrader | upgrader | Material upgrader. |
MaterialUpgrader.UpgradeFlags | flags | Material Upgrader flags. |
Upgrade(Material, List<MaterialUpgrader>, UpgradeFlags)
Upgrade a material.
Declaration
public static void Upgrade(Material material, List<MaterialUpgrader> upgraders, MaterialUpgrader.UpgradeFlags flags)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Material to upgrade. |
List<MaterialUpgrader> | upgraders | List of Material upgraders. |
MaterialUpgrader.UpgradeFlags | flags | Material Upgrader flags. |
Upgrade(Material, List<MaterialUpgrader>, UpgradeFlags, ref string)
Upgrade a material.
Declaration
public static bool Upgrade(Material material, List<MaterialUpgrader> upgraders, MaterialUpgrader.UpgradeFlags flags, ref string message)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Material to upgrade. |
List<MaterialUpgrader> | upgraders | List of Material upgraders. |
MaterialUpgrader.UpgradeFlags | flags | Material upgrader flags. |
string | message | Error message to be outputted when no material upgraders are suitable for given material if the flags LogMessageWhenNoUpgraderFound is used. |
Returns
Type | Description |
---|---|
bool | Returns true if the upgrader was found for the passed in material. |