This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9458c6c
commit c238e7f
Showing
2 changed files
with
78 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
namespace craftersmine.EtherEngine.Core | ||
{ | ||
/// <summary> | ||
/// Represents a world tile | ||
/// </summary> | ||
public class Tile : GameObject | ||
{ | ||
/// <summary> | ||
/// Gets or sets tile position along X axis relative to <see cref="Tileset"/> | ||
/// </summary> | ||
public int TilesetX { get; set; } | ||
/// <summary> | ||
/// Gets or sets tile position along Y axis relative to <see cref="Tileset"/> | ||
/// </summary> | ||
public int TilesetY { get; set; } | ||
/// <summary> | ||
/// Gets or sets internal Tile id. May be useful for specific actions | ||
/// </summary> | ||
public string TileId { get; set; } | ||
|
||
public Tile(int tilesetX, int tilesetY) | ||
/// <summary> | ||
/// Creates a new instance of <see cref="Tile"/> | ||
/// </summary> | ||
public Tile() | ||
{ | ||
TilesetX = tilesetX; | ||
TilesetY = tilesetY; | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters