scripts
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine
|
||||
{
|
||||
// Token: 0x02000189 RID: 393
|
||||
[RequireComponent(typeof(Rigidbody2D))]
|
||||
public sealed class CompositeCollider2D : Collider2D
|
||||
{
|
||||
// Token: 0x17000682 RID: 1666
|
||||
// (get) Token: 0x06001DFC RID: 7676
|
||||
// (set) Token: 0x06001DFD RID: 7677
|
||||
public extern CompositeCollider2D.GeometryType geometryType
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000683 RID: 1667
|
||||
// (get) Token: 0x06001DFE RID: 7678
|
||||
// (set) Token: 0x06001DFF RID: 7679
|
||||
public extern CompositeCollider2D.GenerationType generationType
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000684 RID: 1668
|
||||
// (get) Token: 0x06001E00 RID: 7680
|
||||
// (set) Token: 0x06001E01 RID: 7681
|
||||
public extern float vertexDistance
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000685 RID: 1669
|
||||
// (get) Token: 0x06001E02 RID: 7682
|
||||
// (set) Token: 0x06001E03 RID: 7683
|
||||
public extern float edgeRadius
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06001E04 RID: 7684 RVA: 0x000250E8 File Offset: 0x000232E8
|
||||
public void GenerateGeometry()
|
||||
{
|
||||
CompositeCollider2D.INTERNAL_CALL_GenerateGeometry(this);
|
||||
}
|
||||
|
||||
// Token: 0x06001E05 RID: 7685
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_GenerateGeometry(CompositeCollider2D self);
|
||||
|
||||
// Token: 0x06001E06 RID: 7686 RVA: 0x000250F4 File Offset: 0x000232F4
|
||||
public int GetPathPointCount(int index)
|
||||
{
|
||||
if (index < 0 || index >= this.pathCount)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("index", string.Format("Path index {0} must be in the range of 0 to {1}.", index, this.pathCount - 1));
|
||||
}
|
||||
return this.Internal_GetPathPointCount(index);
|
||||
}
|
||||
|
||||
// Token: 0x06001E07 RID: 7687
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern int Internal_GetPathPointCount(int index);
|
||||
|
||||
// Token: 0x06001E08 RID: 7688 RVA: 0x0002514C File Offset: 0x0002334C
|
||||
public int GetPath(int index, Vector2[] points)
|
||||
{
|
||||
if (index < 0 || index >= this.pathCount)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("index", string.Format("Path index {0} must be in the range of 0 to {1}.", index, this.pathCount - 1));
|
||||
}
|
||||
if (points == null)
|
||||
{
|
||||
throw new ArgumentNullException("points");
|
||||
}
|
||||
return this.Internal_GetPath(index, points);
|
||||
}
|
||||
|
||||
// Token: 0x06001E09 RID: 7689
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern int Internal_GetPath(int index, Vector2[] points);
|
||||
|
||||
// Token: 0x17000686 RID: 1670
|
||||
// (get) Token: 0x06001E0A RID: 7690
|
||||
public extern int pathCount
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000687 RID: 1671
|
||||
// (get) Token: 0x06001E0B RID: 7691
|
||||
public extern int pointCount
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0200018A RID: 394
|
||||
public enum GeometryType
|
||||
{
|
||||
// Token: 0x04000449 RID: 1097
|
||||
Outlines,
|
||||
// Token: 0x0400044A RID: 1098
|
||||
Polygons
|
||||
}
|
||||
|
||||
// Token: 0x0200018B RID: 395
|
||||
public enum GenerationType
|
||||
{
|
||||
// Token: 0x0400044C RID: 1100
|
||||
Synchronous,
|
||||
// Token: 0x0400044D RID: 1101
|
||||
Manual
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user