diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
| commit | c6bbb834f7758027c0df338f1520f34fad3befea (patch) | |
| tree | 1818cd23c24be16fbe19b16dd0a510874d440d83 /scripts/Map/TileDefinition.cs | |
| parent | f1b51bed52ffbd90b5b7cc8dcfc6f0484bbbeb3c (diff) | |
Organização
Diffstat (limited to 'scripts/Map/TileDefinition.cs')
| -rw-r--r-- | scripts/Map/TileDefinition.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/Map/TileDefinition.cs b/scripts/Map/TileDefinition.cs new file mode 100644 index 0000000..e843b52 --- /dev/null +++ b/scripts/Map/TileDefinition.cs @@ -0,0 +1,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; } +} |
