C# Class FSO.LotView.Components.TerrainComponent

Inheritance: WorldComponent
Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
DepthMode bool
DrawGrid bool

Public Methods

Method Description
Draw ( GraphicsDevice device, WorldState world ) : void

Render the terrain

GenerateGrassStates ( ) : void
Initialize ( GraphicsDevice device, WorldState world ) : void

Setup component to run on graphics device

RegenTerrain ( GraphicsDevice device, WorldState world, Blueprint blueprint ) : void
TerrainComponent ( Rectangle size ) : System
UpdateLotType ( ) : void

Method Details

Draw() public method

Render the terrain
public Draw ( GraphicsDevice device, WorldState world ) : void
device GraphicsDevice
world WorldState
return void

GenerateGrassStates() public method

public GenerateGrassStates ( ) : void
return void

Initialize() public method

Setup component to run on graphics device
public Initialize ( GraphicsDevice device, WorldState world ) : void
device GraphicsDevice
world WorldState
return void

RegenTerrain() public method

public RegenTerrain ( GraphicsDevice device, WorldState world, Blueprint blueprint ) : void
device GraphicsDevice
world WorldState
blueprint Blueprint
return void

TerrainComponent() public method

public TerrainComponent ( Rectangle size ) : System
size Microsoft.Xna.Framework.Rectangle
return System

UpdateLotType() public method

public UpdateLotType ( ) : void
return void

Property Details

DepthMode public_oe property

public bool DepthMode
return bool

DrawGrid public_oe property

public bool DrawGrid
return bool