Show / Hide Table of Contents

Class MyCompoundCubeBlock

Cube block which is composed of several cube blocks together with shared compound template name.

Inheritance
System.Object
MyEntity
MyCubeBlock
MyCompoundCubeBlock
Implements
IMyComponentOwner<MyIDModule>
IMyUpgradableBlock
IMyCubeBlock
IMyEntity
IMyUpgradableBlock
IMyCubeBlock
IMyEntity
IMyDecalProxy
Inherited Members
MyCubeBlock.MAX_CUSTOM_NAME_LENGTH
MyCubeBlock.DUMMY_SUBBLOCK_ID
MyCubeBlock.m_soundEmitter
MyCubeBlock.m_emissiveNames
MyCubeBlock.CurrentAttachedUpgradeModules
MyCubeBlock.IsBeingRemoved
MyCubeBlock.m_activeEffects
MyCubeBlock.SlimBlock
MyCubeBlock.IsSilenced
MyCubeBlock.SilenceInChange
MyCubeBlock.UsedUpdateEveryFrame
MyCubeBlock.HandleEmissiveStateChange
MyCubeBlock.InitSkinUpdateHandled
MyCubeBlock.SubBlocks
MyCubeBlock.m_forceBlockDestructible
MyCubeBlock.GetOwnerFactionTag()
MyCubeBlock.GetUserRelationToOwner(Int64, MyRelationsBetweenPlayerAndBlock)
MyCubeBlock.GetPlayerRelationToOwner()
MyCubeBlock.FriendlyWithBlock(MyCubeBlock)
MyCubeBlock.UpdateIsWorking()
MyCubeBlock.CheckIsWorking()
MyCubeBlock.CanContinueBuild()
MyCubeBlock.GetInteractiveObject(UInt32)
MyCubeBlock.ReleaseInventory(MyInventory, Boolean)
MyCubeBlock.OnConstraintAdded(GridLinkTypeEnum, IMyEntity)
MyCubeBlock.OnConstraintRemoved(GridLinkTypeEnum, IMyEntity)
MyCubeBlock.InitComponents()
MyCubeBlock.Init()
MyCubeBlock.HasUnparentedSubpart()
MyCubeBlock.GetLocalMatrix(Matrix)
MyCubeBlock.CalcLocalMatrix(Matrix, String)
MyCubeBlock.Components_ComponentAdded(Type, IMyEntityComponentBase)
MyCubeBlock.Components_ComponentRemoved(Type, IMyEntityComponentBase)
MyCubeBlock.GetObjectBuilder(Boolean)
MyCubeBlock.WorldPositionChanged(Object)
MyCubeBlock.SetEmissiveStateWorking()
MyCubeBlock.SetEmissiveStateDisabled()
MyCubeBlock.SetEmissiveStateDamaged()
MyCubeBlock.CheckEmissiveState(Boolean)
MyCubeBlock.SetEmissiveState(MyStringHash, UInt32, String)
MyCubeBlock.UpdateEmissiveParts(UInt32, Single, Color, Color)
MyCubeBlock.GetDefaultEmissiveParts(Byte)
MyCubeBlock.UpdateSkin(Boolean)
MyCubeBlock.UpdateOnceBeforeFrame()
MyCubeBlock.UpdateBeforeSimulation10()
MyCubeBlock.UpdateBeforeSimulation()
MyCubeBlock.OnBuildSuccess(Int64, Boolean)
MyCubeBlock.OnRemovedByCubeBuilder()
MyCubeBlock.OnRegisteredToGridSystems()
MyCubeBlock.OnUnregisteredFromGridSystems()
MyCubeBlock.ContactPointCallback(MyGridContactInfo)
MyCubeBlock.OnDestroy()
MyCubeBlock.OnModelChange()
MyCubeBlock.CalculateCurrentModel(Matrix)
MyCubeBlock.ChangeBlockOwnerRequest(Int64, MyOwnershipShareModeEnum)
MyCubeBlock.SetEffect(String, Boolean)
MyCubeBlock.SetEffect(String, Single, Boolean, Boolean, Boolean)
MyCubeBlock.RemoveEffect(String, Int32)
MyCubeBlock.SetDamageEffectDelayed(Boolean)
MyCubeBlock.SetDamageEffect(Boolean)
MyCubeBlock.StopDamageEffect(Boolean)
MyCubeBlock.ChangeOwner(Int64, MyOwnershipShareModeEnum)
MyCubeBlock.OnOwnershipChanged()
MyCubeBlock.IMyComponentOwner<MyIDModule>.GetComponent(MyIDModule)
MyCubeBlock.OnTeleport()
MyCubeBlock.AllSubBlocksInitialized()
MyCubeBlock.AddSubBlock(String, MySlimBlock)
MyCubeBlock.SubBlocksInitialized(Boolean)
MyCubeBlock.OnSubBlockClosing(MySlimBlock)
MyCubeBlock.RemoveSubBlock(String, Boolean)
MyCubeBlock.GetBlockGridOffset(MyCubeBlockDefinition)
MyCubeBlock.GetSubBlockDataFromDummy(MyCubeBlockDefinition, String, MyModelDummy, Boolean, MyCubeBlockDefinition, MatrixD, Vector3)
MyCubeBlock.GetSubBlocks()
MyCubeBlock.TryGetSubBlock(String, MySlimBlock)
MyCubeBlock.GetComponent()
MyCubeBlock.AddUpgradeValue(String, Single)
MyCubeBlock.CommitUpgradeValues()
MyCubeBlock.CreateRenderer(MyPersistentEntityFlags2, Vector3, Object)
MyCubeBlock.GetFractureComponent()
MyCubeBlock.RefreshModels(String, String)
MyCubeBlock.OnInventoryComponentAdded(MyInventoryBase)
MyCubeBlock.OnInventoryComponentRemoved(MyInventoryBase)
MyCubeBlock.GetIntersectionWithLine(LineD, Nullable<MyIntersectionResultLineTriangleEx>, IntersectionFlags)
MyCubeBlock.DisableUpdates()
MyCubeBlock.ReceivedDamage(Single, MyStringHash, Int64, Int64, Boolean, Nullable<MyStringHash>)
MyCubeBlock.Init(MyObjectBuilder_CubeBlock, IMyCubeGrid)
MyCubeBlock.IMyCubeBlock.CalcLocalMatrix(Matrix, String)
MyCubeBlock.IMyCubeBlock.CalculateCurrentModel(Matrix)
MyCubeBlock.IMyCubeBlock.GetObjectBuilderCubeBlock(Boolean)
MyCubeBlock.IMyCubeBlock.GetPlayerRelationToOwner()
MyCubeBlock.IMyCubeBlock.GetUserRelationToOwner(Int64, MyRelationsBetweenPlayerAndBlock)
MyCubeBlock.IMyCubeBlock.Init()
MyCubeBlock.IMyCubeBlock.Init(MyObjectBuilder_CubeBlock, IMyCubeGrid)
MyCubeBlock.IMyCubeBlock.OnBuildSuccess(Int64)
MyCubeBlock.IMyCubeBlock.OnBuildSuccess(Int64, Boolean)
MyCubeBlock.IMyCubeBlock.OnDestroy()
MyCubeBlock.IMyCubeBlock.OnModelChange()
MyCubeBlock.IMyCubeBlock.OnRegisteredToGridSystems()
MyCubeBlock.IMyCubeBlock.OnRemovedByCubeBuilder()
MyCubeBlock.IMyCubeBlock.OnUnregisteredFromGridSystems()
MyCubeBlock.IMyCubeBlock.RaycastDetectors(Vector3D, Vector3D)
MyCubeBlock.IMyCubeBlock.ReloadDetectors(Boolean)
MyCubeBlock.IMyCubeBlock.UpdateIsWorking()
MyCubeBlock.IMyCubeBlock.UpdateVisual()
MyCubeBlock.IMyCubeBlock.SetDamageEffect(Boolean)
MyCubeBlock.IMyUpgradableBlock.GetUpgrades(Dictionary<String, Single>)
MyCubeBlock.IMyCubeBlock.SetEffect(String, Boolean)
MyCubeBlock.IMyCubeBlock.SetEffect(String, Single, Boolean, Boolean, Boolean)
MyCubeBlock.IMyCubeBlock.RemoveEffect(String, Int32)
MyCubeBlock.IsBeingHacked
MyCubeBlock.UsesEmissivePreset
MyCubeBlock.HighlightMode
MyCubeBlock.Physics
MyCubeBlock.OwnerId
MyCubeBlock.BuiltBy
MyCubeBlock.ResourceSink
MyCubeBlock.BlockDefinition
MyCubeBlock.Min
MyCubeBlock.Max
MyCubeBlock.Orientation
MyCubeBlock.Position
MyCubeBlock.CubeGrid
MyCubeBlock.UseObjectsComponent
MyCubeBlock.CheckConnectionAllowed
MyCubeBlock.NumberInGrid
MyCubeBlock.IsFunctional
MyCubeBlock.IsBuilt
MyCubeBlock.DisassembleRatio
MyCubeBlock.IsWorking
MyCubeBlock.IDModule
MyCubeBlock.IsSubBlock
MyCubeBlock.SubBlockName
MyCubeBlock.OwnerBlock
MyCubeBlock.DefinitionDisplayNameText
MyCubeBlock.ForceBlockDestructible
MyCubeBlock.HasDamageEffect
MyCubeBlock.UpgradeValues
MyCubeBlock.IMyCubeBlock.BlockDefinition
MyCubeBlock.IMyCubeBlock.CubeGrid
MyCubeBlock.IMyCubeBlock.CubeGrid
MyCubeBlock.IMyCubeBlock.CheckConnectionAllowed
MyCubeBlock.IMyCubeBlock.Mass
MyCubeBlock.IMyCubeBlock.SlimBlock
MyCubeBlock.IMyUpgradableBlock.UpgradeCount
MyCubeBlock.IMyCubeBlock.ResourceSink
MyCubeBlock.CheckConnectionChanged
MyCubeBlock.IsWorkingChanged
MyCubeBlock.GetEmissiveStateHashFromComponent
MyCubeBlock.CanContinueBuildCheck
MyCubeBlock.OnUpdateBeforenextFrame
MyCubeBlock.OnUpgradeValuesChanged
MyCubeBlock.IMyCubeBlock.IsWorkingChanged
MyCubeBlock.CubeGridChanged
MyEntity.m_contactPoint
MyEntity.DefinitionId
MyEntity.DebugAsyncLoading
MyEntity.m_hudParams
MyEntity.m_positionResetFromServer
MyEntity.m_modelCollision
MyEntity.GamePruningProxyId
MyEntity.TopMostPruningProxyId
MyEntity.StaticForPruningStructure
MyEntity.TargetPruningProxyId
MyEntity.IsPreviewChanged
MyEntity.ReadyForReplicationAction
MyEntity.PropagateSubpartRotationThroughHieerarchy
MyEntity.ReplicationStarted
MyEntity.ReplicationEnded
MyEntity.OnEntityCloseRequest
MyEntity.InstantiateSubpartOverrideFunc
MyEntity.AddToGamePruningStructureExtCallBack
MyEntity.RemoveFromGamePruningStructureExtCallBack
MyEntity.UpdateGamePruningStructureExtCallBack
MyEntity.MyEntityFactoryCreateObjectBuilderExtCallback
MyEntity.CreateDefaultSyncEntityExtCallback
MyEntity.MyWeldingGroupsAddNodeExtCallback
MyEntity.MyWeldingGroupsRemoveNodeExtCallback
MyEntity.MyWeldingGroupsGetGroupNodesExtCallback
MyEntity.MyWeldingGroupsGroupExistsExtCallback
MyEntity.MyProceduralWorldGeneratorTrackEntityExtCallback
MyEntity.CreateStandardRenderComponentsExtCallback
MyEntity.InitComponentsExtCallback
MyEntity.MyEntitiesCreateFromObjectBuilderExtCallback
MyEntity.DebugDraw()
MyEntity.DebugDrawInvalidTriangles()
MyEntity.AddDebugRenderComponent(MyDebugRenderComponentBase)
MyEntity.ContainsDebugRenderComponent(Type)
MyEntity.TryGetDebugRenderComponent<T>(T)
MyEntity.RemoveDebugRenderComponent(Type)
MyEntity.RemoveDebugRenderComponent(MyDebugRenderComponentBase)
MyEntity.ClearDebugRenderComponents()
MyEntity.GetTopMostParent(Type)
MyEntity.GetHudParams(Boolean)
MyEntity.CanBeAddedToRender()
MyEntity.InitComponentsForTesting()
MyEntity.OnCreateSync()
MyEntity.CreateSync()
MyEntity.GetSubpart(String)
MyEntity.TryGetSubpart(String, MyEntitySubpart)
MyEntity.Simulate()
MyEntity.UpdateAfterSimulation()
MyEntity.UpdatingStopped()
MyEntity.UpdateAfterSimulation10()
MyEntity.UpdateBeforeSimulation100()
MyEntity.UpdateAfterSimulation100()
MyEntity.GetFriendlyName()
MyEntity.GetViewMatrix()
MyEntity.Teleport(MatrixD, Object, Boolean)
MyEntity.DebugDrawPhysics()
MyEntity.GetIntersectionWithLine(LineD, Nullable<Vector3D>, Boolean, IntersectionFlags)
MyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.GetIntersectionWithSphere(BoundingSphereD)
MyEntity.GetIntersectionWithAABB(BoundingBoxD)
MyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.DoOverlapSphereTest(Single, Vector3D)
MyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenPlayerPositionAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.GetBaseEntity()
MyEntity.OnReplicationStarted()
MyEntity.OnReplicationEnded()
MyEntity.SetFadeOut(Boolean)
MyEntity.AddToGamePruningStructure()
MyEntity.RemoveFromGamePruningStructure()
MyEntity.UpdateGamePruningStructure()
MyEntity.RaisePhysicsChanged()
MyEntity.Init(MyObjectBuilder_EntityBase)
MyEntity.BeforeGameLogicInit()
MyEntity.ClampToWorld()
MyEntity.Init(StringBuilder, String, MyEntity, Nullable<Single>, String)
MyEntity.Delete()
MyEntity.BeforeDelete()
MyEntity.Close()
MyEntity.BeforeSave()
MyEntity.PrepareForDraw()
MyEntity.BeforePaste()
MyEntity.AfterPaste()
MyEntity.SetEmissiveParts(String, Color, Single)
MyEntity.SetEmissivePartsForSubparts(String, Color, Single)
MyEntity.UpdateNamedEmissiveParts(UInt32, String, Color, Single)
MyEntity.InstantiateSubpart(MyModelDummy, MyEntitySubpart.Data)
MyEntity.GetCubeBlockParent(MyEntity)
MyEntity.ToString()
MyEntity.GetInventoryBase(Int32)
MyEntity.GetInventoryBase()
MyEntity.SerializeControls(BitStream)
MyEntity.DeserializeControls(BitStream, Boolean)
MyEntity.ApplyLastControls()
MyEntity.ResetControls()
MyEntity.Pin()
MyEntity.Unpin()
MyEntity.UpdateSoundContactPoint(Int64, Vector3, Vector3, Vector3, Single)
MyEntity.IMyEntity.GetTopMostParent(Type)
MyEntity.IMyEntity.GetChildren(List<IMyEntity>, Func<IMyEntity, Boolean>)
MyEntity.IMyEntity.GetFriendlyName()
MyEntity.IMyEntity.Close()
MyEntity.IMyEntity.Delete()
MyEntity.IMyEntity.GetDiffuseColor()
MyEntity.IMyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.IMyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.IMyEntity.GetIntersectionWithSphere(BoundingSphereD)
MyEntity.IMyEntity.GetInventory()
MyEntity.IMyEntity.GetInventory(Int32)
MyEntity.IMyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.IMyEntity.DoOverlapSphereTest(Single, Vector3D)
MyEntity.IMyEntity.GetObjectBuilder(Boolean)
MyEntity.IMyEntity.IsVisible()
MyEntity.IMyEntity.GetViewMatrix()
MyEntity.IMyEntity.GetWorldMatrixNormalizedInv()
MyEntity.IMyEntity.SetLocalMatrix(Matrix, Object)
MyEntity.IMyEntity.SetWorldMatrix(MatrixD, Object)
MyEntity.IMyEntity.SetPosition(Vector3D)
MyEntity.IMyEntity.EnableColorMaskForSubparts(Boolean)
MyEntity.IMyEntity.SetColorMaskForSubparts(Vector3)
MyEntity.IMyEntity.SetTextureChangesForSubparts(Dictionary<String, MyTextureChange>)
MyEntity.IMyEntity.SetTextureChangesForSubparts(Dictionary<MyStringId, MyTextureChange>)
MyEntity.IMyEntity.SetEmissiveParts(String, Color, Single)
MyEntity.IMyEntity.SetEmissivePartsForSubparts(String, Color, Single)
MyEntity.IMyEntity.GetInventory()
MyEntity.IMyEntity.GetInventory(Int32)
MyEntity.IMyEntity.GetPosition()
MyEntity.Components
MyEntity.Name
MyEntity.PositionComp
MyEntity.Render
MyEntity.GameLogic
MyEntity.EntityId
MyEntity.SyncObject
MyEntity.Storage
MyEntity.EntityStorage
MyEntity.Closed
MyEntity.MarkedForClose
MyEntity.MaxGlassDistSq
MyEntity.Save
MyEntity.IsPreview
MyEntity.IsReadyForReplication
MyEntity.NeedsUpdate
MyEntity.WorldMatrix
MyEntity.Parent
MyEntity.Hierarchy
MyEntity.IMyEntity.Hierarchy
MyEntity.IMyEntity.Physics
MyEntity.InvalidateOnMove
MyEntity.SyncFlag
MyEntity.NeedsWorldMatrix
MyEntity.InScene
MyEntity.IsVolumetric
MyEntity.LocationForHudMarker
MyEntity.Model
MyEntity.ModelCollision
MyEntity.DisplayName
MyEntity.DebugName
MyEntity.Subparts
MyEntity.IsCCDForProjectiles
MyEntity.Pinned
MyEntity.UpdateDuration
MyEntity.IsReplicated
MyEntity.InventoryCount
MyEntity.HasInventory
MyEntity.DisplayNameText
MyEntity.LastSnapshotFlags
MyEntity.Flags
MyEntity.IMyEntity.Parent
MyEntity.IMyEntity.Name
MyEntity.IMyEntity.DebugAsyncLoading
MyEntity.IMyEntity.DisplayName
MyEntity.IMyEntity.MarkedForClose
MyEntity.IMyEntity.Closed
MyEntity.IMyEntity.Model
MyEntity.IMyEntity.GameLogic
MyEntity.IMyEntity.NeedsUpdate
MyEntity.IMyEntity.NearFlag
MyEntity.IMyEntity.CastShadows
MyEntity.IMyEntity.FastCastShadowResolve
MyEntity.IMyEntity.NeedsResolveCastShadow
MyEntity.IMyEntity.MaxGlassDistSq
MyEntity.IMyEntity.NeedsDraw
MyEntity.IMyEntity.NeedsDrawFromParent
MyEntity.IMyEntity.Transparent
MyEntity.IMyEntity.ShadowBoxLod
MyEntity.IMyEntity.SkipIfTooSmall
MyEntity.IMyEntity.Storage
MyEntity.IMyEntity.Visible
MyEntity.IMyEntity.Save
MyEntity.IMyEntity.PersistentFlags
MyEntity.IMyEntity.InScene
MyEntity.IMyEntity.InvalidateOnMove
MyEntity.IMyEntity.IsCCDForProjectiles
MyEntity.IMyEntity.IsVolumetric
MyEntity.IMyEntity.LocalAABB
MyEntity.IMyEntity.LocalAABBHr
MyEntity.IMyEntity.LocalMatrix
MyEntity.IMyEntity.LocalVolume
MyEntity.IMyEntity.LocalVolumeOffset
MyEntity.IMyEntity.LocationForHudMarker
MyEntity.IMyEntity.Synchronized
MyEntity.IMyEntity.WorldMatrix
MyEntity.IMyEntity.WorldMatrixInvScaled
MyEntity.IMyEntity.WorldMatrixNormalizedInv
MyEntity.IMyEntity.ModelCollision
MyEntity.IMyEntity.HasInventory
MyEntity.IMyEntity.InventoryCount
MyEntity.IMyEntity.DisplayName
MyEntity.IMyEntity.Name
MyEntity.IMyEntity.WorldAABB
MyEntity.IMyEntity.WorldAABBHr
MyEntity.IMyEntity.WorldMatrix
MyEntity.IMyEntity.WorldVolume
MyEntity.IMyEntity.WorldVolumeHr
MyEntity.StopPhysicsActivation
MyEntity.OnMarkForClose
MyEntity.OnClose
MyEntity.OnClosing
MyEntity.OnModelRefresh
MyEntity.OnUpdateOnceBeforeNextFrame
MyEntity.OnDebugDraw
MyEntity.OnPhysicsChanged
MyEntity.OnPhysicsComponentChanged
MyEntity.AddedToScene
MyEntity.RemovedFromScene
MyEntity.OnTeleported
MyEntity.IMyEntity.OnClose
MyEntity.IMyEntity.OnClosing
MyEntity.IMyEntity.OnMarkForClose
MyEntity.IMyEntity.OnPhysicsChanged
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MyCubeBlockType]
public class MyCompoundCubeBlock : MyCubeBlock, IMyComponentOwner<MyIDModule>, IMyUpgradableBlock, IMyCubeBlock, IMyEntity, IMyUpgradableBlock, IMyCubeBlock, IMyEntity, IMyDecalProxy

Constructors

MyCompoundCubeBlock()

Declaration
public MyCompoundCubeBlock()

Methods

Add(MySlimBlock, out UInt16)

Adds block to compound (should be used on server only and for generated blocks on local).

Declaration
public bool Add(MySlimBlock block, out ushort id)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.UInt16 id
Returns
Type Description
System.Boolean

true if the block has been addded, otherwise false

Add(UInt16, MySlimBlock)

Adds block to compound (should be used for clients).

Declaration
public bool Add(ushort id, MySlimBlock block)
Parameters
Type Name Description
System.UInt16 id
Sandbox.Game.Entities.Cube.MySlimBlock block
Returns
Type Description
System.Boolean

true if the block has been addded, otherwise false

CanAddBlock(MyCubeBlockDefinition, Nullable<MyBlockOrientation>, Int32, Boolean)

Declaration
public bool CanAddBlock(MyCubeBlockDefinition definition, Nullable<MyBlockOrientation> orientation, int multiBlockId = 0, bool ignoreSame = false)
Parameters
Type Name Description
MyCubeBlockDefinition definition
System.Nullable<MyBlockOrientation> orientation
System.Int32 multiBlockId
System.Boolean ignoreSame
Returns
Type Description
System.Boolean

CanAddBlock(MySlimBlock)

