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