mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Refactor tile IDs. Tile IDs are now automatically assigned at runtime. A mapping is also stored in map files to avoid compatibility issues. Also removed tile prototypes. Content is now responsible for it. This is so content can define its own data for tiles. * Update map format specification. * Fix tile placement.
35 lines
1020 B
C#
35 lines
1020 B
C#
namespace SS14.Shared.Interfaces.Map
|
|
{
|
|
/// <summary>
|
|
/// The definition (template) for a grid tile.
|
|
/// </summary>
|
|
public interface ITileDefinition
|
|
{
|
|
/// <summary>
|
|
/// The numeric tile ID used to refer to this tile inside the map datastructure.
|
|
/// </summary>
|
|
ushort TileId { get; }
|
|
|
|
/// <summary>
|
|
/// The name of the definition. This is user facing.
|
|
/// </summary>
|
|
string DisplayName { get; }
|
|
|
|
/// <summary>
|
|
/// Internal name of the definition.
|
|
/// </summary>
|
|
string Name { get; }
|
|
|
|
/// <summary>
|
|
/// The name of the sprite to draw.
|
|
/// </summary>
|
|
string SpriteName { get; }
|
|
|
|
/// <summary>
|
|
/// Assign a new value to <see cref="TileId"/>, used when registering the tile definition.
|
|
/// </summary>
|
|
/// <param name="id">The new tile ID for this tile definition.</param>
|
|
void AssignTileId(ushort id);
|
|
}
|
|
}
|