Declaration
public bool CanAddBlock(MySlimBlock block)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
Returns
Type Description
System.Boolean

CanAddBlocks(MyCubeBlockDefinition, MyBlockOrientation, MyCubeBlockDefinition, MyBlockOrientation)

Declaration
public static bool CanAddBlocks(MyCubeBlockDefinition definition, MyBlockOrientation orientation, MyCubeBlockDefinition otherDefinition, MyBlockOrientation otherOrientation)
Parameters
Type Name Description
MyCubeBlockDefinition definition
MyBlockOrientation orientation
MyCubeBlockDefinition otherDefinition
MyBlockOrientation otherOrientation
Returns
Type Description
System.Boolean

Closing()

Declaration
protected override void Closing()
Overrides
MyCubeBlock.Closing()

ConnectionAllowed(ref Vector3I, ref Vector3I, MyCubeBlockDefinition)

Declaration
public override bool ConnectionAllowed(ref Vector3I otherBlockPos, ref Vector3I faceNormal, MyCubeBlockDefinition def)
Parameters
Type Name Description
Vector3I otherBlockPos
Vector3I faceNormal
MyCubeBlockDefinition def
Returns
Type Description
System.Boolean
Overrides
MyCubeBlock.ConnectionAllowed(ref Vector3I, ref Vector3I, MyCubeBlockDefinition)

