Show / Hide Table of Contents

Interface IMyUpgradableBlock

Describes block, which has upgrade effects (PB scripting interface)

Inherited Members
IMyCubeBlock.GetOwnerFactionTag()
IMyCubeBlock.GetPlayerRelationToOwner()
IMyCubeBlock.GetUserRelationToOwner(Int64, MyRelationsBetweenPlayerAndBlock)
IMyCubeBlock.UpdateIsWorking()
IMyCubeBlock.UpdateVisual()
IMyCubeBlock.BlockDefinition
IMyCubeBlock.CubeGrid
IMyCubeBlock.DefinitionDisplayNameText
IMyCubeBlock.DisassembleRatio
IMyCubeBlock.DisplayNameText
IMyCubeBlock.IsBeingHacked
IMyCubeBlock.IsFunctional
IMyCubeBlock.IsWorking
IMyCubeBlock.Max
IMyCubeBlock.Mass
IMyCubeBlock.Min
IMyCubeBlock.NumberInGrid
IMyCubeBlock.Orientation
IMyCubeBlock.OwnerId
IMyCubeBlock.Position
IMyEntity.GetInventory()
IMyEntity.GetInventory(Int32)
IMyEntity.GetPosition()
IMyEntity.Components
IMyEntity.EntityId
IMyEntity.Name
IMyEntity.DisplayName
IMyEntity.HasInventory
IMyEntity.InventoryCount
IMyEntity.Closed
IMyEntity.WorldAABB
IMyEntity.WorldAABBHr
IMyEntity.WorldMatrix
IMyEntity.WorldVolume
IMyEntity.WorldVolumeHr
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyUpgradableBlock : IMyCubeBlock, IMyEntity

Properties

UpgradeCount

Gets number of upgrades applied

Declaration
uint UpgradeCount { get; }
Property Value
Type Description
System.UInt32

Methods

GetUpgrades(out Dictionary<String, Single>)

Get list of upgrades. Read only.

Declaration
void GetUpgrades(out Dictionary<string, float> upgrades)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Single> upgrades

String - upgrade type, float - effect value as float (1 = 100%)

☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