Space Engineers
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Properties | List of all members
Sandbox.Game.Entities.MyPlanet Class Reference
Inheritance diagram for Sandbox.Game.Entities.MyPlanet:
Sandbox.Game.Entities.MyVoxelBase Sandbox.Game.Entities.IMyOxygenProvider VRage.Game.Entity.MyEntity Sandbox.Engine.Voxels.IMyVoxelDrawable VRage.ModAPI.IMyVoxelBase VRage.Game.ModAPI.Interfaces.IMyDecalProxy VRage.Network.IMyEventProxy VRage.ModAPI.IMyEntity VRage.ModAPI.IMyEntity VRage.Game.ModAPI.Interfaces.IMyDecalProxy VRage.Network.IMyEventOwner VRage.Game.ModAPI.Ingame.IMyEntity VRage.Game.ModAPI.Ingame.IMyEntity

Public Member Functions

float GetOxygenForPosition (Vector3D worldPoint)
 
float GetAirDensity (Vector3D worldPosition)
 
 MyPlanet ()
 
override void Init (MyObjectBuilder_EntityBase builder)
 
override void Init (MyObjectBuilder_EntityBase builder, Sandbox.Engine.Voxels.IMyStorage storage)
 
void Init (MyPlanetInitArguments arguments)
 
override MyObjectBuilder_EntityBase GetObjectBuilder (bool copy=false)
 Gets object builder from object. More...
 
override void OnAddedToScene (object source)
 Called when [activated] which for entity means that was added to scene. More...
 
override void OnRemovedFromScene (object source)
 
override void UpdateOnceBeforeFrame ()
 
override void UpdateAfterSimulation10 ()
 
override void BeforePaste ()
 
override void AfterPaste ()
 
override void UpdateAfterSimulation100 ()
 
bool CorrectSpawnLocation2 (ref Vector3D position, double radius, bool resumeSearch=false)
 
void CorrectSpawnLocation (ref Vector3D position, double radius)
 
Vector3D GetClosestSurfacePointGlobal (ref Vector3D globalPos)
 
Vector3D GetClosestSurfacePointLocal (ref Vector3 localPos)
 
override void DebugDrawPhysics ()
 Draw physical representation of entity More...
 
override int GetOrePriority ()
 
int GetInstanceHash ()
 
void PrefetchShapeOnRay (ref LineD ray)
 
void AddChildEntity (MyEntity child)
 
void RemoveChildEntity (MyEntity child)
 
- Public Member Functions inherited from Sandbox.Game.Entities.MyVoxelBase
delegate void StorageChanged (MyVoxelBase storage, Vector3I minVoxelChanged, Vector3I maxVoxelChanged, MyStorageDataTypeFlags changedData)
 
bool IsBoxIntersectingBoundingBoxOfThisVoxelMap (ref BoundingBoxD boundingBox)
 
void Init (string storageName, Sandbox.Engine.Voxels.IMyStorage storage, Vector3D positionMinCorner)
 
virtual void Init (string storageName, Sandbox.Engine.Voxels.IMyStorage storage, MatrixD worldMatrix)
 
override MyObjectBuilder_EntityBase GetObjectBuilder (bool copy=false)
 Gets object builder from object. More...
 
float GetVoxelContentInBoundingBox_Obsolete (BoundingBoxD worldAabb, out float cellCount)
 
MyTuple< float, float > GetVoxelContentInBoundingBox_Fast (BoundingBoxD localAabb, MatrixD worldMatrix)
 Calculates amount of volume of a bounding box in voxels. More...
 
