BizHawk/BizHawk.Client.Common/lua/LuaAttributes.cs

40 lines
791 B
C#
Raw Normal View History

2014-01-25 21:46:20 +00:00
using System;
namespace BizHawk.Client.Common
{
[AttributeUsage(AttributeTargets.Method)]
public class LuaMethodAttribute : Attribute
2014-01-25 21:46:20 +00:00
{
public LuaMethodAttribute(string name, string description)
2014-01-25 21:46:20 +00:00
{
Name = name;
Description = description;
}
public string Name { get; }
public string Description { get; }
}
[AttributeUsage(AttributeTargets.Method)]
public class LuaMethodExampleAttribute : Attribute
{
public LuaMethodExampleAttribute(string example)
{
Example = example;
}
public string Example { get; }
}
[AttributeUsage(AttributeTargets.Class)]
public class LuaLibraryAttribute : Attribute
{
public LuaLibraryAttribute(bool released)
{
Released = released;
}
public bool Released { get; }
2014-01-25 21:46:20 +00:00
}
}