Show / Hide Table of Contents

Class MyGamePruningStructure

Inheritance
System.Object
MySessionComponentBase
MyGamePruningStructure
Inherited Members
MySessionComponentBase.DebugName
MySessionComponentBase.Priority
MySessionComponentBase.ComponentType
MySessionComponentBase.Session
MySessionComponentBase.UpdatedBeforeInit()
MySessionComponentBase.SetUpdateOrder(MyUpdateOrder)
MySessionComponentBase.InitFromDefinition(MySessionComponentDefinition)
MySessionComponentBase.Init(MyObjectBuilder_SessionComponent)
MySessionComponentBase.GetObjectBuilder()
MySessionComponentBase.AfterLoadData()
MySessionComponentBase.UnloadDataConditional()
MySessionComponentBase.LoadData()
MySessionComponentBase.UnloadData()
MySessionComponentBase.SaveData()
MySessionComponentBase.BeforeStart()
MySessionComponentBase.UpdateBeforeSimulation()
MySessionComponentBase.UpdateAfterSimulation()
MySessionComponentBase.UpdatingStopped()
MySessionComponentBase.HandleInput()
MySessionComponentBase.ToString()
MySessionComponentBase.UpdateOrder
MySessionComponentBase.ObjectBuilderType
MySessionComponentBase.ModContext
MySessionComponentBase.Loaded
MySessionComponentBase.Initialized
MySessionComponentBase.UpdateOnPause
MySessionComponentBase.IsServerOnly
MySessionComponentBase.Definition
MySessionComponentBase.Dependencies
MySessionComponentBase.IsRequiredByGame
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MySessionComponentDescriptor]
public sealed class MyGamePruningStructure : MySessionComponentBase, IMyUserInputComponent

Constructors

MyGamePruningStructure()

Declaration
public MyGamePruningStructure()

Properties

Instance

Declaration
public static MyGamePruningStructure Instance { get; }
Property Value
Type Description
MyGamePruningStructure

Methods

Add(MyEntity)

Declaration
public static void Add(MyEntity entity)
Parameters
Type Name Description
MyEntity entity

AddEntity(MyEntity)

Declaration
public void AddEntity(MyEntity entity)
Parameters
Type Name Description
MyEntity entity

AnyVoxelMap(ref BoundingBoxD)

Declaration
public bool AnyVoxelMap(ref BoundingBoxD box)
Parameters
Type Name Description
BoundingBoxD box
Returns
Type Description
System.Boolean

AnyVoxelMapInBox(ref BoundingBoxD)

Declaration
public static bool AnyVoxelMapInBox(ref BoundingBoxD box)
Parameters
Type Name Description
BoundingBoxD box
Returns
Type Description
System.Boolean

Draw()

Declaration
public override void Draw()
Overrides
MySessionComponentBase.Draw()