override bool GetIntersectionWithLine (ref LineD worldLine, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?t, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
override bool GetIntersectionWithLine (ref LineD worldLine, out Vector3D?v, bool useCollisionModel=true, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
bool AreAllAabbCornersInside (ref MatrixD aabbWorldTransform, BoundingBoxD aabb)
 
bool IsAnyAabbCornerInside (ref MatrixD aabbWorldTransform, BoundingBoxD aabb)
 
unsafe int CountPointsInside (Vector3D *worldPoints, int pointCount)
 
virtual bool IsOverlapOverThreshold (BoundingBoxD worldAabb, float thresholdPercentage=0.9f)
 Returns true if the bounding box contains at least the specified amount (as a percent) of voxel material. More...
 
override bool DoOverlapSphereTest (float sphereRadius, Vector3D spherePos)
 
bool GetContainedVoxelCoords (ref BoundingBoxD worldAabb, out Vector3I min, out Vector3I max)
 
void RequestVoxelCutoutSphere (Vector3D center, float radius, bool createDebris, bool damage)
 
void RequestVoxelOperationCapsule (Vector3D A, Vector3D B, float radius, MatrixD Transformation, byte material, OperationType Type)
 
void RequestVoxelOperationSphere (Vector3D center, float radius, byte material, OperationType Type)
 
void RequestVoxelOperationBox (BoundingBoxD box, MatrixD Transformation, byte material, OperationType Type)
 
void RequestVoxelOperationRamp (BoundingBoxD box, Vector3D rampNormal, double rampNormalW, MatrixD Transformation, byte material, OperationType Type)
 
void RequestVoxelOperationElipsoid (Vector3 radius, MatrixD Transformation, byte material, OperationType Type)
 
void CreateVoxelMeteorCrater (Vector3D center, float radius, Vector3 normal, MyVoxelMaterialDefinition material)
 
void GetFilledStorageBounds (out Vector3I min, out Vector3I max)
 
MyVoxelRangeType GetVoxelRangeTypeInBoundingBox (BoundingBoxD worldAabb)
 
ContainmentType IntersectStorage (ref BoundingBox box, bool lazy=true)
 
void SendVoxelCloseRequest ()
 Use only for cut request More...
 
- Public Member Functions inherited from VRage.Game.Entity.MyEntity
void DebugDraw ()
 
void DebugDrawInvalidTriangles ()
 
void AddDebugRenderComponent (MyDebugRenderComponentBase render)
 
void ClearDebugRenderComponents ()
 
MyEntity GetTopMostParent (Type type=null)
 Return top most parent of this entity More...
 
virtual List< MyHudEntityParamsGetHudParams (bool allowBlink)
 
 MyEntity ()
 
 MyEntity (bool initComponents=true)
 Initializes a new instance of the MyEntity class. More...
 
void CreateSync ()
 
MyEntitySubpart GetSubpart (string name)
 
bool TryGetSubpart (string name, out MyEntitySubpart subpart)
 
virtual void UpdateBeforeSimulation ()
 
virtual void UpdateAfterSimulation ()
 
virtual void UpdatingStopped ()
 
virtual void UpdateBeforeSimulation10 ()
 Called each 10th frame if registered for update10 More...
 
virtual void UpdateBeforeSimulation100 ()
 Called each 100th frame if registered for update100 More...
 
virtual string GetFriendlyName ()
 
virtual MatrixD GetViewMatrix ()
 
void SetSpeedsAccordingToServerValues ()
 
virtual void SetWorldMatrix (MatrixD worldMatrix, bool forceUpdate=false, bool updateChildren=true)
 
virtual bool GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?t, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
virtual Vector3D GetIntersectionWithLineAndBoundingSphere (ref LineD line, float boundingSphereRadiusMultiplier)
 
virtual bool GetIntersectionWithSphere (ref BoundingSphereD sphere)
 
void GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles)
 
double GetSmallestDistanceBetweenCameraAndBoundingSphere ()
 
double GetLargestDistanceBetweenCameraAndBoundingSphere ()
 
double GetDistanceBetweenCameraAndBoundingSphere ()
 
double GetDistanceBetweenPlayerPositionAndBoundingSphere ()
 
double GetDistanceBetweenCameraAndPosition ()
 
virtual MyEntity GetBaseEntity ()
 
void AddToGamePruningStructure ()
 
void RemoveFromGamePruningStructure ()
 
void UpdateGamePruningStructure ()
 
void RaisePhysicsChanged ()
 
void HackyComponentInitByMiroPleaseDontUseEver (MyDefinitionId id)
 DONT USE THIS METHOD, EVER! More...
 
virtual void Init (StringBuilder displayName, string model, MyEntity parentObject, float?scale, string modelCollision=null)
 
virtual void RefreshModels (string model, string modelCollision)
 
void Delete ()
 Every object must have this method, but not every phys object must necessarily have something to cleanup More...
 
void Close ()
 This method marks this entity for close which means, that Close will be called after all entities are updated More...
 
virtual void BeforeSave ()
 Called before method GetObjectBuilder, when saving sector More...
 
virtual void PrepareForDraw ()
 Method is called defacto from Update, preparation fo Draw More...
 
void SetEmissiveParts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on entity. More...
 
void SetEmissivePartsForSubparts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on all entity subparts. More...
 
override string ToString ()
 
virtual MyInventoryBase GetInventoryBase (int index)
 Search for inventory component with maching index. More...
 
MyInventoryBase GetInventoryBase ()
 Simply get the MyInventoryBase component stored in this entity. More...
 
delegate MyObjectBuilder_EntityBase MyEntityFactoryCreateObjectBuilderDelegate (MyEntity entity)
 
delegate MySyncComponentBase CreateDefaultSyncEntityDelegate (MyEntity thisEntity)
 
delegate bool MyWeldingGroupsGroupExistsDelegate (MyEntity entity)
 
virtual void SerializeControls (BitStream stream)
 
virtual void DeserializeControls (BitStream stream, bool outOfOrder)
 
virtual void ApplyLastControls ()
 
- Public Member Functions inherited from VRage.ModAPI.IMyEntity
bool GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?tri, IntersectionFlags flags)
 
void GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, System.Collections.Generic.List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles)
 

Public Attributes

const int PHYSICS_SECTOR_SIZE_METERS = 1024
 
- Public Attributes inherited from Sandbox.Game.Entities.MyVoxelBase
int VoxelMapPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
bool CreateStorageCopyOnWrite = false
 
- Public Attributes inherited from VRage.Game.Entity.MyEntity
MyDefinitionId DefinitionId = null
 
string Name
 
bool DebugAsyncLoading
 
DebugCreatedBy DebugCreatedBy
 
float m_massChangeForCollisions = 1f
 
Vector3D m_serverPosition = new Vector3D()
 
Quaternion m_serverOrientation = new Quaternion()
 
MatrixD m_serverWorldMatrix = new MatrixD()
 
Vector3 m_serverLinearVelocity
 
Vector3 m_serverAngularVelocity
 
bool m_positionResetFromServer
 
bool SentFromServer
 
int GamePruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
int TopMostPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
bool StaticForPruningStructure = false
 
int TargetPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
Dictionary< IMyReplicable, Action > ReadyForReplicationAction = new Dictionary<IMyReplicable, Action>()
 

Static Public Attributes

static bool RUN_SECTORS = false
 
- Static Public Attributes inherited from VRage.Game.Entity.MyEntity
static Action< MyEntityAddToGamePruningStructureExtCallBack = null
 
static Action< MyEntityRemoveFromGamePruningStructureExtCallBack = null
 
static Action< MyEntityUpdateGamePruningStructureExtCallBack = null
 
static MyEntityFactoryCreateObjectBuilderDelegate MyEntityFactoryCreateObjectBuilderExtCallback = null
 
static CreateDefaultSyncEntityDelegate CreateDefaultSyncEntityExtCallback
 
static Action< MyEntityMyWeldingGroupsAddNodeExtCallback = null
 
static Action< MyEntityMyWeldingGroupsRemoveNodeExtCallback = null
 
static Action< MyEntity, List< MyEntity > > MyWeldingGroupsGetGroupNodesExtCallback = null
 
static MyWeldingGroupsGroupExistsDelegate MyWeldingGroupsGroupExistsExtCallback = null
 
static Action< MyEntityMyProceduralWorldGeneratorTrackEntityExtCallback = null
 
static Action< MyEntityCreateStandardRenderComponentsExtCallback = null
 
static Action< MyComponentContainer, MyObjectBuilderType, MyStringHash, MyObjectBuilder_ComponentContainerInitComponentsExtCallback = null
 
static Func< MyObjectBuilder_EntityBase, bool, MyEntityMyEntitiesCreateFromObjectBuilderExtCallback = null
 

Protected Member Functions

override void Closing ()
 
override void BeforeDelete ()
 
- Protected Member Functions inherited from Sandbox.Game.Entities.MyVoxelBase
virtual void InitVoxelMap (MatrixD worldMatrix, Vector3I size, bool useOffset=true)
 
