scripts
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Internal
|
||||
{
|
||||
// Token: 0x020004C2 RID: 1218
|
||||
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.GenericParameter)]
|
||||
[Serializable]
|
||||
public class DefaultValueAttribute : Attribute
|
||||
{
|
||||
// Token: 0x06003B81 RID: 15233 RVA: 0x000688C4 File Offset: 0x00066AC4
|
||||
public DefaultValueAttribute(string value)
|
||||
{
|
||||
this.DefaultValue = value;
|
||||
}
|
||||
|
||||
// Token: 0x17000D7E RID: 3454
|
||||
// (get) Token: 0x06003B82 RID: 15234 RVA: 0x000688D4 File Offset: 0x00066AD4
|
||||
public object Value
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.DefaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003B83 RID: 15235 RVA: 0x000688F0 File Offset: 0x00066AF0
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
DefaultValueAttribute defaultValueAttribute = obj as DefaultValueAttribute;
|
||||
bool flag;
|
||||
if (defaultValueAttribute == null)
|
||||
{
|
||||
flag = false;
|
||||
}
|
||||
else if (this.DefaultValue == null)
|
||||
{
|
||||
flag = defaultValueAttribute.Value == null;
|
||||
}
|
||||
else
|
||||
{
|
||||
flag = this.DefaultValue.Equals(defaultValueAttribute.Value);
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06003B84 RID: 15236 RVA: 0x00068944 File Offset: 0x00066B44
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int num;
|
||||
if (this.DefaultValue == null)
|
||||
{
|
||||
num = base.GetHashCode();
|
||||
}
|
||||
else
|
||||
{
|
||||
num = this.DefaultValue.GetHashCode();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x040011E9 RID: 4585
|
||||
private object DefaultValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Internal
|
||||
{
|
||||
// Token: 0x020004C3 RID: 1219
|
||||
[Serializable]
|
||||
public class ExcludeFromDocsAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
using UnityEngine.VR;
|
||||
|
||||
namespace UnityEngine.Internal.VR
|
||||
{
|
||||
// Token: 0x020002FD RID: 765
|
||||
public static class VRTestMock
|
||||
{
|
||||
// Token: 0x06003154 RID: 12628
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void Reset();
|
||||
|
||||
// Token: 0x06003155 RID: 12629
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void AddTrackedDevice(VRNode nodeType);
|
||||
|
||||
// Token: 0x06003156 RID: 12630 RVA: 0x00049B84 File Offset: 0x00047D84
|
||||
public static void UpdateTrackedDevice(VRNode nodeType, Vector3 position, Quaternion rotation)
|
||||
{
|
||||
VRTestMock.INTERNAL_CALL_UpdateTrackedDevice(nodeType, ref position, ref rotation);
|
||||
}
|
||||
|
||||
// Token: 0x06003157 RID: 12631
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_UpdateTrackedDevice(VRNode nodeType, ref Vector3 position, ref Quaternion rotation);
|
||||
|
||||
// Token: 0x06003158 RID: 12632 RVA: 0x00049B94 File Offset: 0x00047D94
|
||||
public static void UpdateLeftEye(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
VRTestMock.INTERNAL_CALL_UpdateLeftEye(ref position, ref rotation);
|
||||
}
|
||||
|
||||
// Token: 0x06003159 RID: 12633
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_UpdateLeftEye(ref Vector3 position, ref Quaternion rotation);
|
||||
|
||||
// Token: 0x0600315A RID: 12634 RVA: 0x00049BA0 File Offset: 0x00047DA0
|
||||
public static void UpdateRightEye(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
VRTestMock.INTERNAL_CALL_UpdateRightEye(ref position, ref rotation);
|
||||
}
|
||||
|
||||
// Token: 0x0600315B RID: 12635
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_UpdateRightEye(ref Vector3 position, ref Quaternion rotation);
|
||||
|
||||
// Token: 0x0600315C RID: 12636 RVA: 0x00049BAC File Offset: 0x00047DAC
|
||||
public static void UpdateCenterEye(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
VRTestMock.INTERNAL_CALL_UpdateCenterEye(ref position, ref rotation);
|
||||
}
|
||||
|
||||
// Token: 0x0600315D RID: 12637
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_UpdateCenterEye(ref Vector3 position, ref Quaternion rotation);
|
||||
|
||||
// Token: 0x0600315E RID: 12638 RVA: 0x00049BB8 File Offset: 0x00047DB8
|
||||
public static void UpdateHead(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
VRTestMock.INTERNAL_CALL_UpdateHead(ref position, ref rotation);
|
||||
}
|
||||
|
||||
// Token: 0x0600315F RID: 12639
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_UpdateHead(ref Vector3 position, ref Quaternion rotation);
|
||||
|
||||
// Token: 0x06003160 RID: 12640 RVA: 0x00049BC4 File Offset: 0x00047DC4
|
||||
public static void UpdateLeftHand(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
VRTestMock.INTERNAL_CALL_UpdateLeftHand(ref position, ref rotation);
|
||||
}
|
||||
|
||||
// Token: 0x06003161 RID: 12641
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_UpdateLeftHand(ref Vector3 position, ref Quaternion rotation);
|
||||
|
||||
// Token: 0x06003162 RID: 12642 RVA: 0x00049BD0 File Offset: 0x00047DD0
|
||||
public static void UpdateRightHand(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
VRTestMock.INTERNAL_CALL_UpdateRightHand(ref position, ref rotation);
|
||||
}
|
||||
|
||||
// Token: 0x06003163 RID: 12643
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void INTERNAL_CALL_UpdateRightHand(ref Vector3 position, ref Quaternion rotation);
|
||||
|
||||
// Token: 0x06003164 RID: 12644
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void AddController(string controllerName);
|
||||
|
||||
// Token: 0x06003165 RID: 12645
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void UpdateControllerAxis(string controllerName, int axis, float value);
|
||||
|
||||
// Token: 0x06003166 RID: 12646
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void UpdateControllerButton(string controllerName, int button, bool pressed);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user