Add LuaInterface project
This commit is contained in:
23
LuaInterface/LuaGlobalAttribute.cs
Normal file
23
LuaInterface/LuaGlobalAttribute.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user