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