# Conflicts: # Content.Server/Actions/Actions/DisarmAction.cs # Content.Server/Actions/Actions/ScreamAction.cs # Content.Server/Arcade/Components/SpaceVillainArcadeComponent.cs # Content.Server/Damage/Components/DamageOnHighSpeedImpactComponent.cs # Content.Server/Explosion/Components/FlashExplosiveComponent.cs # Content.Server/Physics/Controllers/MoverController.cs # Content.Server/Portal/Components/PortalComponent.cs # Content.Server/Portal/Components/TeleporterComponent.cs # Content.Server/Projectiles/Components/ProjectileComponent.cs # Content.Server/Singularity/Components/EmitterComponent.cs # Content.Server/Sound/EmitSoundSystem.cs # Content.Server/Stunnable/Components/StunbatonComponent.cs # Content.Server/Tools/Components/MultitoolComponent.cs # Content.Server/Weapon/Ranged/Barrels/Components/ServerBatteryBarrelComponent.cs # Content.Shared/Gravity/GravityComponent.cs # Content.Shared/Light/Component/SharedExpendableLightComponent.cs # Content.Shared/Maps/ContentTileDefinition.cs # Content.Shared/Slippery/SlipperyComponent.cs # Content.Shared/Standing/StandingStateComponent.cs # Resources/Prototypes/Entities/Objects/Fun/bike_horn.yml
52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
using Content.Shared.Sound;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
using Robust.Shared.ViewVariables;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Content.Shared.Maps
|
|
{
|
|
[UsedImplicitly]
|
|
[Prototype("tile")]
|
|
public sealed class ContentTileDefinition : IPrototype, ITileDefinition
|
|
{
|
|
[ViewVariables]
|
|
string IPrototype.ID => Name;
|
|
|
|
public string Path => "/Textures/Tiles/";
|
|
|
|
[DataField("name", required: true)] public string Name { get; } = string.Empty;
|
|
|
|
public ushort TileId { get; private set; }
|
|
|
|
[DataField("display_name")] public string DisplayName { get; } = string.Empty;
|
|
|
|
[DataField("texture")] public string SpriteName { get; } = string.Empty;
|
|
|
|
[DataField("is_subfloor")] public bool IsSubFloor { get; private set; }
|
|
|
|
[DataField("base_turfs")] public List<string> BaseTurfs { get; } = new();
|
|
|
|
[DataField("can_crowbar")] public bool CanCrowbar { get; private set; }
|
|
|
|
[DataField("footstep_sounds")] public SoundSpecifier FootstepSounds { get; } = default!;
|
|
|
|
[DataField("friction")] public float Friction { get; set; }
|
|
|
|
[DataField("thermalConductivity")] public float ThermalConductivity { get; set; } = 0.05f;
|
|
|
|
[DataField("item_drop", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
public string ItemDropPrototypeName { get; } = "FloorTileItemSteel";
|
|
|
|
[DataField("is_space")] public bool IsSpace { get; private set; }
|
|
|
|
public void AssignTileId(ushort id)
|
|
{
|
|
TileId = id;
|
|
}
|
|
}
|
|
}
|