Show / Hide Table of Contents

Class DefaultTerrainNature

Drops nature flats based on random chance scaled by simple rules.

Inheritance
Object
DefaultTerrainNature
Implements
ITerrainNature
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
public class DefaultTerrainNature : ITerrainNature

Fields

| Improve this Doc View Source

baseChanceOnDirt

Declaration
protected const float baseChanceOnDirt = 0.2F
Field Value
Type Description
Single
| Improve this Doc View Source

baseChanceOnGrass

Declaration
protected const float baseChanceOnGrass = 0.9F
Field Value
Type Description
Single
| Improve this Doc View Source

baseChanceOnStone

Declaration
protected const float baseChanceOnStone = 0.05F
Field Value
Type Description
Single
| Improve this Doc View Source

maxSteepness

Declaration
protected const float maxSteepness = 50F
Field Value
Type Description
Single
| Improve this Doc View Source

natureClearance

Declaration
protected const int natureClearance = 4
Field Value
Type Description
Int32
| Improve this Doc View Source

slopeSinkRatio

Declaration
protected const float slopeSinkRatio = 70F
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

NatureMeshUsed

Declaration
public bool NatureMeshUsed { get; protected set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

LayoutNature(DaggerfallTerrain, DaggerfallBillboardBatch, Single, Int32)

Declaration
public virtual void LayoutNature(DaggerfallTerrain dfTerrain, DaggerfallBillboardBatch dfBillboardBatch, float terrainScale, int terrainDist)
Parameters
Type Name Description
DaggerfallTerrain dfTerrain
DaggerfallBillboardBatch dfBillboardBatch
Single terrainScale
Int32 terrainDist

Implements

ITerrainNature
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX