diff options
Diffstat (limited to 'scripts/map/Tile.cs')
| -rw-r--r-- | scripts/map/Tile.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/map/Tile.cs b/scripts/map/Tile.cs index c910b01..865cbbd 100644 --- a/scripts/map/Tile.cs +++ b/scripts/map/Tile.cs @@ -5,7 +5,7 @@ public partial class Tile : Sprite2D { private TileDefinition definition; - public bool IsWalkable { get; set; } + public bool IsWalkable { get; private set; } public Tile(Vector2I pos, TileDefinition definition) { @@ -17,6 +17,6 @@ public partial class Tile : Sprite2D public void SetDefinition(TileDefinition definition) { this.definition = definition; Texture = definition.Texture; - this.IsWalkable = definition.IsWalkable; + IsWalkable = definition.IsWalkable; } } |
