Table of Contents

Class SimpleLayeredMap<TPoint>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

A simple map that can be used for Layered Grids.

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

Type Parameters

TPoint
Inheritance
SimpleLayeredMap<TPoint>
Implements
Inherited Members
Extension Methods

Constructors

SimpleLayeredMap(IMap<TPoint>, float, float)

public SimpleLayeredMap(IMap<TPoint> baseMap, float layerDistance, float layerOffset)

Parameters

baseMap IMap<TPoint>
layerDistance float
layerOffset float

Properties

this[LayeredPoint<TPoint>]

Gets a world point given a grid point.

public Vector3 this[LayeredPoint<TPoint> point] { get; }

Parameters

point LayeredPoint<TPoint>

Property Value

Vector3

this[Vector3]

Gets a grid point given a world point.

public LayeredPoint<TPoint> this[Vector3 point] { get; }

Parameters

point Vector3

Property Value

LayeredPoint<TPoint>

Methods

To2D()

This method is not implemented. Unlike most grids, this is not a 2D grid embedded in 3D, so projecting it to 2D does not make sense.

public IMap<LayeredPoint<TPoint>> To2D()

Returns

IMap<LayeredPoint<TPoint>>