TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class PyramidEventArgs in Tinman.Terrain.Pyramids

Event object for OnUpdated

class PyramidEventArgs  

Public / Attributes

Source

The pyramid that has been modified.

public readonly field Source
type IPyramidBase

Tile

The topmost pyramid tile that fully contains the modified regions.

public readonly field Tile
type PyramidCoords

See also:

PyramidCoords.Contains

Public / Constructors

PyramidEventArgs

Creates a new instance of PyramidEventArgs.

public constructor PyramidEventArgs (IPyramidBase source, PyramidCoords tile)
params source [not-null] The pyramid that has been modified.
  tile The pyramid tile that has been modified.

Public / Methods

IsModified

Checks if the given pyramid tile has been modified.

public virtual method IsModified (PyramidCoords tile)
type bool
params tile The pyramid tile.
returns true if tile has been modified, false if not.

Remarks:

The default implementation calls Contains on Tile, passing the given tile as argument.

SetSource

Creates a new instance of PyramidEventArgs for the given source pyramid.

public virtual method SetSource (IPyramidBase source)
type PyramidEventArgs
params source [not-null] The pyramid that has been modified.
returns [not-null] The resulting event argument object.