宣言的 API カタログ基盤を追加し生成器を接続

このコミットが含まれているのは:
routersys committed 2026-07-03 14:05:11 +09:00
1 親 807df7df8a
コミット 79a408cafd
6ファイル変更
+273 -1

検索条件に一致するファイルはありません

+38
ファイルの表示
@@ -0,0 +1,38 @@
namespace LuaScript.Api
{
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
internal sealed class LuaTableAttribute(string name) : Attribute
{
public string Name { get; } = name;
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false, AllowMultiple = true)]
internal sealed class LuaFunctionAttribute(string name, params string[] parameters) : Attribute
{
public string Name { get; } = name;
public string[] Parameters { get; } = parameters;
public string Table { get; init; } = string.Empty;
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
internal sealed class LuaConstantAttribute(string name) : Attribute
{
public string Name { get; } = name;
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly | AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
internal sealed class LuaVariableAttribute(string name) : Attribute
{
public string Name { get; } = name;
public string Table { get; init; } = string.Empty;
public bool InCatalog { get; init; } = true;
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false, AllowMultiple = true)]
internal sealed class LuaBuiltinAttribute(string name, params string[] parameters) : Attribute
{
public string Name { get; } = name;
public string[] Parameters { get; } = parameters;
public string Table { get; init; } = string.Empty;
}
}