mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 17:47:24 +02:00
20 lines
612 B
C#
20 lines
612 B
C#
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Robust.Shared.GameObjects
|
|
{
|
|
/// <summary>
|
|
/// A component that toggles collision on an entity being toggled.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class CollideOnAnchorComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Whether we toggle collision on or off when anchoring (and vice versa when unanchoring).
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("enable")]
|
|
public bool Enable { get; set; } = false;
|
|
}
|
|
}
|