24 lines
720 B
C#
24 lines
720 B
C#
using System;
|
|
|
|
namespace LuaInterface
|
|
{
|
|
/// <summary>
|
|
/// Marks a method for global usage in Lua scripts
|
|
/// </summary>
|
|
/// <see cref="LuaRegistrationHelper.TaggedInstanceMethods"/>
|
|
/// <see cref="LuaRegistrationHelper.TaggedStaticMethods"/>
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public sealed class LuaGlobalAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// An alternative name to use for calling the function in Lua - leave empty for CLR name
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// A description of the function
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
}
|
|
}
|