Show / Hide Table of Contents

Class TerrainOnlyMapTransparencyView

Grid view used as the TransparencyView for a map when only the terrain layer can have non-transparent tiles.

Inheritance
object
GridViewBase<bool>
TerrainOnlyMapTransparencyView
Implements
IGridView<bool>
Inherited Members
GridViewBase<bool>.Count
GridViewBase<bool>.this[int, int]
GridViewBase<bool>.this[int]
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: GoRogue.GameFramework
Assembly: GoRogue.dll
Syntax
public sealed class TerrainOnlyMapTransparencyView : GridViewBase<bool>, IGridView<bool>
Remarks

This class is used instead of a LambdaGridView<T> in order to maximize performance.

Constructors

View Source

TerrainOnlyMapTransparencyView(Map)

Constructor.

Declaration
public TerrainOnlyMapTransparencyView(Map map)
Parameters
Type Name Description
Map map

Map which this grid view gets its data from.

Properties

View Source

Height

The height of the grid being represented.

Declaration
public override int Height { get; }
Property Value
Type Description
int
Overrides
SadRogue.Primitives.GridViews.GridViewBase<bool>.Height
View Source

this[Point]

Given a position, returns the "value" associated with that location.

Declaration
public override bool this[Point pos] { get; }
Parameters
Type Name Description
Point pos

Location to retrieve the value for.

Property Value
Type Description
bool

The "value" associated with the provided location.

Overrides
SadRogue.Primitives.GridViews.GridViewBase<bool>.this[SadRogue.Primitives.Point]
View Source

Width

The width of the grid being represented.

Declaration
public override int Width { get; }
Property Value
Type Description
int
Overrides
SadRogue.Primitives.GridViews.GridViewBase<bool>.Width

Implements

IGridView<T>

Extension Methods

Utility.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX