scripts
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine
|
||||
{
|
||||
// Token: 0x02000471 RID: 1137
|
||||
[UsedByNativeCode]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class TrackedReference
|
||||
{
|
||||
// Token: 0x06003965 RID: 14693 RVA: 0x00063AF4 File Offset: 0x00061CF4
|
||||
protected TrackedReference()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06003966 RID: 14694 RVA: 0x00063B00 File Offset: 0x00061D00
|
||||
public static bool operator ==(TrackedReference x, TrackedReference y)
|
||||
{
|
||||
bool flag;
|
||||
if (y == null && x == null)
|
||||
{
|
||||
flag = true;
|
||||
}
|
||||
else if (y == null)
|
||||
{
|
||||
flag = x.m_Ptr == IntPtr.Zero;
|
||||
}
|
||||
else if (x == null)
|
||||
{
|
||||
flag = y.m_Ptr == IntPtr.Zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
flag = x.m_Ptr == y.m_Ptr;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06003967 RID: 14695 RVA: 0x00063B78 File Offset: 0x00061D78
|
||||
public static bool operator !=(TrackedReference x, TrackedReference y)
|
||||
{
|
||||
return !(x == y);
|
||||
}
|
||||
|
||||
// Token: 0x06003968 RID: 14696 RVA: 0x00063B98 File Offset: 0x00061D98
|
||||
public override bool Equals(object o)
|
||||
{
|
||||
return o as TrackedReference == this;
|
||||
}
|
||||
|
||||
// Token: 0x06003969 RID: 14697 RVA: 0x00063BBC File Offset: 0x00061DBC
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return (int)this.m_Ptr;
|
||||
}
|
||||
|
||||
// Token: 0x0600396A RID: 14698 RVA: 0x00063BDC File Offset: 0x00061DDC
|
||||
public static implicit operator bool(TrackedReference exists)
|
||||
{
|
||||
return exists != null;
|
||||
}
|
||||
|
||||
// Token: 0x0400116A RID: 4458
|
||||
internal IntPtr m_Ptr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user