override void BeforeDelete ()
 
void WorldPositionChanged (object source)
 
- Protected Member Functions inherited from VRage.Game.Entity.MyEntity
virtual bool CanBeAddedToRender ()
 
virtual MySyncComponentBase OnCreateSync ()
 
virtual void ClampToWorld ()
 
virtual void OnInventoryComponentAdded (MyInventoryBase inventory)
 
virtual void OnInventoryComponentRemoved (MyInventoryBase inventory)
 

Properties

float AtmosphereAltitude [get]
 
MyPlanetStorageProvider Provider [get]
 
override MyVoxelBase RootVoxel [get]
 
MyPlanetGeneratorDefinition Generator [get]
 
new Sandbox.Engine.Voxels.IMyStorage Storage [get, set]
 
override Vector3D PositionLeftBottomCorner [get, set]
 
MyPlanetInitArguments GetInitArguments [get]
 
Vector3 AtmosphereWavelengths [get]
 
MyAtmosphereSettings AtmosphereSettings [get, set]
 
float MinimumRadius [get]
 
float AverageRadius [get]
 
float MaximumRadius [get]
 
float AtmosphereRadius [get]
 
bool HasAtmosphere [get]
 
bool SpherizeWithDistance [get]
 
override MyClipmapScaleEnum ScaleGroup [get]
 
- Properties inherited from Sandbox.Game.Entities.MyVoxelBase
Vector3I StorageMin [get]
 
Vector3I StorageMax [get]
 
string StorageName [get, protected set]
 
virtual Sandbox.Engine.Voxels.IMyStorage Storage [get, set]
 
bool DelayRigidBodyCreation [get, set]
 
Vector3I Size [get]
 Size of voxel map (in voxels) More...
 
Vector3I SizeMinusOne [get]
 
Vector3 SizeInMetres [get, protected set]
 Size of voxel map (in metres) More...
 
Vector3 SizeInMetresHalf [get, protected set]
 
virtual Vector3D PositionLeftBottomCorner [get, set]
 Position of left/bottom corner of this voxel map, in world space (not relative to sector) More...
 
Matrix Orientation [get]
 
bool ContentChanged [get, protected set]
 
abstract MyVoxelBase RootVoxel [get]
 Gets root voxel, for asteroids and planets itself. For MyVoxelPhysics, should return owning planet. More...
 
bool BeforeContentChanged [get, protected set]
 
bool CreatedByUser [get, set]
 
string AsteroidName [get, set]
 
virtual MyClipmapScaleEnum ScaleGroup [get]
 
- Properties inherited from VRage.Game.Entity.MyEntity
MyEntityComponentContainer Components [get]
 
MyPositionComponentBase PositionComp [get, set]
 
MyRenderComponentBase Render [get, set]
 
MyGameLogicComponent GameLogic [get, set]
 
long EntityId [get, set]
 Entity id, can be set by subclasses (for example when using pool...) More...
 
MySyncComponentBase SyncObject [get, protected set]
 
MyModStorageComponentBase Storage [get, set]
 
bool Closed [get, protected set]
 
bool MarkedForClose [get, protected set]
 
virtual float MaxGlassDistSq [get]
 
bool Save [get, set]
 
bool IsPreview [get, set]
 
bool IsReadyForReplication [get, set]
 
MyEntityUpdateEnum NeedsUpdate [get, set]
 
MatrixD WorldMatrix [get, set]
 
MyEntity Parent [get]
 Gets or sets the parent. More...
 
MyHierarchyComponent< MyEntityHierarchy [get, set]
 
MyPhysicsComponentBase Physics [get, set]
 Gets the physic component of the entity. More...
 
bool InvalidateOnMove [get, set]
 
bool SyncFlag [get, set]
 
bool InScene [get, set]
 
virtual bool IsVolumetric [get]
 
virtual Vector3D LocationForHudMarker [get]
 
MyModel Model [get]
 
MyModel ModelCollision [get]
 
string DisplayName [get, set]
 
string DebugName [get]
 
Dictionary< string, MyEntitySubpartSubparts [get]
 
virtual bool IsCCDForProjectiles [get]
 
int InventoryCount [get]
 Iterate through inventories and return their count. More...
 
