Table of Contents

Class ShapeStorageInfo<TPoint>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

This class handles how the cells of a grid is represented in memeory. This class is used by shape info classes.

[Version(1, 0, 0)]
public class ShapeStorageInfo<TPoint>

Type Parameters

TPoint
Inheritance
ShapeStorageInfo<TPoint>
Inherited Members
Extension Methods

Constructors

ShapeStorageInfo(IntRect, Func<TPoint, bool>)

public ShapeStorageInfo(IntRect storageRect, Func<TPoint, bool> contains)

Parameters

storageRect IntRect
contains Func<TPoint, bool>

ShapeStorageInfo(int, int, Func<TPoint, bool>)

public ShapeStorageInfo(int width, int height, Func<TPoint, bool> contains)

Parameters

width int
height int
contains Func<TPoint, bool>

Fields

contains

public readonly Func<TPoint, bool> contains

Field Value

Func<TPoint, bool>

storageRect

public readonly IntRect storageRect

Field Value

IntRect

Methods

Difference(ShapeStorageInfo<TPoint>)

public ShapeStorageInfo<TPoint> Difference(ShapeStorageInfo<TPoint> other)

Parameters

other ShapeStorageInfo<TPoint>

Returns

ShapeStorageInfo<TPoint>

Intersection(ShapeStorageInfo<TPoint>)

public ShapeStorageInfo<TPoint> Intersection(ShapeStorageInfo<TPoint> other)

Parameters

other ShapeStorageInfo<TPoint>

Returns

ShapeStorageInfo<TPoint>

SymmetricDifference(ShapeStorageInfo<TPoint>)

public ShapeStorageInfo<TPoint> SymmetricDifference(ShapeStorageInfo<TPoint> other)

Parameters

other ShapeStorageInfo<TPoint>

Returns

ShapeStorageInfo<TPoint>

Union(ShapeStorageInfo<TPoint>)

public ShapeStorageInfo<TPoint> Union(ShapeStorageInfo<TPoint> other)

Parameters

other ShapeStorageInfo<TPoint>

Returns

ShapeStorageInfo<TPoint>