FloorTileComponent.cs 969 B

123456789101112131415161718192021222324
  1. using Content.Shared.Maps;
  2. using Robust.Shared.Audio;
  3. using Robust.Shared.GameStates;
  4. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
  5. namespace Content.Shared.Tiles
  6. {
  7. /// <summary>
  8. /// This gives items floor tile behavior, but it doesn't have to be a literal floor tile.
  9. /// A lot of materials use this too. Note that the AfterInteract will fail without a stack component on the item.
  10. /// </summary>
  11. [RegisterComponent, NetworkedComponent]
  12. public sealed partial class FloorTileComponent : Component
  13. {
  14. [DataField("outputs", customTypeSerializer: typeof(PrototypeIdListSerializer<ContentTileDefinition>))]
  15. public List<string>? OutputTiles;
  16. [DataField("placeTileSound")] public SoundSpecifier PlaceTileSound =
  17. new SoundPathSpecifier("/Audio/Items/genhit.ogg")
  18. {
  19. Params = AudioParams.Default.WithVariation(0.125f),
  20. };
  21. }
  22. }