bool HasInventory [get]
 Returns true if this entity has got at least one inventory. Note that one aggregate inventory can contain zero simple inventories => zero will be returned even if GetInventoryBase() != null. More...
 
virtual String DisplayNameText [get, set]
 Display Name for GUI etc. Override in descendant classes. Usually used to display in terminal or inventory controls. More...
 
EntityFlags Flags [get, set]
 
- Properties inherited from VRage.ModAPI.IMyEntity
MyEntityComponentContainer Components [get]
 
MyPhysicsComponentBase Physics [get, set]
 
MyPositionComponentBase PositionComp [get, set]
 
MyRenderComponentBase Render [get, set]
 
MyEntityComponentBase GameLogic [get, set]
 
MyHierarchyComponentBase Hierarchy [get, set]
 
MySyncComponentBase SyncObject [get]
 
MyModStorageComponentBase Storage [get, set]
 Custom storage for mods. Shared with all mods. More...
 
EntityFlags Flags [get, set]
 
long EntityId [get, set]
 
string Name [get, set]
 
bool MarkedForClose [get]
 
bool Closed [get]
 
bool DebugAsyncLoading [get]
 
bool Save [get, set]
 
MyPersistentEntityFlags2 PersistentFlags [get, set]
 
MyEntityUpdateEnum NeedsUpdate [get, set]
 
IMyEntity Parent [get]
 
Matrix LocalMatrix [get, set]
 
bool NearFlag [get, set]
 
bool CastShadows [get, set]
 
bool FastCastShadowResolve [get, set]
 
bool NeedsResolveCastShadow [get, set]
 
float MaxGlassDistSq [get]
 
bool NeedsDraw [get, set]
 
bool NeedsDrawFromParent [get, set]
 
bool Transparent [get, set]
 
bool ShadowBoxLod [get, set]
 
bool SkipIfTooSmall [get, set]
 
bool Visible [get, set]
 
bool InScene [get, set]
 
bool InvalidateOnMove [get]
 
new VRageMath.MatrixD WorldMatrix [get, set]
 
VRageMath.MatrixD WorldMatrixInvScaled [get]
 
VRageMath.MatrixD WorldMatrixNormalizedInv [get]
 
bool IsVolumetric [get]
 
BoundingBox LocalAABB [get, set]
 
BoundingBox LocalAABBHr [get]
 
BoundingSphere LocalVolume [get, set]
 
Vector3 LocalVolumeOffset [get, set]
 
Vector3 LocationForHudMarker [get]
 
bool IsCCDForProjectiles [get]
 
string DisplayName [get, set]
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyEntity
MyEntityComponentContainer Components [get]
 
long EntityId [get]
 
VRageMath.BoundingBoxD WorldAABB [get]
 
VRageMath.BoundingBoxD WorldAABBHr [get]
 
VRageMath.MatrixD WorldMatrix [get]
 
VRageMath.BoundingSphereD WorldVolume [get]
 
VRageMath.BoundingSphereD WorldVolumeHr [get]
 
- Properties inherited from Sandbox.Engine.Voxels.IMyVoxelDrawable
IMyStorage Storage [get]
 
Vector3I Size [get]
 
Vector3D PositionLeftBottomCorner [get]
 
Matrix Orientation [get]
 
Vector3I StorageMin [get]
 
MyRenderComponentBase Render [get]
 
MyClipmapScaleEnum ScaleGroup [get]
 
- Properties inherited from VRage.ModAPI.IMyVoxelBase
IMyStorage Storage [get]
 
VRageMath.Vector3D PositionLeftBottomCorner [get]
 Position of left/bottom corner of this voxel map, in world space (not relative to sector) More...
 
IMyVoxelBase RootVoxel [get]
 Gets root voxel, for asteroids and planets itself. For MyVoxelPhysics, should return owning planet. More...
 
Matrix Orientation [get]
 
string StorageName [get]
 
Vector3I Size [get]
 Size of voxel map (in voxels) More...
 
Vector3 SizeInMetres [get]
 Size of voxel map (in metres) More...
 
Vector3I StorageMin [get]
 
