21 lines
810 B
C#
21 lines
810 B
C#
using Content.Shared.Maps;
|
|
using Content.Shared.Sound;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
namespace Content.Server.Tiles
|
|
{
|
|
/// <summary>
|
|
/// This gives items floor tile behavior, but it doesn't have to be a literal floor tile.
|
|
/// A lot of materials use this too. Note that the AfterInteract will fail without a stack component on the item.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class FloorTileComponent : Component
|
|
{
|
|
[DataField("outputs", customTypeSerializer: typeof(PrototypeIdListSerializer<ContentTileDefinition>))]
|
|
public List<string>? OutputTiles;
|
|
|
|
[DataField("placeTileSound")]
|
|
public SoundSpecifier PlaceTileSound = new SoundPathSpecifier("/Audio/Items/genhit.ogg");
|
|
}
|
|
}
|