Class GridNavFile
Namespace: ValveResourceFormat.MapFormats
Assembly: ValveResourceFormat.dll
Represents a Dota 2 grid navigation file.
public class GridNavFileInheritance
object ← GridNavFile
Fields
MAGIC
Magic number for grid navigation files.
public const uint MAGIC = 4208901805Field Value
uint
Properties
EdgeSize
Gets the size of each grid cell edge.
public float EdgeSize { get; }Property Value
float
Grid
Gets the grid cell data.
public byte[] Grid { get; }Property Value
byte[]
Height
Gets the height of the grid.
public int Height { get; }Property Value
int
MaxX
Gets the maximum X coordinate.
public int MaxX { get; }Property Value
int
MaxY
Gets the maximum Y coordinate.
public int MaxY { get; }Property Value
int
MinX
Gets the minimum X coordinate.
public int MinX { get; }Property Value
int
MinY
Gets the minimum Y coordinate.
public int MinY { get; }Property Value
int
OffsetX
Gets the X offset of the grid.
public float OffsetX { get; }Property Value
float
OffsetY
Gets the Y offset of the grid.
public float OffsetY { get; }Property Value
float
Width
Gets the width of the grid.
public int Width { get; }Property Value
int
Methods
Read(Stream)
Reads grid navigation data from a stream.
public void Read(Stream input)Parameters
input Stream
Read(string)
Reads grid navigation data from a file.
public void Read(string filename)Parameters
filename string
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
string
A string that represents the current object.
Remarks
Returns a formatted grid visualization with dimensions, bounds, and cell representations.