ConnectionAllowed(ref Vector3I, ref Vector3I, ref Vector3I, MyCubeBlockDefinition)

Declaration
public override bool ConnectionAllowed(ref Vector3I otherBlockMinPos, ref Vector3I otherBlockMaxPos, ref Vector3I faceNormal, MyCubeBlockDefinition def)
Parameters
Type Name Description
Vector3I otherBlockMinPos
Vector3I otherBlockMaxPos
Vector3I faceNormal
MyCubeBlockDefinition def
Returns
Type Description
System.Boolean
Overrides
MyCubeBlock.ConnectionAllowed(ref Vector3I, ref Vector3I, ref Vector3I, MyCubeBlockDefinition)

CreateBuilder(List<MyObjectBuilder_CubeBlock>)

Returns compound cube block builder which includes given blocks.

Declaration
public static MyObjectBuilder_CompoundCubeBlock CreateBuilder(List<MyObjectBuilder_CubeBlock> cubeBlockBuilders)
Parameters
Type Name Description
System.Collections.Generic.List<MyObjectBuilder_CubeBlock> cubeBlockBuilders
Returns
Type Description
MyObjectBuilder_CompoundCubeBlock

CreateBuilder(MyObjectBuilder_CubeBlock)

Returns compound cube block builder which includes the given block.

