Show / Hide Table of Contents

Class MyEnvironmentSector

Inheritance
System.Object
MyEntity
MyEnvironmentSector
Implements
IMyEntity
IMyEntity
Inherited Members
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.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.InitComponents()
MyEntity.InitComponentsForTesting()
MyEntity.Components_ComponentAdded(Type, IMyEntityComponentBase)
MyEntity.Components_ComponentRemoved(Type, IMyEntityComponentBase)
MyEntity.OnCreateSync()
MyEntity.CreateSync()
MyEntity.GetSubpart(String)
MyEntity.TryGetSubpart(String, MyEntitySubpart)
MyEntity.UpdateOnceBeforeFrame()
MyEntity.UpdateBeforeSimulation()
MyEntity.Simulate()
MyEntity.UpdateAfterSimulation()
MyEntity.UpdatingStopped()
MyEntity.UpdateBeforeSimulation10()
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.GetIntersectionWithLine(LineD, Nullable<MyIntersectionResultLineTriangleEx>, 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.OnAddedToScene(Object)
MyEntity.OnReplicationStarted()
MyEntity.OnReplicationEnded()
MyEntity.SetFadeOut(Boolean)
MyEntity.OnRemovedFromScene(Object)
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.RefreshModels(String, String)
MyEntity.Delete()
MyEntity.BeforeDelete()
MyEntity.GetObjectBuilder(Boolean)
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.GetInventoryBase(Int32)
MyEntity.GetInventoryBase()
MyEntity.OnInventoryComponentAdded(MyInventoryBase)
MyEntity.OnInventoryComponentRemoved(MyInventoryBase)
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.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.WorldEnvironment
Assembly: Sandbox.Game.dll
Syntax
public class MyEnvironmentSector : MyEntity, IMyEntity, IMyEntity

Constructors

MyEnvironmentSector()

Declaration
public MyEnvironmentSector()

Properties

Bounds

Declaration
public Vector3D[] Bounds { get; }
Property Value
Type Description
Vector3D[]

DataView

Declaration
public MyEnvironmentDataView DataView { get; }
Property Value
Type Description
MyEnvironmentDataView

EnvironmentDefinition

Declaration
public MyWorldEnvironmentDefinition EnvironmentDefinition { get; }
Property Value
Type Description
Sandbox.Game.WorldEnvironment.Definitions.MyWorldEnvironmentDefinition

HasParallelWorkInProgress

Declaration
public bool HasParallelWorkInProgress { get; }
Property Value
Type Description
System.Boolean

HasParallelWorkPending

Declaration
public bool HasParallelWorkPending { get; }
Property Value
Type Description
System.Boolean

HasPhysics

Declaration
public bool HasPhysics { get; }
Property Value
Type Description
System.Boolean

HasSerialWorkPending

Declaration
public bool HasSerialWorkPending { get; }
Property Value
Type Description
System.Boolean

IsClosed

Declaration
public bool IsClosed { get; }
Property Value
Type Description
System.Boolean

IsLoaded

Declaration
public bool IsLoaded { get; }
Property Value
Type Description
System.Boolean

IsPendingLodSwitch

Declaration
public bool IsPendingLodSwitch { get; }
Property Value
Type Description
System.Boolean

IsPendingPhysicsToggle

Declaration
public bool IsPendingPhysicsToggle { get; }
Property Value
Type Description
System.Boolean

IsPinned

Declaration
public bool IsPinned { get; }
Property Value
Type Description
System.Boolean

LodLevel

Declaration
public int LodLevel { get; }
Property Value
Type Description
System.Int32

Owner

Declaration
public IMyEnvironmentOwner Owner { get; }
Property Value
Type Description
IMyEnvironmentOwner

SectorCenter

Declaration
public Vector3D SectorCenter { get; }
Property Value
Type Description
Vector3D

SectorId

Declaration
public long SectorId { get; }
Property Value
Type Description
System.Int64

Methods

add_OnContactPoint(MySectorContactEvent)

Declaration
public void add_OnContactPoint(MySectorContactEvent value)
Parameters
Type Name Description
MySectorContactEvent value

BuildInstanceBuffers(Int32)

Declaration
public void BuildInstanceBuffers(int lod)
Parameters
Type Name Description
System.Int32 lod

CancelParallel()

Declaration
public void CancelParallel()

Close()

Declaration
public void Close()

Closing()

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

DebugDraw()

Declaration
public void DebugDraw()

DoParallelWork()

Declaration
public void DoParallelWork()

DoSerialWork()

Declaration
public bool DoSerialWork()
Returns
Type Description
System.Boolean

EnableItem(Int32, Boolean)

Declaration
public void EnableItem(int itemId, bool enabled)
Parameters
Type Name Description
System.Int32 itemId
System.Boolean enabled

EnablePhysics(Boolean)

Declaration
public void EnablePhysics(bool physics)
Parameters
Type Name Description
System.Boolean physics

ForceLoadDataView()

Declaration
public void ForceLoadDataView()

GetDefinition(Int32)

Declaration
public MyPhysicalModelDefinition GetDefinition(int itemId)
Parameters
Type Name Description
System.Int32 itemId
Returns
Type Description
MyPhysicalModelDefinition

GetEnvironmentalItemDefinitionId(Int32)

Declaration
public string GetEnvironmentalItemDefinitionId(int itemId)
Parameters
Type Name Description
System.Int32 itemId
Returns
Type Description
System.String

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

GetItemDefinitionId(Int32)

Declaration
public int GetItemDefinitionId(int itemId)
Parameters
Type Name Description
System.Int32 itemId
Returns
Type Description
System.Int32

GetItemFromShapeKey(UInt32)

Declaration
public int GetItemFromShapeKey(uint shapekey)
Parameters
Type Name Description
System.UInt32 shapekey
Returns
Type Description
System.Int32

GetItemInfo(Int32, out UInt32, out Int32)

Declaration
public void GetItemInfo(int itemId, out uint renderObjectId, out int instanceIndex)
Parameters
Type Name Description
System.Int32 itemId
System.UInt32 renderObjectId
System.Int32 instanceIndex

GetModelIndex(Int32)

Declaration
public short GetModelIndex(int itemId)
Parameters
Type Name Description
System.Int32 itemId
Returns
Type Description
System.Int16

GetModule(Type)

Declaration
public IMyEnvironmentModuleProxy GetModule(Type moduleType)
Parameters
Type Name Description
System.Type moduleType
Returns
Type Description
IMyEnvironmentModuleProxy

GetModule<T>()

Declaration
public T GetModule<T>()
    where T : class, IMyEnvironmentModuleProxy
Returns
Type Description
T
Type Parameters
Name Description
T

GetModuleForDefinition<T>(MyRuntimeEnvironmentItemInfo)

Declaration
public T GetModuleForDefinition<T>(MyRuntimeEnvironmentItemInfo itemEnvDefinition)
    where T : class, IMyEnvironmentModuleProxy
Parameters
Type Name Description
Sandbox.Game.WorldEnvironment.Definitions.MyRuntimeEnvironmentItemInfo itemEnvDefinition
Returns
Type Description
T
Type Parameters
Name Description
T

Init(IMyEnvironmentOwner, ref MyEnvironmentSectorParameters)

Declaration
public void Init(IMyEnvironmentOwner owner, ref MyEnvironmentSectorParameters parameters)
Parameters
Type Name Description
IMyEnvironmentOwner owner
MyEnvironmentSectorParameters parameters

OnItemChange(Int32, Int16)

Declaration
public void OnItemChange(int index, short newModelIndex)
Parameters
Type Name Description
System.Int32 index
System.Int16 newModelIndex

OnItemsChange(Int32, List<Int32>, Int16)

Declaration
public void OnItemsChange(int sector, List<int> indices, short newModelIndex)
Parameters
Type Name Description
System.Int32 sector
System.Collections.Generic.List<System.Int32> indices
System.Int16 newModelIndex

RaiseItemEvent<TModule>(TModule, Int32, Boolean)

Declaration
public void RaiseItemEvent<TModule>(TModule module, int item, bool fromClient = false)
    where TModule : IMyEnvironmentModuleProxy
Parameters
Type Name Description
TModule module
System.Int32 item
System.Boolean fromClient
Type Parameters
Name Description
TModule

RaiseItemEvent<TModule, TArgument>(TModule, Int32, TArgument, Boolean)

Declaration
public void RaiseItemEvent<TModule, TArgument>(TModule module, int item, TArgument eventData, bool fromClient = false)
    where TModule : IMyEnvironmentModuleProxy
Parameters
Type Name Description
TModule module
System.Int32 item
TArgument eventData
System.Boolean fromClient
Type Parameters
Name Description
TModule
TArgument

RaiseOnLodCommitEvent(Int32)

Declaration
public void RaiseOnLodCommitEvent(int lod)
Parameters
Type Name Description
System.Int32 lod

RaiseOnPhysicsCommitEvent(Boolean)

Declaration
public void RaiseOnPhysicsCommitEvent(bool enabled)
Parameters
Type Name Description
System.Boolean enabled

ReEnableSectorItem(Int32)

Declaration
public void ReEnableSectorItem(int itemId)
Parameters
Type Name Description
System.Int32 itemId

remove_OnContactPoint(MySectorContactEvent)

Declaration
public void remove_OnContactPoint(MySectorContactEvent value)
Parameters
Type Name Description
MySectorContactEvent value

SetLod(Int32)

Declaration
public void SetLod(int lod)
Parameters
Type Name Description
System.Int32 lod

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
MyEntity.ToString()

Events

OnContactPoint

Declaration
public event MySectorContactEvent OnContactPoint
Event Type
Type Description
MySectorContactEvent

OnLodCommit

Declaration
public event Action<MyEnvironmentSector, int> OnLodCommit
Event Type
Type Description
System.Action<MyEnvironmentSector, System.Int32>

OnPhysicsClose

Declaration
public event Action OnPhysicsClose
Event Type
Type Description
System.Action

OnPhysicsCommit

Declaration
public event Action<MyEnvironmentSector, bool> OnPhysicsCommit
Event Type
Type Description
System.Action<MyEnvironmentSector, System.Boolean>

Implements

IMyEntity
IMyEntity

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)
MyEnvironmentSectorExtensions.HasWorkPending(MyEnvironmentSector)
MyEnvironmentSectorExtensions.DisableItemsInBox(MyEnvironmentSector, ref BoundingBoxD)
MyEnvironmentSectorExtensions.GetItemsInAabb(MyEnvironmentSector, ref BoundingBoxD, List<Int32>)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