Class IntGrid
Inheritance
System.Object
IntGrid
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LdtkParser.Layers
Assembly: LdtkParser.dll
Syntax
public class IntGrid : ILayer
Constructors
IntGrid(String)
Declaration
public IntGrid(string identifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier |
Fields
Values
Declaration
public List<(Point Coord, int Value)> Values
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.ValueTuple<Microsoft.Xna.Framework.Point, System.Int32>> |
Properties
Name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
AddValue(Point, Int32)
Declaration
public void AddValue(Point p, int value)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Xna.Framework.Point | p | |
| System.Int32 | value |
GetLayerType()
Declaration
public LayerType GetLayerType()
Returns
| Type | Description |
|---|---|
| LayerType |
GetValue(Point)
Returns the given integer value for a gird coordinate
Declaration
public int GetValue(Point gridCoord)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Xna.Framework.Point | gridCoord | The grid coordinate (in the current level the layer belongs to) |
Returns
| Type | Description |
|---|---|
| System.Int32 | The value or -1 |