Space Engineers
Public Member Functions | Protected Member Functions | List of all members
Sandbox.Game.World.Generator.MyProceduralAsteroidCellGenerator Class Reference
Inheritance diagram for Sandbox.Game.World.Generator.MyProceduralAsteroidCellGenerator:
Sandbox.Game.World.Generator.MyProceduralWorldModule

Public Member Functions

 MyProceduralAsteroidCellGenerator (int seed, double density, MyProceduralWorldModule parent=null)
 
override void GenerateObjects (List< MyObjectSeed > objectsList, HashSet< MyObjectSeedParams > existingObjectsSeeds)
 
- Public Member Functions inherited from Sandbox.Game.World.Generator.MyProceduralWorldModule
void AddDensityFunctionRemoved (IMyAsteroidFieldDensityFunction func)
 
void GetObjectSeeds (BoundingSphereD sphere, List< MyObjectSeed > list, bool scale=true)
 
void MarkCellsDirty (BoundingSphereD toMark, BoundingSphereD?toExclude=null, bool scale=true)
 
void ProcessDirtyCells (Dictionary< MyEntity, MyEntityTracker > trackedEntities)
 

Protected Member Functions

override MyProceduralCell GenerateProceduralCell (ref VRageMath.Vector3I cellId)
 
override void CloseObjectSeed (MyObjectSeed objectSeed)
 
- Protected Member Functions inherited from Sandbox.Game.World.Generator.MyProceduralWorldModule
 MyProceduralWorldModule (double cellSize, int radiusMultiplier, int seed, double density, MyProceduralWorldModule parent=null)
 
void ChildrenAddDensityFunctionFilled (IMyAsteroidFieldDensityFunction func)
 
void ChildrenRemoveDensityFunctionFilled (IMyAsteroidFieldDensityFunction func)
 
void ChildrenAddDensityFunctionRemoved (IMyAsteroidFieldDensityFunction func)
 
void ChildrenRemoveDensityFunctionRemoved (IMyAsteroidFieldDensityFunction func)
 
void AddDensityFunctionFilled (IMyAsteroidFieldDensityFunction func)
 
void RemoveDensityFunctionFilled (IMyAsteroidFieldDensityFunction func)
 
void RemoveDensityFunctionRemoved (IMyAsteroidFieldDensityFunction func)
 
abstract MyProceduralCell GenerateProceduralCell (ref Vector3I cellId)
 
int GetCellSeed (ref Vector3I cell)
 
int GetObjectIdSeed (MyObjectSeed objectSeed)
 
void GenerateObjectSeeds (ref BoundingSphereD sphere)
 
IMyModule GetCellDensityFunctionFilled (BoundingBoxD bbox)
 
IMyModule GetCellDensityFunctionRemoved (BoundingBoxD bbox)
 
Vector3I_RangeIterator GetCellsIterator (BoundingSphereD sphere)
 
Vector3I_RangeIterator GetCellsIterator (BoundingBoxD bbox)
 
void OverlapAllBoundingSphere (ref BoundingSphereD sphere, List< MyObjectSeed > list)
 
void OverlapAllBoundingBox (ref BoundingBoxD box, List< MyObjectSeed > list)
 

Additional Inherited Members

- Public Attributes inherited from Sandbox.Game.World.Generator.MyProceduralWorldModule
readonly double CELL_SIZE
 
readonly int SCALE
 
- Protected Attributes inherited from Sandbox.Game.World.Generator.MyProceduralWorldModule
MyProceduralWorldModule m_parent
 
List< MyProceduralWorldModulem_children = new List<MyProceduralWorldModule>()
 
int m_seed
 
double m_objectDensity
 
MyDynamicAABBTreeD m_cellsTree = new MyDynamicAABBTreeD(Vector3D.Zero)
 
Dictionary< Vector3I, MyProceduralCellm_cells = new Dictionary<Vector3I, MyProceduralCell>()
 
CachingHashSet< MyProceduralCellm_dirtyCells = new CachingHashSet<MyProceduralCell>()
 
List< IMyAsteroidFieldDensityFunctionm_densityFunctionsFilled = new List<IMyAsteroidFieldDensityFunction>()
 
List< IMyAsteroidFieldDensityFunctionm_densityFunctionsRemoved = new List<IMyAsteroidFieldDensityFunction>()
 
const int BIG_PRIME1 = 16785407
 
const int BIG_PRIME2 = 39916801
 
const int BIG_PRIME3 = 479001599
 
const int TWIN_PRIME_MIDDLE1 = 240
 
const int TWIN_PRIME_MIDDLE2 = 312
 
const int TWIN_PRIME_MIDDLE3 = 462
 
- Static Protected Attributes inherited from Sandbox.Game.World.Generator.MyProceduralWorldModule
static List< MyObjectSeedm_tempObjectSeedList = new List<MyObjectSeed>()
 
static List< MyProceduralCellm_tempProceduralCellsList = new List<MyProceduralCell>()
 

Detailed Description

Definition at line 16 of file MyProceduralAsteroidCellGenerator.cs.

Constructor & Destructor Documentation

Sandbox.Game.World.Generator.MyProceduralAsteroidCellGenerator.MyProceduralAsteroidCellGenerator ( int  seed,
double  density,
MyProceduralWorldModule  parent = null 
)
inline

Definition at line 45 of file MyProceduralAsteroidCellGenerator.cs.

Member Function Documentation

override void Sandbox.Game.World.Generator.MyProceduralAsteroidCellGenerator.CloseObjectSeed ( MyObjectSeed  objectSeed)
inlineprotectedvirtual
override void Sandbox.Game.World.Generator.MyProceduralAsteroidCellGenerator.GenerateObjects ( List< MyObjectSeed objectsList,
HashSet< MyObjectSeedParams existingObjectsSeeds 
)
inlinevirtual
override MyProceduralCell Sandbox.Game.World.Generator.MyProceduralAsteroidCellGenerator.GenerateProceduralCell ( ref VRageMath.Vector3I  cellId)
inlineprotected

Definition at line 71 of file MyProceduralAsteroidCellGenerator.cs.


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