mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-06 21:38:32 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
25 lines
564 B
C#
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", "" );
|
|
}
|
|
}
|
|
|
|
}
|