using Robust.Client.GameObjects.EntitySystems;
using Robust.Shared.GameObjects;
using Robust.Shared.Input;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
namespace Robust.Client.GameObjects.Components
{
///
/// Defines data fields used in the .
///
class InputComponent : Component
{
///
public override string Name => "Input";
///
/// The context that will be made active for a client that attaches to this entity.
///
[ViewVariables(VVAccess.ReadWrite)]
public string ContextName { get; set; }
///
public override void ExposeData(ObjectSerializer serializer)
{
base.ExposeData(serializer);
serializer.DataReadWriteFunction("context", InputContextContainer.DefaultContextName, value => ContextName = value, () => ContextName);
}
}
}