Table of Contents

Class GridBuilderUtils

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Class that provides utility methods for working with grids.

[Version(2, 0, 0)]
public static class GridBuilderUtils
Inheritance
GridBuilderUtils
Inherited Members

Properties

ScreenBounds

The screen bounds as a 3D bounds object that can be used for aligning grids inside the screen.

Methods

InitMesh(Mesh, IExplicitShape<GridPoint2>, GridMap<GridPoint2>, MeshData, bool, bool)

Assigns the properties (such as vertices and triangles) for a mesh for a shape.

InitMesh(Mesh, IExplicitShape<GridPoint3>, GridMap<GridPoint3>, MeshData, bool, bool)

Assigns the properties (such as vertices and triangles) for a mesh for a shape.

InitMesh(Mesh, IExplicitShape<int>, GridMap<int>, MeshData, bool, bool)

Assigns the properties (such as vertices and triangles) for a mesh for a shape.

InitTileGrid<TPoint, TCell>(IGrid<TPoint, TCell>, GridMap<TPoint>, TCell, GameObject, Action<TPoint, TCell>)

A convenience method to initialize a grid of SpriteCells from code.

UpdateTileGridOrientations<TPoint, TCell>(IGrid<TPoint, TCell>, GridMap<TPoint>)

Orientates cells according to the map.