Tile proto parenting
This commit is contained in:
@@ -12,11 +12,18 @@ namespace Content.Shared.Maps
|
|||||||
{
|
{
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
[Prototype("tile")]
|
[Prototype("tile")]
|
||||||
public sealed class ContentTileDefinition : IPrototype, ITileDefinition
|
public sealed class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition
|
||||||
{
|
{
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
string IPrototype.ID => Name;
|
string IPrototype.ID => Name;
|
||||||
|
|
||||||
|
[DataField("parent", customTypeSerializer:typeof(PrototypeIdSerializer<ContentTileDefinition>))]
|
||||||
|
public string? Parent { get; private set; }
|
||||||
|
|
||||||
|
[NeverPushInheritance]
|
||||||
|
[DataField("abstract")]
|
||||||
|
public bool Abstract { get; private set; }
|
||||||
|
|
||||||
public string Path => "/Textures/Tiles/";
|
public string Path => "/Textures/Tiles/";
|
||||||
|
|
||||||
[DataField("name", required: true)] public string Name { get; } = string.Empty;
|
[DataField("name", required: true)] public string Name { get; } = string.Empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user