12345678910111213141516171819202122232425 |
- 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)]
- // sealed
- public class LuaGlobalAttribute : Attribute
- {
- private string name,descript;
- /// <summary>
- /// An alternative name to use for calling the function in Lua - leave empty for CLR name
- /// </summary>
- public string Name { get { return name; } set { name = value; }}
- /// <summary>
- /// A description of the function
- /// </summary>
- public string Description { get { return descript; } set { descript = value; }}
- }
- }
|