Declaration
public static MyObjectBuilder_CompoundCubeBlock CreateBuilder(MyObjectBuilder_CubeBlock cubeBlockBuilder)
Parameters
Type Name Description
MyObjectBuilder_CubeBlock cubeBlockBuilder
Returns
Type Description
MyObjectBuilder_CompoundCubeBlock

GetBlock(UInt16)

Declaration
public MySlimBlock GetBlock(ushort id)
Parameters
Type Name Description
System.UInt16 id
Returns
Type Description
Sandbox.Game.Entities.Cube.MySlimBlock

GetBlockId(MySlimBlock)

Declaration
public Nullable<ushort> GetBlockId(MySlimBlock block)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
Returns
Type Description
System.Nullable<System.UInt16>

GetBlocks()

Declaration
public ListReader<MySlimBlock> GetBlocks()
Returns
Type Description
ListReader<Sandbox.Game.Entities.Cube.MySlimBlock>

GetBlocksCount()

Declaration
public int GetBlocksCount()
Returns
Type Description
System.Int32

GetCompoundCubeBlockDefinition()

Declaration
public static MyCubeBlockDefinition GetCompoundCubeBlockDefinition()
Returns
Type Description
MyCubeBlockDefinition

GetGeometryLocalBox()

Declaration
public override BoundingBox GetGeometryLocalBox()
Returns
Type Description
BoundingBox
Overrides
MyCubeBlock.GetGeometryLocalBox()

