Class GridNavFile
- Namespace
- ValveResourceFormat.MapFormats
- Assembly
- ValveResourceFormat.dll
Represents a Dota 2 grid navigation file.
public class GridNavFile
Inheritance
Inherited Members
Fields
MAGIC
Magic number for grid navigation files.
public const uint MAGIC = 4208901805
Field Value
Properties
EdgeSize
Gets the size of each grid cell edge.
public float EdgeSize { get; }
Property Value
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
MaxX
Gets the maximum X coordinate.
public int MaxX { get; }
Property Value
MaxY
Gets the maximum Y coordinate.
public int MaxY { get; }
Property Value
MinX
Gets the minimum X coordinate.
public int MinX { get; }
Property Value
MinY
Gets the minimum Y coordinate.
public int MinY { get; }
Property Value
OffsetX
Gets the X offset of the grid.
public float OffsetX { get; }
Property Value
OffsetY
Gets the Y offset of the grid.
public float OffsetY { get; }
Property Value
Width
Gets the width of the grid.
public int Width { get; }
Property Value
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.