Files
sbox-public/engine/Sandbox.System/Attributes/Input.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

25 lines
564 B
C#

namespace Sandbox
{
/// <summary>
/// Makes this method available as a Map Logic Input, for use in the Hammer Editor. This is only applicable to entities.
/// </summary>
[AttributeUsage( AttributeTargets.Method )]
public class InputAttribute : Attribute
{
/// <summary>
/// Desired name of this input. If not set, the method's name will be used.
/// </summary>
public string Name { get; set; }
public InputAttribute() : base()
{
}
public InputAttribute( string name )
{
Name = name.Replace( " ", "" ).Replace( "\t", "" );
}
}
}