using System;
using Robust.Shared.Serialization;
namespace Robust.Shared.ViewVariables
{
///
/// Attribute to make a property or field accessible to VV.
///
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
public sealed class ViewVariablesAttribute : Attribute
{
public readonly VVAccess Access = VVAccess.ReadOnly;
public ViewVariablesAttribute()
{
}
public ViewVariablesAttribute(VVAccess access)
{
Access = access;
}
}
[Serializable, NetSerializable]
public enum VVAccess : byte
{
///
/// This property can only be read, not written.
///
ReadOnly = 0,
///
/// This property is read and writable.
///
ReadWrite = 1,
}
}