C# Класс Universe.Framework.SceneInfo.TerrainChannel

A new version of the old Channel class, simplified
Наследование: ITerrainChannel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GenerateTerrain ( string terrainType, float min, float max, int smoothing, IScene scene ) : void

Generates new terrain based upon supplied parameters.

GetNormalizedGroundHeight ( int x, int y ) : float

Gets the average height of the area +2 in both the X and Y directions from the given position

GetNormalizedLandHeight ( int x, int y ) : float

Gets the average height of land above the waterline at the specified point.

GetSerialized ( ) : short[]
MakeCopy ( ) : ITerrainChannel
ReCalcLandArea ( ) : void
Tainted ( int x, int y ) : bool
TerrainChannel ( IScene scene ) : OpenMetaverse
TerrainChannel ( bool createMap, IScene scene ) : OpenMetaverse
TerrainChannel ( int w, int h, IScene scene ) : OpenMetaverse
TerrainChannel ( short import, IScene scene ) : OpenMetaverse
TerrainChannel ( string terrainType, IScene scene ) : OpenMetaverse
this ( int x, int y ) : float

Приватные методы

Метод Описание
CalcLandArea ( ) : void

Calculates the land area.

CreateAtolIslandTerrain ( ) : void
CreateDefaultTerrain ( string terrainType ) : void

Creates the default terrain, default is 'Flatland'

CreateFlatlandTerrain ( ) : void
CreateIslandTerrain ( ) : void
CreateIslandTerrain ( float minHeight, float maxHeight, int smoothing ) : void
CreateMainlandTerrain ( float minHeight, float maxHeight, int smoothing ) : void
CreateMainlandTerrain ( int smoothing ) : void
CreateNullSpaceTerrain ( ) : void

Описание методов

GenerateTerrain() публичный Метод

Generates new terrain based upon supplied parameters.
public GenerateTerrain ( string terrainType, float min, float max, int smoothing, IScene scene ) : void
terrainType string Land type.
min float Minimum.
max float Max.
smoothing int Smoothing.
scene IScene Scene.
Результат void

GetNormalizedGroundHeight() публичный Метод

Gets the average height of the area +2 in both the X and Y directions from the given position
public GetNormalizedGroundHeight ( int x, int y ) : float
x int
y int
Результат float

GetNormalizedLandHeight() публичный Метод

Gets the average height of land above the waterline at the specified point.
public GetNormalizedLandHeight ( int x, int y ) : float
x int The x coordinate.
y int The y coordinate.
Результат float

GetSerialized() публичный Метод

public GetSerialized ( ) : short[]
Результат short[]

MakeCopy() публичный Метод

public MakeCopy ( ) : ITerrainChannel
Результат ITerrainChannel

ReCalcLandArea() публичный Метод

public ReCalcLandArea ( ) : void
Результат void

Tainted() публичный Метод

public Tainted ( int x, int y ) : bool
x int
y int
Результат bool

TerrainChannel() публичный Метод

public TerrainChannel ( IScene scene ) : OpenMetaverse
scene IScene
Результат OpenMetaverse

TerrainChannel() публичный Метод

public TerrainChannel ( bool createMap, IScene scene ) : OpenMetaverse
createMap bool
scene IScene
Результат OpenMetaverse

TerrainChannel() публичный Метод

public TerrainChannel ( int w, int h, IScene scene ) : OpenMetaverse
w int
h int
scene IScene
Результат OpenMetaverse

TerrainChannel() публичный Метод

public TerrainChannel ( short import, IScene scene ) : OpenMetaverse
import short
scene IScene
Результат OpenMetaverse

TerrainChannel() публичный Метод

public TerrainChannel ( string terrainType, IScene scene ) : OpenMetaverse
terrainType string
scene IScene
Результат OpenMetaverse

this() публичный Метод

public this ( int x, int y ) : float
x int
y int
Результат float