66 lines
2.2 KiB
C#
66 lines
2.2 KiB
C#
using System;
|
|
|
|
namespace UnityEngine.Bindings
|
|
{
|
|
// Token: 0x020004A3 RID: 1187
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
|
internal class NativeTypeAttribute : Attribute, IBindingsHeaderProviderAttribute, IBindingsGenerateMarshallingTypeAttribute, IBindingsAttribute
|
|
{
|
|
// Token: 0x06003AEF RID: 15087 RVA: 0x000678C8 File Offset: 0x00065AC8
|
|
public NativeTypeAttribute()
|
|
{
|
|
this.CodegenOptions = CodegenOptions.Auto;
|
|
}
|
|
|
|
// Token: 0x06003AF0 RID: 15088 RVA: 0x000678D8 File Offset: 0x00065AD8
|
|
public NativeTypeAttribute(CodegenOptions codegenOptions)
|
|
{
|
|
this.CodegenOptions = codegenOptions;
|
|
}
|
|
|
|
// Token: 0x06003AF1 RID: 15089 RVA: 0x000678E8 File Offset: 0x00065AE8
|
|
public NativeTypeAttribute(string header)
|
|
{
|
|
if (header == null)
|
|
{
|
|
throw new ArgumentNullException("header");
|
|
}
|
|
if (header == "")
|
|
{
|
|
throw new ArgumentException("header cannot be empty", "header");
|
|
}
|
|
this.CodegenOptions = CodegenOptions.Auto;
|
|
this.Header = header;
|
|
}
|
|
|
|
// Token: 0x06003AF2 RID: 15090 RVA: 0x0006793C File Offset: 0x00065B3C
|
|
public NativeTypeAttribute(string header, CodegenOptions codegenOptions)
|
|
: this(header)
|
|
{
|
|
this.CodegenOptions = codegenOptions;
|
|
}
|
|
|
|
// Token: 0x06003AF3 RID: 15091 RVA: 0x00067950 File Offset: 0x00065B50
|
|
public NativeTypeAttribute(CodegenOptions codegenOptions, string intermediateStructName)
|
|
: this(codegenOptions)
|
|
{
|
|
this.IntermediateScriptingStructName = intermediateStructName;
|
|
}
|
|
|
|
// Token: 0x17000D65 RID: 3429
|
|
// (get) Token: 0x06003AF4 RID: 15092 RVA: 0x00067964 File Offset: 0x00065B64
|
|
// (set) Token: 0x06003AF5 RID: 15093 RVA: 0x00067980 File Offset: 0x00065B80
|
|
public string Header { get; set; }
|
|
|
|
// Token: 0x17000D66 RID: 3430
|
|
// (get) Token: 0x06003AF6 RID: 15094 RVA: 0x0006798C File Offset: 0x00065B8C
|
|
// (set) Token: 0x06003AF7 RID: 15095 RVA: 0x000679A8 File Offset: 0x00065BA8
|
|
public string IntermediateScriptingStructName { get; set; }
|
|
|
|
// Token: 0x17000D67 RID: 3431
|
|
// (get) Token: 0x06003AF8 RID: 15096 RVA: 0x000679B4 File Offset: 0x00065BB4
|
|
// (set) Token: 0x06003AF9 RID: 15097 RVA: 0x000679D0 File Offset: 0x00065BD0
|
|
public CodegenOptions CodegenOptions { get; set; }
|
|
}
|
|
}
|