• Api Documentation
Show / Hide Table of Contents
  • LdtkParser
    • Direction
    • ILayer
    • ILdtkEntity
    • IWorld
    • LayerType
    • Level
    • World
  • LdtkParser.Exceptions
    • EntityNotFoundException
    • FieldStoreException
    • InvalidTileException
    • TilesetNotFoundException
  • LdtkParser.Graphics
    • ColorConverter
    • Sprite
    • SpriteEnum
    • Tileset
  • LdtkParser.Json
    • BgPos
    • CachedPixelData
    • DefaultOverride
    • Defs
    • Entity
    • EntityInstance
    • Enum
    • FieldDef
    • FieldInstance
    • GridTile
    • Header
    • IntGrid
    • IntGridValue
    • Layer
    • LayerInstance
    • Level
    • Neighbour
    • Param
    • Project
    • RealEditorValue
    • Serialize
    • Tile
    • Tileset
    • TypeClass
    • TypeUnion
    • Value
    • ValueClass
    • ValueUnion
  • LdtkParser.Layers
    • Entities
    • EntityModel
    • EnumValue
    • FieldStore
    • IntGrid
    • Tiles

Class IntGrid

Inheritance
System.Object
IntGrid
Implements
ILayer
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

Implements

ILayer
In This Article
Back to top Generated by DocFX