GetAllEntities(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public void GetAllEntities(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllEntities(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)

Declaration
public void GetAllEntities(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllEntities(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)

Declaration
public void GetAllEntities(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
Type Name Description
LineD ray
System.Collections.Generic.List<MyLineSegmentOverlapResult<MyEntity>> result
MyEntityQueryType qtype

GetAllEntities(ref MyOrientedBoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public void GetAllEntities(ref MyOrientedBoundingBoxD obb, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
MyOrientedBoundingBoxD obb
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public static void GetAllEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllEntitiesInOBB(ref MyOrientedBoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public static void GetAllEntitiesInOBB(ref MyOrientedBoundingBoxD obb, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
MyOrientedBoundingBoxD obb
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllEntitiesInRay(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)

Declaration
public static void GetAllEntitiesInRay(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
Type Name Description
LineD ray
System.Collections.Generic.List<MyLineSegmentOverlapResult<MyEntity>> result
MyEntityQueryType qtype

GetAllEntitiesInSphere(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)

Declaration
public static void GetAllEntitiesInSphere(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllTopMostEntitiesInSphere(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)

Declaration
public static void GetAllTopMostEntitiesInSphere(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllTopMostStaticEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public static void GetAllTopMostStaticEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetAllVoxelMapsInBox(ref BoundingBoxD, List<MyVoxelBase>)

Declaration
public static void GetAllVoxelMapsInBox(ref BoundingBoxD box, List<MyVoxelBase> result)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyVoxelBase> result

GetAllVoxelMapsInSphere(ref BoundingSphereD, List<MyVoxelBase>)

Declaration
public static void GetAllVoxelMapsInSphere(ref BoundingSphereD sphere, List<MyVoxelBase> result)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.List<MyVoxelBase> result

GetAproximateDynamicClusters(ref BoundingBoxD, Double, List<BoundingBoxD>)

Declaration
public void GetAproximateDynamicClusters(ref BoundingBoxD container, double clusterSize, List<BoundingBoxD> clusters)
Parameters
Type Name Description
BoundingBoxD container
System.Double clusterSize
System.Collections.Generic.List<BoundingBoxD> clusters

GetAproximateDynamicClustersForSize(ref BoundingBoxD, Double, List<BoundingBoxD>)

Declaration
public static void GetAproximateDynamicClustersForSize(ref BoundingBoxD container, double clusterSize, List<BoundingBoxD> clusters)
Parameters
Type Name Description
BoundingBoxD container
System.Double clusterSize
System.Collections.Generic.List<BoundingBoxD> clusters

GetAproximateDynamicClustersForSizeDebug(ref BoundingBoxD, Double, List<BoundingBoxD>)

Declaration
public static void GetAproximateDynamicClustersForSizeDebug(ref BoundingBoxD container, double clusterSize, List<BoundingBoxD> clusters)
Parameters
Type Name Description
BoundingBoxD container
System.Double clusterSize
System.Collections.Generic.List<BoundingBoxD> clusters

GetClosestPlanet(ref BoundingBoxD)

Declaration
public static MyPlanet GetClosestPlanet(ref BoundingBoxD box)
Parameters
Type Name Description
BoundingBoxD box
Returns
Type Description
MyPlanet

GetClosestPlanet(Vector3D)

Get the closest planet overlapping a position.
This will not return anything if the position is not within the bounding box of the planet.

Declaration
public static MyPlanet GetClosestPlanet(Vector3D position)
Parameters
Type Name Description
Vector3D position

position

Returns
Type Description
MyPlanet

GetEntityAABB(MyEntity)

Declaration
public static BoundingBoxD GetEntityAABB(MyEntity entity)
Parameters
Type Name Description
MyEntity entity
Returns
Type Description
BoundingBoxD

GetPlanet(ref BoundingBoxD)

Declaration
public MyPlanet GetPlanet(ref BoundingBoxD box)
Parameters
Type Name Description
BoundingBoxD box
Returns
Type Description
MyPlanet

GetPlanet(Vector3D)

Declaration
public MyPlanet GetPlanet(Vector3D position)
Parameters
Type Name Description
Vector3D position
Returns
Type Description
MyPlanet

GetTopMostEntities(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public void GetTopMostEntities(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetTopMostEntities(ref BoundingSphereD, List<MyEntity>, MyEntityQueryType)

Declaration
public void GetTopMostEntities(ref BoundingSphereD sphere, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetTopMostEntities(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)

Declaration
public void GetTopMostEntities(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
Type Name Description
LineD ray
System.Collections.Generic.List<MyLineSegmentOverlapResult<MyEntity>> result
MyEntityQueryType qtype

GetTopmostEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public static void GetTopmostEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetTopMostEntitiesInBox(ref BoundingBoxD, List<MyEntity>, MyEntityQueryType)

Declaration
public static void GetTopMostEntitiesInBox(ref BoundingBoxD box, List<MyEntity> result, MyEntityQueryType qtype)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyEntity> result
MyEntityQueryType qtype

GetTopmostEntitiesOverlappingRay(ref LineD, List<MyLineSegmentOverlapResult<MyEntity>>, MyEntityQueryType)

Declaration
public static void GetTopmostEntitiesOverlappingRay(ref LineD ray, List<MyLineSegmentOverlapResult<MyEntity>> result, MyEntityQueryType qtype)
Parameters
Type Name Description
LineD ray
System.Collections.Generic.List<MyLineSegmentOverlapResult<MyEntity>> result
MyEntityQueryType qtype

GetVoxelMaps(ref BoundingBoxD, List<MyVoxelBase>)

Declaration
public void GetVoxelMaps(ref BoundingBoxD box, List<MyVoxelBase> result)
Parameters
Type Name Description
BoundingBoxD box
System.Collections.Generic.List<MyVoxelBase> result

GetVoxelMaps(ref BoundingSphereD, List<MyVoxelBase>)

Declaration
public void GetVoxelMaps(ref BoundingSphereD sphere, List<MyVoxelBase> result)
Parameters
Type Name Description
BoundingSphereD sphere
System.Collections.Generic.List<MyVoxelBase> result

GetVoxelMaps(ref LineD, List<MyLineSegmentOverlapResult<MyVoxelBase>>)

Declaration
public void GetVoxelMaps(ref LineD ray, List<MyLineSegmentOverlapResult<MyVoxelBase>> result)
Parameters
Type Name Description
LineD ray
System.Collections.Generic.List<MyLineSegmentOverlapResult<MyVoxelBase>> result

GetVoxelMapsOverlappingRay(ref LineD, List<MyLineSegmentOverlapResult<MyVoxelBase>>)

Declaration
public static void GetVoxelMapsOverlappingRay(ref LineD ray, List<MyLineSegmentOverlapResult<MyVoxelBase>> result)
Parameters
Type Name Description
LineD ray
System.Collections.Generic.List<MyLineSegmentOverlapResult<MyVoxelBase>> result

Move(MyEntity)

Declaration
public static void Move(MyEntity entity)
Parameters
Type Name Description
MyEntity entity

MoveEntity(MyEntity)

Declaration
public void MoveEntity(MyEntity entity)
Parameters
Type Name Description
MyEntity entity

Remove(MyEntity)

Declaration
public static void Remove(MyEntity entity)
Parameters
Type Name Description
MyEntity entity

RemoveEntity(MyEntity)

Declaration
public void RemoveEntity(MyEntity entity)
Parameters
Type Name Description
MyEntity entity

Simulate()

Declaration
public override void Simulate()
Overrides
MySessionComponentBase.Simulate()
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