Свойство | Type | Description | |
---|---|---|---|
cellSize | int | ||
center | |||
decomposer | TriangulationAlgorithm | ||
height | float | ||
iterations | int | ||
pointsPerUnit | int | ||
subCellSize | int | ||
width | float | ||
world |
Méthode | Description | |
---|---|---|
Terrain ( |
Creates a new terrain.
|
|
Terrain ( |
Creates a new terrain
|
|
applyData ( sbyte data, |
Apply the specified texture data to the terrain.
|
|
generateTerrain ( int gx, int gy ) : void | ||
initialize ( ) : void |
Initialize the terrain for use.
|
|
modifyTerrain ( |
Modify a single point in the terrain.
|
|
regenerateTerrain ( ) : void |
Regenerate the terrain.
|
|
removeOldData ( int xStart, int xEnd, int yStart, int yEnd ) : void |
public Terrain ( |
||
world | The World | |
area | The area of the terrain. | |
Résultat | System.Collections.Generic |
public Terrain ( |
||
world | The World | |
position | The position (center) of the terrain. | |
width | float | The width of the terrain. |
height | float | The height of the terrain. |
Résultat | System.Collections.Generic |
public applyData ( sbyte data, |
||
data | sbyte | |
offset | ||
Résultat | void |
public generateTerrain ( int gx, int gy ) : void | ||
gx | int | |
gy | int | |
Résultat | void |
public modifyTerrain ( |
||
location | World location to modify. Automatically clipped. | |
value | sbyte | -1 = inside terrain, 1 = outside terrain |
Résultat | void |
public removeOldData ( int xStart, int xEnd, int yStart, int yEnd ) : void | ||
xStart | int | |
xEnd | int | |
yStart | int | |
yEnd | int | |
Résultat | void |
public Vector2,Microsoft.Xna.Framework center | ||
Résultat |
public TriangulationAlgorithm decomposer | ||
Résultat | TriangulationAlgorithm |