2014-01-25 21:46:20 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.Common
|
|
|
|
|
{
|
2014-12-13 02:31:31 +00:00
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
2017-07-10 19:02:00 +00:00
|
|
|
|
public class LuaMethodAttribute : Attribute
|
2014-01-25 21:46:20 +00:00
|
|
|
|
{
|
2017-07-10 19:02:00 +00:00
|
|
|
|
public LuaMethodAttribute(string name, string description)
|
2014-01-25 21:46:20 +00:00
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
Description = description;
|
|
|
|
|
}
|
2014-09-20 01:00:50 +00:00
|
|
|
|
|
2017-04-14 19:59:01 +00:00
|
|
|
|
public string Name { get; }
|
|
|
|
|
public string Description { get; }
|
2014-09-20 01:00:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-03-14 01:04:34 +00:00
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
|
|
|
public class LuaMethodExampleAttribute : Attribute
|
|
|
|
|
{
|
2018-03-14 01:05:30 +00:00
|
|
|
|
public LuaMethodExampleAttribute(string example)
|
2018-03-14 01:04:34 +00:00
|
|
|
|
{
|
|
|
|
|
Example = example;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Example { get; }
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-13 02:31:31 +00:00
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
2017-07-10 19:02:00 +00:00
|
|
|
|
public class LuaLibraryAttribute : Attribute
|
2014-09-20 01:00:50 +00:00
|
|
|
|
{
|
2017-07-10 19:02:00 +00:00
|
|
|
|
public LuaLibraryAttribute(bool released)
|
2014-09-20 01:00:50 +00:00
|
|
|
|
{
|
|
|
|
|
Released = released;
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-14 19:59:01 +00:00
|
|
|
|
public bool Released { get; }
|
2014-01-25 21:46:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|