Class MyProceduralEnvironmentProvider
Inheritance
System.Object
MyProceduralEnvironmentProvider
Assembly: Sandbox.Game.dll
Syntax
public class MyProceduralEnvironmentProvider : Object, IMyEnvironmentDataProvider
Constructors
MyProceduralEnvironmentProvider()
Declaration
public MyProceduralEnvironmentProvider()
Fields
LodFactor
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Properties
LogicalSectors
Declaration
public IEnumerable<MyLogicalEnvironmentSectorBase> LogicalSectors { get; }
Property Value
Owner
Declaration
public IMyEnvironmentOwner Owner { get; }
Property Value
ProviderId
Declaration
public int ProviderId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
CloseView(MyProceduralDataView)
Declaration
public void CloseView(MyProceduralDataView view)
Parameters
DebugDraw()
Declaration
GeSectorWorldParameters(Int32, Int32, Int32, out Vector3D, out Vector3, out Vector3)
Declaration
public void GeSectorWorldParameters(int x, int y, int localLod, out Vector3D worldPos, out Vector3 scanBasisA, out Vector3 scanBasisB)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
localLod |
|
Vector3D |
worldPos |
|
Vector3 |
scanBasisA |
|
Vector3 |
scanBasisB |
|
GetItemView(Int32, ref Vector2I, ref Vector2I, ref Vector3D)
Declaration
public MyEnvironmentDataView GetItemView(int lod, ref Vector2I start, ref Vector2I end, ref Vector3D localOrigin)
Parameters
Returns
GetLogicalSector(Int64)
Declaration
public MyLogicalEnvironmentSectorBase GetLogicalSector(long sectorId)
Parameters
Type |
Name |
Description |
System.Int64 |
sectorId |
|
Returns
GetObjectBuilder()
Declaration
public MyObjectBuilder_EnvironmentDataProvider GetObjectBuilder()
Returns
Type |
Description |
Sandbox.Game.WorldEnvironment.ObjectBuilders.MyObjectBuilder_EnvironmentDataProvider |
|
GetSeed()
Declaration
Returns
Type |
Description |
System.Int32 |
|
Init(IMyEnvironmentOwner, ref Vector3D, ref Vector3D, ref Vector3D, Double, MyObjectBuilder_Base)
Declaration
public void Init(IMyEnvironmentOwner owner, ref Vector3D origin, ref Vector3D basisA, ref Vector3D basisB, double sectorSize, MyObjectBuilder_Base ob)
Parameters
RevalidateItem(Int64, Int32)
Declaration
public void RevalidateItem(long sectorId, int itemId)
Parameters
Type |
Name |
Description |
System.Int64 |
sectorId |
|
System.Int32 |
itemId |
|
TryGetLogicalSector(Int32, Int32, Int32)
Declaration
public MyProceduralLogicalSector TryGetLogicalSector(int lod, int logicalx, int logicaly)
Parameters
Type |
Name |
Description |
System.Int32 |
lod |
|
System.Int32 |
logicalx |
|
System.Int32 |
logicaly |
|
Returns
Implements