Table of Contents

Class ImageMap<TPoint>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

Map that maps a grid to an image; useful for texturing a grid with a single image, or point an image with a grid.

[Version(1, 8, 0)]
public class ImageMap<TPoint> where TPoint : IGridPoint<TPoint>

Type Parameters

TPoint
Inheritance
ImageMap<TPoint>
Inherited Members
Extension Methods

Constructors

ImageMap(Rect, IGridSpace<TPoint>, IMap<TPoint>)

public ImageMap(Rect imageRect, IGridSpace<TPoint> grid, IMap<TPoint> map)

Parameters

imageRect Rect
grid IGridSpace<TPoint>
map IMap<TPoint>

Properties

this[Vector2]

public TPoint this[Vector2 point] { get; }

Parameters

point Vector2

Property Value

TPoint

this[TPoint]

public Vector2 this[TPoint point] { get; }

Parameters

point TPoint

Property Value

Vector2

Methods

GetCellDimensions(TPoint)

public Vector2 GetCellDimensions(TPoint point)

Parameters

point TPoint

Returns

Vector2

GetCellScale(TPoint)

public Vector2 GetCellScale(TPoint point)

Parameters

point TPoint

Returns

Vector2