Files
RobustToolbox/Robust.Client/GameObjects/Components/Input/InputComponent.cs
2022-02-05 19:31:58 +01:00

21 lines
669 B
C#

using Robust.Shared.GameObjects;
using Robust.Shared.Input;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Robust.Client.GameObjects
{
/// <summary>
/// Defines data fields used in the <see cref="InputSystem"/>.
/// </summary>
public sealed class InputComponent : Component
{
/// <summary>
/// The context that will be made active for a client that attaches to this entity.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("context")]
public string ContextName { get; set; } = InputContextContainer.DefaultContextName;
}
}