Click or drag to resize
IMyCubeBlockAddUpgradeValue Method

[This is preliminary documentation and is subject to change.]

Preferred way of registering a block for upgrades Adding directly to the dictionary can have unintended consequences when multiple mods are involved.

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
void AddUpgradeValue(
	string upgrade,
	float defaultValue
)

Parameters

upgrade
Type: SystemString

[Missing <param name="upgrade"/> documentation for "M:VRage.Game.ModAPI.IMyCubeBlock.AddUpgradeValue(System.String,System.Single)"]

defaultValue
Type: SystemSingle

[Missing <param name="defaultValue"/> documentation for "M:VRage.Game.ModAPI.IMyCubeBlock.AddUpgradeValue(System.String,System.Single)"]

See Also