TerrainStorageclass

Stores heightmaps, control maps and materials.

objectGameResourceTerrainStorage
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.TerrainStorage : Sandbox.GameResource

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

protected virtual void PostLoad()PROTECTEDVIRTUAL

Returns:void

public void SetResolution(int resolution)PUBLIC

ParameterTypeDescription
resolutionint
Returns:void

Properties8

Showing 8 properties

public uint[] Sandbox.TerrainStorage.ControlMap { get; set; }PUBLICGETSET

Returns:uint[]

public ushort[] Sandbox.TerrainStorage.HeightMap { get; set; }PUBLICGETSET

Returns:ushort[]

public int Sandbox.TerrainStorage.Resolution { get; set; }PUBLICGETSET

Returns:int

public virtual int Sandbox.TerrainStorage.ResourceVersion { get; set; }PUBLICVIRTUALGETSET

Returns:int

public float Sandbox.TerrainStorage.TerrainHeight { get; set; }PUBLICGETSET

World size of the maximum height of the terrain.

Returns:float

public float Sandbox.TerrainStorage.TerrainSize { get; set; }PUBLICGETSET

Uniform world size of the width and length of the terrain.

Returns:float

On this page