Vector3I StorageMax [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Sandbox.Game.Entities.MyVoxelBase
static bool IsForbiddenEntity (MyEntity entity)
 
- Static Protected Member Functions inherited from VRage.Game.Entity.MyEntity
static void UpdateNamedEmissiveParts (uint renderObjectId, string emissiveName, Color emissivePartColor, float emissivity)
 
- Protected Attributes inherited from Sandbox.Game.Entities.MyVoxelBase
Vector3I m_storageMin = new Vector3I(0, 0, 0)
 
Vector3I m_storageMax
 
Sandbox.Engine.Voxels.IMyStorage m_storage
 
- Protected Attributes inherited from VRage.Game.Entity.MyEntity
List< MyHudEntityParamsm_hudParams
 
MyModel m_modelCollision
 
- Static Protected Attributes inherited from Sandbox.Game.Entities.MyVoxelBase
static MyStorageData m_tempStorage = new MyStorageData()
 
- Events inherited from Sandbox.Game.Entities.MyVoxelBase
StorageChanged RangeChanged
 
- Events inherited from VRage.Game.Entity.MyEntity
Action< MyEntityOnMarkForClose
 This event may not be invoked at all, when calling MyEntities.CloseAll, marking is bypassed More...
 
Action< MyEntityOnClose
 
Action< MyEntityOnClosing
 
Action< MyEntityOnPhysicsChanged
 
- Events inherited from VRage.ModAPI.IMyEntity
Action< IMyEntityOnClose
 
Action< IMyEntityOnClosing
 
Action< IMyEntityOnMarkForClose
 
Action< IMyEntityOnPhysicsChanged
 

Detailed Description

Definition at line 79 of file MyPlanet.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.MyPlanet.MyPlanet ( )
inline

Definition at line 297 of file MyPlanet.cs.

Member Function Documentation

void Sandbox.Game.Entities.MyPlanet.AddChildEntity ( MyEntity  child)
inline

Definition at line 57 of file MyPlanet.Sectors.cs.

override void Sandbox.Game.Entities.MyPlanet.AfterPaste ( )
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 688 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.BeforeDelete ( )
inlineprotectedvirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 547 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.BeforePaste ( )
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 684 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.Closing ( )
inlineprotectedvirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 533 of file MyPlanet.cs.

void Sandbox.Game.Entities.MyPlanet.CorrectSpawnLocation ( ref Vector3D  position,
double  radius 
)
inline

Definition at line 887 of file MyPlanet.cs.

bool Sandbox.Game.Entities.MyPlanet.CorrectSpawnLocation2 ( ref Vector3D  position,
double  radius,
bool  resumeSearch = false 
)
inline
Parameters
resumeSearchDon't modify initial search position
Returns
True if it a safe position is found

Definition at line 830 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.DebugDrawPhysics ( )
inlinevirtual

Draw physical representation of entity

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 941 of file MyPlanet.cs.

float Sandbox.Game.Entities.MyPlanet.GetAirDensity ( Vector3D  worldPosition)
inline

Definition at line 119 of file MyPlanet.cs.

Vector3D Sandbox.Game.Entities.MyPlanet.GetClosestSurfacePointGlobal ( ref Vector3D  globalPos)
inline

Definition at line 917 of file MyPlanet.cs.

Vector3D Sandbox.Game.Entities.MyPlanet.GetClosestSurfacePointLocal ( ref Vector3  localPos)
inline

Definition at line 926 of file MyPlanet.cs.

int Sandbox.Game.Entities.MyPlanet.GetInstanceHash ( )
inline

Definition at line 969 of file MyPlanet.cs.

override MyObjectBuilder_EntityBase Sandbox.Game.Entities.MyPlanet.GetObjectBuilder ( bool  copy = false)
inlinevirtual

Gets object builder from object.

Returns

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 512 of file MyPlanet.cs.

override int Sandbox.Game.Entities.MyPlanet.GetOrePriority ( )
inlinevirtual

We use this to ensure voxels overlapping planets will have priority when spawning debris/ores.

Reimplemented from Sandbox.Game.Entities.MyVoxelBase.

Definition at line 963 of file MyPlanet.cs.

float Sandbox.Game.Entities.MyPlanet.GetOxygenForPosition ( Vector3D  worldPoint)
inline

Implements Sandbox.Game.Entities.IMyOxygenProvider.

Definition at line 109 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.Init ( MyObjectBuilder_EntityBase  builder)
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 307 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.Init ( MyObjectBuilder_EntityBase  builder,
Sandbox.Engine.Voxels.IMyStorage  storage 
)
inlinevirtual

Implements Sandbox.Game.Entities.MyVoxelBase.

Definition at line 312 of file MyPlanet.cs.

void Sandbox.Game.Entities.MyPlanet.Init ( MyPlanetInitArguments  arguments)
inline

Definition at line 405 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.OnAddedToScene ( object  source)
inlinevirtual

Called when [activated] which for entity means that was added to scene.

Parameters
sourceThe source of activation.

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 577 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.OnRemovedFromScene ( object  source)
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 587 of file MyPlanet.cs.

void Sandbox.Game.Entities.MyPlanet.PrefetchShapeOnRay ( ref LineD  ray)
inline

Definition at line 974 of file MyPlanet.cs.

void Sandbox.Game.Entities.MyPlanet.RemoveChildEntity ( MyEntity  child)
inline

Definition at line 78 of file MyPlanet.Sectors.cs.

override void Sandbox.Game.Entities.MyPlanet.UpdateAfterSimulation10 ( )
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 677 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.UpdateAfterSimulation100 ( )
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 751 of file MyPlanet.cs.

override void Sandbox.Game.Entities.MyPlanet.UpdateOnceBeforeFrame ( )
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 658 of file MyPlanet.cs.

Member Data Documentation

const int Sandbox.Game.Entities.MyPlanet.PHYSICS_SECTOR_SIZE_METERS = 1024

Definition at line 81 of file MyPlanet.cs.

bool Sandbox.Game.Entities.MyPlanet.RUN_SECTORS = false
static

Definition at line 85 of file MyPlanet.cs.

Property Documentation

float Sandbox.Game.Entities.MyPlanet.AtmosphereAltitude
get

Definition at line 92 of file MyPlanet.cs.

float Sandbox.Game.Entities.MyPlanet.AtmosphereRadius
get

Definition at line 266 of file MyPlanet.cs.

MyAtmosphereSettings Sandbox.Game.Entities.MyPlanet.AtmosphereSettings
getset

Definition at line 229 of file MyPlanet.cs.

Vector3 Sandbox.Game.Entities.MyPlanet.AtmosphereWavelengths
get

Definition at line 221 of file MyPlanet.cs.

float Sandbox.Game.Entities.MyPlanet.AverageRadius
get

Definition at line 250 of file MyPlanet.cs.

MyPlanetGeneratorDefinition Sandbox.Game.Entities.MyPlanet.Generator
get

Definition at line 157 of file MyPlanet.cs.

MyPlanetInitArguments Sandbox.Game.Entities.MyPlanet.GetInitArguments
get

Definition at line 216 of file MyPlanet.cs.

bool Sandbox.Game.Entities.MyPlanet.HasAtmosphere
get

Definition at line 274 of file MyPlanet.cs.

float Sandbox.Game.Entities.MyPlanet.MaximumRadius
get

Definition at line 258 of file MyPlanet.cs.

float Sandbox.Game.Entities.MyPlanet.MinimumRadius
get

Definition at line 242 of file MyPlanet.cs.

override Vector3D Sandbox.Game.Entities.MyPlanet.PositionLeftBottomCorner
getset

Definition at line 184 of file MyPlanet.cs.

MyPlanetStorageProvider Sandbox.Game.Entities.MyPlanet.Provider
get

Definition at line 143 of file MyPlanet.cs.

override MyVoxelBase Sandbox.Game.Entities.MyPlanet.RootVoxel
get

Definition at line 155 of file MyPlanet.cs.

override MyClipmapScaleEnum Sandbox.Game.Entities.MyPlanet.ScaleGroup
get

Definition at line 821 of file MyPlanet.cs.

bool Sandbox.Game.Entities.MyPlanet.SpherizeWithDistance
get

Definition at line 282 of file MyPlanet.cs.

new Sandbox.Engine.Voxels.IMyStorage Sandbox.Game.Entities.MyPlanet.Storage
getset

Definition at line 160 of file MyPlanet.cs.


The documentation for this class was generated from the following files: