Skip to content

Commit 16526ec

Browse files
committed
feat: foi adicionado isspawnpoint aos dados do bloco
1 parent 9984d2e commit 16526ec

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Modules/GameManagers/Scripts/TilesManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void SetUpTiles(int width, int height)
2222
{
2323
for (int y = 0; y < _height; y++)
2424
{
25-
Tiles[x, y] = new DRTileData(x, y, true);
25+
Tiles[x, y] = new DRTileData(x, y, true, false);
2626
}
2727
}
2828
}

Modules/Tiles/Scripts/DRTileData.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ public partial class DRTileData
77

88
public bool IsWalkable { get; private set; }
99

10+
public bool IsSpawnPoint { get; private set; }
11+
1012
public DRTileData()
1113
{
1214
}
1315

14-
public DRTileData(int x, int y, bool isWalkable)
16+
public DRTileData(int x, int y, bool isWalkable, bool isSpawnPoint)
1517
{
1618
X = x;
1719
Y = y;
1820
IsWalkable = isWalkable;
21+
IsSpawnPoint = isSpawnPoint;
1922
}
2023
}

0 commit comments

Comments
 (0)