summaryrefslogtreecommitdiff
path: root/scripts/Map/TileDefinition.cs
blob: e843b52007358409e839dbf9c12d3c22e12adbfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Godot;

namespace TheLegendOfGustav.Map;

/// <summary>
/// Define as características de um tile.
/// </summary>
[GlobalClass]
public partial class TileDefinition : Resource
{
	[ExportCategory("Visuals")]
	[Export]
	public Texture2D Texture { get; set; }
	[Export(PropertyHint.ColorNoAlpha)]
	public Color LitColor { get; set; } = Colors.White;
	[Export(PropertyHint.ColorNoAlpha)]
	public Color DarkColor { get; set; } = Colors.White;

	[ExportCategory("Mechanics")]
	[Export]
	public bool IsWalkable { get; set; }
	[Export]
	public bool IsTransparent { get; set; }
}