GetIntersectionWithLine(ref LineD, out Nullable<MyIntersectionResultLineTriangleEx>, out UInt16, IntersectionFlags, Boolean, Boolean)

Declaration
public bool GetIntersectionWithLine(ref LineD line, out Nullable<MyIntersectionResultLineTriangleEx> t, out ushort blockId, IntersectionFlags flags, bool checkZFight = false, bool ignoreGenerated = false)
Parameters
Type Name Description
LineD line
System.Nullable<VRage.Game.Models.MyIntersectionResultLineTriangleEx> t
System.UInt16 blockId
IntersectionFlags flags
System.Boolean checkZFight
System.Boolean ignoreGenerated
Returns
Type Description
System.Boolean

GetIntersectionWithLine_FullyBuiltProgressModels(ref LineD, out Nullable<MyIntersectionResultLineTriangleEx>, out UInt16, IntersectionFlags, Boolean, Boolean)

Calculates intersected block with all models replaced by final models. Useful for construction/deconstruction when models are made from wooden construction.

Declaration
public bool GetIntersectionWithLine_FullyBuiltProgressModels(ref LineD line, out Nullable<MyIntersectionResultLineTriangleEx> t, out ushort blockId, IntersectionFlags flags, bool checkZFight = false, bool ignoreGenerated = false)
Parameters
Type Name Description
LineD line
System.Nullable<VRage.Game.Models.MyIntersectionResultLineTriangleEx> t
System.UInt16 blockId
IntersectionFlags flags
System.Boolean checkZFight
System.Boolean ignoreGenerated
Returns
Type Description
System.Boolean

GetMass()

Declaration
public override float GetMass()
Returns
Type Description
System.Single
Overrides
MyCubeBlock.GetMass()

GetObjectBuilderCubeBlock(Boolean)

Declaration
public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false)
Parameters
Type Name Description
System.Boolean copy
Returns
Type Description
MyObjectBuilder_CubeBlock
Overrides
MyCubeBlock.GetObjectBuilderCubeBlock(Boolean)

Init(MyObjectBuilder_CubeBlock, MyCubeGrid)

Declaration
public override void Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
Parameters
Type Name Description
MyObjectBuilder_CubeBlock objectBuilder
MyCubeGrid cubeGrid
Overrides
MyCubeBlock.Init(MyObjectBuilder_CubeBlock, MyCubeGrid)

IsCompoundEnabled(MyCubeBlockDefinition)

Declaration
public static bool IsCompoundEnabled(MyCubeBlockDefinition blockDefinition)
Parameters
Type Name Description
MyCubeBlockDefinition blockDefinition
Returns
Type Description
System.Boolean

OnAddedToScene(Object)

Declaration
public override void OnAddedToScene(object source)
Parameters
Type Name Description
System.Object source
Overrides
MyCubeBlock.OnAddedToScene(Object)

OnCubeGridChanged(MyCubeGrid)

