• 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 Tiles

Inheritance
System.Object
Tiles
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 Tiles : ILayer

Constructors

Tiles(String, Tileset)

Declaration
public Tiles(string identifier, Tileset tileset)
Parameters
Type Name Description
System.String identifier
Tileset tileset

Properties

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

TileCoords

Declaration
public List<(Vector2, Rectangle)> TileCoords { get; }
Property Value
Type Description
System.Collections.Generic.List<System.ValueTuple<Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle>>

Tileset

Declaration
public Tileset Tileset { get; }
Property Value
Type Description
Tileset

Methods

AddTile(Vector2, Rectangle)

Declaration
public void AddTile(Vector2 coord, Rectangle source)
Parameters
Type Name Description
Microsoft.Xna.Framework.Vector2 coord
Microsoft.Xna.Framework.Rectangle source

GetLayerType()

Declaration
public LayerType GetLayerType()
Returns
Type Description
LayerType

Implements

ILayer
In This Article
Back to top Generated by DocFX