2020-10-14 15:24:07 +02:00
|
|
|
using System;
|
2020-07-06 14:27:03 -07:00
|
|
|
using Robust.Shared.GameObjects;
|
2020-10-14 15:24:07 +02:00
|
|
|
using Robust.Shared.Serialization;
|
2020-07-06 14:27:03 -07:00
|
|
|
|
|
|
|
|
namespace Content.Shared.GameObjects.Components
|
|
|
|
|
{
|
|
|
|
|
public abstract class SharedPlaceableSurfaceComponent : Component
|
|
|
|
|
{
|
|
|
|
|
public override string Name => "PlaceableSurface";
|
2020-10-14 15:24:07 +02:00
|
|
|
public override uint? NetID => ContentNetIDs.PLACEABLE_SURFACE;
|
|
|
|
|
|
|
|
|
|
public virtual bool IsPlaceable { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public class PlaceableSurfaceComponentState : ComponentState
|
|
|
|
|
{
|
|
|
|
|
public readonly bool IsPlaceable;
|
|
|
|
|
|
|
|
|
|
public PlaceableSurfaceComponentState(bool placeable) : base(ContentNetIDs.PLACEABLE_SURFACE)
|
|
|
|
|
{
|
|
|
|
|
IsPlaceable = placeable;
|
|
|
|
|
}
|
2020-07-06 14:27:03 -07:00
|
|
|
}
|
|
|
|
|
}
|