Show / Hide Table of Contents

Class MyProceduralEnvironmentProvider

Inheritance
System.Object
MyProceduralEnvironmentProvider
Implements
IMyEnvironmentDataProvider
Namespace: Sandbox.Game.WorldEnvironment
Assembly: Sandbox.Game.dll
Syntax
public class MyProceduralEnvironmentProvider : Object, IMyEnvironmentDataProvider

Constructors

MyProceduralEnvironmentProvider()

Declaration
public MyProceduralEnvironmentProvider()

Fields

LodFactor

Declaration
public int LodFactor
Field Value
Type Description
System.Int32

Properties

LogicalSectors

Declaration
public IEnumerable<MyLogicalEnvironmentSectorBase> LogicalSectors { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<MyLogicalEnvironmentSectorBase>

Owner

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

ProviderId

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

Methods

CloseView(MyProceduralDataView)

Declaration
public void CloseView(MyProceduralDataView view)
Parameters
Type Name Description
MyProceduralDataView view

DebugDraw()

Declaration
public void DebugDraw()

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
Type Name Description
System.Int32 lod
Vector2I start
Vector2I end
Vector3D localOrigin
Returns
Type Description
MyEnvironmentDataView

GetLogicalSector(Int64)

Declaration
public MyLogicalEnvironmentSectorBase GetLogicalSector(long sectorId)
Parameters
Type Name Description
System.Int64 sectorId
Returns
Type Description
MyLogicalEnvironmentSectorBase

GetObjectBuilder()

Declaration
public MyObjectBuilder_EnvironmentDataProvider GetObjectBuilder()
Returns
Type Description
Sandbox.Game.WorldEnvironment.ObjectBuilders.MyObjectBuilder_EnvironmentDataProvider

GetSeed()

Declaration
public int GetSeed()
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
Type Name Description
IMyEnvironmentOwner owner
Vector3D origin
Vector3D basisA
Vector3D basisB
System.Double sectorSize
MyObjectBuilder_Base ob

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
Type Description
MyProceduralLogicalSector

Implements

IMyEnvironmentDataProvider
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