Declaration
public override void OnCubeGridChanged(MyCubeGrid oldGrid)
Parameters
Type Name Description
MyCubeGrid oldGrid
Overrides
MyCubeBlock.OnCubeGridChanged(MyCubeGrid)

OnRemovedFromScene(Object)

Declaration
public override void OnRemovedFromScene(object source)
Parameters
Type Name Description
System.Object source
Overrides
MyCubeBlock.OnRemovedFromScene(Object)

Remove(MySlimBlock, Boolean)

Declaration
public bool Remove(MySlimBlock block, bool merged = false)
Parameters
Type Name Description
Sandbox.Game.Entities.Cube.MySlimBlock block
System.Boolean merged
Returns
Type Description
System.Boolean

Remove(UInt16, Boolean)

Declaration
public bool Remove(ushort blockId, bool merged = false)
Parameters
Type Name Description
System.UInt16 blockId
System.Boolean merged
Returns
Type Description
System.Boolean

UpdateVisual()

Declaration
public override void UpdateVisual()
Overrides
MyCubeBlock.UpdateVisual()

Explicit Interface Implementations

IMyDecalProxy.AddDecals(ref MyHitInfo, MyStringHash, Vector3, Object, IMyDecalHandler, MyStringHash, MyStringHash, Boolean, MyDecalFlags, Int32, List<UInt32>)

Declaration
void IMyDecalProxy.AddDecals(ref MyHitInfo hitInfo, MyStringHash source, Vector3 forwardDirection, object customdata, IMyDecalHandler decalHandler, MyStringHash physicalMaterial, MyStringHash voxelMaterial, bool isTrail, MyDecalFlags flags, int aliveUntil, List<uint> decals)
Parameters
Type Name Description
MyHitInfo hitInfo
MyStringHash source
Vector3 forwardDirection
System.Object customdata
IMyDecalHandler decalHandler
MyStringHash physicalMaterial
MyStringHash voxelMaterial
System.Boolean isTrail
VRageRender.MyDecalFlags flags
System.Int32 aliveUntil
System.Collections.Generic.List<System.UInt32> decals

Implements

IMyComponentOwner<T>
IMyUpgradableBlock
IMyCubeBlock
IMyEntity
IMyUpgradableBlock
IMyCubeBlock
IMyEntity
IMyDecalProxy

Extension Methods

MyEntityInventoryOwnerExtensions.InventoryOwnerType(MyEntity)
MyEntityExtensions.GetPhysicsBody(MyEntity)
MyEntityExtensions.UpdateGamePruningStructure(MyEntity)
MyEntityExtensions.AddToGamePruningStructure(MyEntity)
MyEntityExtensions.RemoveFromGamePruningStructure(MyEntity)
MyEntityExtensions.EntityFactoryCreateObjectBuilder(MyEntity)
MyEntityExtensions.CreateDefaultSyncEntity(MyEntity)
MyEntityExtensions.AddNodeToWeldingGroups(MyEntity)
MyEntityExtensions.RemoveNodeFromWeldingGroups(MyEntity)
MyEntityExtensions.GetWeldingGroupNodes(MyEntity, List<MyEntity>)
MyEntityExtensions.WeldingGroupExists(MyEntity)
MyEntityExtensions.ProceduralWorldGeneratorTrackEntity(MyEntity)
MyEntityExtensions.TryGetInventory(MyEntity, out MyInventoryBase)
MyEntityExtensions.TryGetInventory(MyEntity, out MyInventory)
MyEntityExtensions.GetInventory(MyEntity, Int32)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