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

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

Constructors

Entities(String, List<EntityInstance>)

Declaration
public Entities(string identifier, List<EntityInstance> ei)
Parameters
Type Name Description
System.String identifier
System.Collections.Generic.List<EntityInstance> ei

Properties

Name

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

Methods

GetEntities<T>()

Returns all entities of type T

Declaration
public List<T> GetEntities<T>()

    where T : ILdtkEntity, new()
Returns
Type Description
System.Collections.Generic.List<T>

The entities found (can be empty)

Type Parameters
Name Description
T

An entity that implements ILdtkEntity

GetEntity<T>()

Returns an entity of type T

Declaration
public T GetEntity<T>()

    where T : ILdtkEntity, new()
Returns
Type Description
T

The found entity

Type Parameters
Name Description
T

An entity that implements ILdtkEntity

Exceptions
Type Condition
EntityNotFoundException

Thrown if no entity of type T was found

GetLayerType()

Declaration
public LayerType GetLayerType()
Returns
Type Description
LayerType

Implements

ILayer
In This Article
Back to top Generated by DocFX