Files
RobustToolbox/Robust.Shared/ViewVariables/ViewVariablesMemberSelector.cs
T
SilverandGitHub 25926a17b7 Renames SS14.* to Robust.* (#793)
RobustToolbox projects should be named Robust.* 

This PR changes the RobustToolbox projects from SS14.* to Robust.*

Updates SS14.* prefixes/namespaces to Robust.*
Updates SpaceStation14.sln to RobustToolbox.sln
Updates MSBUILD/SS14.* to MSBUILD/Robust.*
Updates CSProject and MSBuild references for the above
Updates git_helper.py
Removes Runserver and Runclient as they are unusable
2019-04-15 20:24:59 -06:00

41 lines
1.3 KiB
C#

using System;
using System.Collections;
using Robust.Shared.Serialization;
namespace Robust.Shared.ViewVariables
{
/// <summary>
/// When used as an index in <see cref="ViewVariablesSessionRelativeSelector.PropertyIndex"/>,
/// refers to a member (field or property) on the object of the session.
/// </summary>
[Serializable, NetSerializable]
public class ViewVariablesMemberSelector
{
public ViewVariablesMemberSelector(int index)
{
Index = index;
}
/// <summary>
/// The index of the member. These indices assigned by the server-side member trait.
/// It's an index instead of a dump string to solve the theoretical case of member hiding.
/// </summary>
public int Index { get; set; }
}
/// <summary>
/// When used as an index in <see cref="ViewVariablesSessionRelativeSelector.PropertyIndex"/>,
/// refers to an index in the results of a <see cref="IEnumerable"/>.
/// </summary>
[Serializable, NetSerializable]
public class ViewVariablesEnumerableIndexSelector
{
public ViewVariablesEnumerableIndexSelector(int index)
{
Index = index;
}
public int Index { get; set; }
}
}