forked from cgvr/DeltaVR
Initial Commit
This commit is contained in:
37
Assets/Oculus/Platform/Scripts/AbuseReportOptions.cs
Normal file
37
Assets/Oculus/Platform/Scripts/AbuseReportOptions.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AbuseReportOptions {
|
||||
|
||||
public AbuseReportOptions() {
|
||||
Handle = CAPI.ovr_AbuseReportOptions_Create();
|
||||
}
|
||||
|
||||
public void SetPreventPeopleChooser(bool value) {
|
||||
CAPI.ovr_AbuseReportOptions_SetPreventPeopleChooser(Handle, value);
|
||||
}
|
||||
|
||||
public void SetReportType(AbuseReportType value) {
|
||||
CAPI.ovr_AbuseReportOptions_SetReportType(Handle, value);
|
||||
}
|
||||
|
||||
|
||||
// For passing to native C
|
||||
public static explicit operator IntPtr(AbuseReportOptions options) {
|
||||
return options != null ? options.Handle : IntPtr.Zero;
|
||||
}
|
||||
|
||||
~AbuseReportOptions() {
|
||||
CAPI.ovr_AbuseReportOptions_Destroy(Handle);
|
||||
}
|
||||
|
||||
IntPtr Handle;
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/AbuseReportOptions.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/AbuseReportOptions.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0645da8344fc475469d13a6494437f8e
|
||||
timeCreated: 1533910660
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Oculus/Platform/Scripts/AbuseReportType.cs
Normal file
21
Assets/Oculus/Platform/Scripts/AbuseReportType.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum AbuseReportType : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("OBJECT")]
|
||||
Object,
|
||||
|
||||
[Description("USER")]
|
||||
User,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/AbuseReportType.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/AbuseReportType.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c69cf9c4f527f9e4a8dc49125afacc7b
|
||||
timeCreated: 1533910663
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Oculus/Platform/Scripts/AchievementType.cs
Normal file
24
Assets/Oculus/Platform/Scripts/AchievementType.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum AchievementType : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("SIMPLE")]
|
||||
Simple,
|
||||
|
||||
[Description("BITFIELD")]
|
||||
Bitfield,
|
||||
|
||||
[Description("COUNT")]
|
||||
Count,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/AchievementType.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/AchievementType.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 42d96355ad5dd4b4eab18452dbd62fa7
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
35
Assets/Oculus/Platform/Scripts/AndroidPlatform.cs
Normal file
35
Assets/Oculus/Platform/Scripts/AndroidPlatform.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
public class AndroidPlatform
|
||||
{
|
||||
public bool Initialize(string appId)
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
if(String.IsNullOrEmpty(appId))
|
||||
{
|
||||
throw new UnityException("AppID must not be null or empty");
|
||||
}
|
||||
return CAPI.ovr_UnityInitWrapper(appId);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
public Request<Models.PlatformInitialize> AsyncInitialize(string appId)
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
if(String.IsNullOrEmpty(appId))
|
||||
{
|
||||
throw new UnityException("AppID must not be null or empty");
|
||||
}
|
||||
return new Request<Models.PlatformInitialize>(CAPI.ovr_UnityInitWrapperAsynchronous(appId));
|
||||
#else
|
||||
return new Request<Models.PlatformInitialize>(0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/AndroidPlatform.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/AndroidPlatform.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7293b4a3c3806ad448e3b421baf984b1
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
33
Assets/Oculus/Platform/Scripts/ApplicationOptions.cs
Normal file
33
Assets/Oculus/Platform/Scripts/ApplicationOptions.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ApplicationOptions {
|
||||
|
||||
public ApplicationOptions() {
|
||||
Handle = CAPI.ovr_ApplicationOptions_Create();
|
||||
}
|
||||
|
||||
public void SetDeeplinkMessage(string value) {
|
||||
CAPI.ovr_ApplicationOptions_SetDeeplinkMessage(Handle, value);
|
||||
}
|
||||
|
||||
|
||||
// For passing to native C
|
||||
public static explicit operator IntPtr(ApplicationOptions options) {
|
||||
return options != null ? options.Handle : IntPtr.Zero;
|
||||
}
|
||||
|
||||
~ApplicationOptions() {
|
||||
CAPI.ovr_ApplicationOptions_Destroy(Handle);
|
||||
}
|
||||
|
||||
IntPtr Handle;
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/ApplicationOptions.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/ApplicationOptions.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d089d8a70f920a5469fca1917d5e5122
|
||||
timeCreated: 1523486800
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
126
Assets/Oculus/Platform/Scripts/BufferedAudioStream.cs
Normal file
126
Assets/Oculus/Platform/Scripts/BufferedAudioStream.cs
Normal file
@@ -0,0 +1,126 @@
|
||||
//#define VERBOSE_LOGGING
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
using Oculus.Platform;
|
||||
|
||||
public class BufferedAudioStream {
|
||||
const bool VerboseLogging = false;
|
||||
AudioSource audio;
|
||||
|
||||
float[] audioBuffer;
|
||||
int writePos;
|
||||
|
||||
const float bufferLengthSeconds = 0.25f;
|
||||
const int sampleRate = 48000;
|
||||
const int bufferSize = (int)(sampleRate * bufferLengthSeconds);
|
||||
const float playbackDelayTimeSeconds = 0.05f;
|
||||
|
||||
float playbackDelayRemaining;
|
||||
float remainingBufferTime;
|
||||
|
||||
public BufferedAudioStream(AudioSource audio) {
|
||||
audioBuffer = new float[bufferSize];
|
||||
this.audio = audio;
|
||||
|
||||
audio.loop = true;
|
||||
audio.clip = AudioClip.Create("", bufferSize, 1, sampleRate, false);
|
||||
|
||||
Stop();
|
||||
}
|
||||
|
||||
public void Update () {
|
||||
|
||||
if(remainingBufferTime > 0)
|
||||
{
|
||||
#if VERBOSE_LOGGING
|
||||
Debug.Log(string.Format("current time: {0}, remainingBufferTime: {1}", Time.time, remainingBufferTime));
|
||||
#endif
|
||||
|
||||
if (!audio.isPlaying && remainingBufferTime > playbackDelayTimeSeconds)
|
||||
{
|
||||
playbackDelayRemaining -= Time.deltaTime;
|
||||
if (playbackDelayRemaining <= 0)
|
||||
{
|
||||
#if VERBOSE_LOGGING
|
||||
Debug.Log("Starting playback");
|
||||
#endif
|
||||
audio.Play();
|
||||
}
|
||||
}
|
||||
|
||||
if (audio.isPlaying)
|
||||
{
|
||||
remainingBufferTime -= Time.deltaTime;
|
||||
if (remainingBufferTime < 0)
|
||||
{
|
||||
remainingBufferTime = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (remainingBufferTime <= 0)
|
||||
{
|
||||
if (audio.isPlaying)
|
||||
{
|
||||
Debug.Log("Buffer empty, stopping " + DateTime.Now);
|
||||
Stop();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (writePos != 0)
|
||||
{
|
||||
Debug.LogError("writePos non zero while not playing, how did this happen?");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Stop()
|
||||
{
|
||||
audio.Stop();
|
||||
audio.time = 0;
|
||||
writePos = 0;
|
||||
playbackDelayRemaining = playbackDelayTimeSeconds;
|
||||
}
|
||||
|
||||
public void AddData(float[] samples) {
|
||||
int remainingWriteLength = samples.Length;
|
||||
|
||||
if(writePos > audioBuffer.Length) {
|
||||
throw new Exception();
|
||||
}
|
||||
|
||||
do {
|
||||
int writeLength = remainingWriteLength;
|
||||
int remainingSpace = audioBuffer.Length - writePos;
|
||||
|
||||
if(writeLength > remainingSpace) {
|
||||
writeLength = remainingSpace;
|
||||
}
|
||||
|
||||
Array.Copy(samples, 0, audioBuffer, writePos, writeLength);
|
||||
|
||||
remainingWriteLength -= writeLength;
|
||||
writePos += writeLength;
|
||||
if(writePos > audioBuffer.Length) {
|
||||
throw new Exception();
|
||||
}
|
||||
if(writePos == audioBuffer.Length) {
|
||||
writePos = 0;
|
||||
}
|
||||
} while(remainingWriteLength > 0);
|
||||
|
||||
#if VERBOSE_LOGGING
|
||||
float prev = remainingBufferTime;
|
||||
#endif
|
||||
remainingBufferTime += (float)samples.Length / sampleRate;
|
||||
#if VERBOSE_LOGGING
|
||||
Debug.Log(string.Format("previous remaining: {0}, new remaining: {1}, added {2} samples", prev, remainingBufferTime, samples.Length));
|
||||
#endif
|
||||
audio.clip.SetData(audioBuffer, 0);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/BufferedAudioStream.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/BufferedAudioStream.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6d1f538558efdb42ae724d9bb36e538
|
||||
timeCreated: 1523486801
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
3810
Assets/Oculus/Platform/Scripts/CAPI.cs
Normal file
3810
Assets/Oculus/Platform/Scripts/CAPI.cs
Normal file
File diff suppressed because it is too large
Load Diff
12
Assets/Oculus/Platform/Scripts/CAPI.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/CAPI.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34df728904a3e304b84b2facc7fac233
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
172
Assets/Oculus/Platform/Scripts/Callback.cs
Normal file
172
Assets/Oculus/Platform/Scripts/Callback.cs
Normal file
@@ -0,0 +1,172 @@
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
using UnityEngine;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public static class Callback
|
||||
{
|
||||
#region Notification Callbacks: Exposed through Oculus.Platform.Platform
|
||||
|
||||
internal static void SetNotificationCallback<T>(Message.MessageType type, Message<T>.Callback callback)
|
||||
{
|
||||
if (callback == null) {
|
||||
throw new Exception ("Cannot provide a null notification callback.");
|
||||
}
|
||||
|
||||
notificationCallbacks[type] = new RequestCallback<T>(callback);
|
||||
|
||||
if (type == Message.MessageType.Notification_Room_InviteAccepted)
|
||||
{
|
||||
FlushRoomInviteNotificationQueue();
|
||||
}
|
||||
}
|
||||
|
||||
internal static void SetNotificationCallback(Message.MessageType type, Message.Callback callback)
|
||||
{
|
||||
if (callback == null) {
|
||||
throw new Exception ("Cannot provide a null notification callback.");
|
||||
}
|
||||
|
||||
notificationCallbacks[type] = new RequestCallback(callback);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Adding and running request handlers
|
||||
internal static void AddRequest(Request request)
|
||||
{
|
||||
if (request.RequestID == 0)
|
||||
{
|
||||
// An early out error happened in the C SDK. Do not add it to the mapping of callbacks
|
||||
Debug.LogError("An unknown error occurred. Request failed.");
|
||||
return;
|
||||
}
|
||||
requestIDsToRequests[request.RequestID] = request;
|
||||
}
|
||||
|
||||
internal static void RunCallbacks()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
var msg = Platform.Message.PopMessage();
|
||||
if (msg == null)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
HandleMessage(msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal static void RunLimitedCallbacks(uint limit)
|
||||
{
|
||||
for (var i = 0; i < limit; ++i)
|
||||
{
|
||||
var msg = Platform.Message.PopMessage();
|
||||
if (msg == null)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
HandleMessage(msg);
|
||||
}
|
||||
}
|
||||
|
||||
internal static void OnApplicationQuit()
|
||||
{
|
||||
// Clear out all outstanding callbacks
|
||||
requestIDsToRequests.Clear();
|
||||
notificationCallbacks.Clear();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Callback Internals
|
||||
private static Dictionary<ulong, Request> requestIDsToRequests = new Dictionary<ulong, Request>();
|
||||
private static Dictionary<Message.MessageType, RequestCallback> notificationCallbacks = new Dictionary<Message.MessageType, RequestCallback>();
|
||||
|
||||
private static bool hasRegisteredRoomInviteNotificationHandler = false;
|
||||
private static List<Message> pendingRoomInviteNotifications = new List<Message>();
|
||||
private static void FlushRoomInviteNotificationQueue() {
|
||||
hasRegisteredRoomInviteNotificationHandler = true;
|
||||
foreach (Message msg in pendingRoomInviteNotifications) {
|
||||
HandleMessage(msg);
|
||||
}
|
||||
pendingRoomInviteNotifications.Clear();
|
||||
}
|
||||
|
||||
private class RequestCallback
|
||||
{
|
||||
private Message.Callback messageCallback;
|
||||
|
||||
public RequestCallback() { }
|
||||
|
||||
public RequestCallback(Message.Callback callback)
|
||||
{
|
||||
this.messageCallback = callback;
|
||||
}
|
||||
|
||||
public virtual void HandleMessage(Message msg)
|
||||
{
|
||||
if (messageCallback != null)
|
||||
{
|
||||
messageCallback(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private sealed class RequestCallback<T> : RequestCallback
|
||||
{
|
||||
private Message<T>.Callback callback;
|
||||
public RequestCallback(Message<T>.Callback callback)
|
||||
{
|
||||
this.callback = callback;
|
||||
}
|
||||
|
||||
public override void HandleMessage(Message msg)
|
||||
{
|
||||
if (callback != null)
|
||||
{
|
||||
|
||||
// We need to queue up GameInvites because the callback runner will be called before a handler has beeen set.
|
||||
if (!hasRegisteredRoomInviteNotificationHandler && msg.Type == Message.MessageType.Notification_Room_InviteAccepted)
|
||||
{
|
||||
pendingRoomInviteNotifications.Add(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg is Message<T>)
|
||||
{
|
||||
callback((Message<T>)msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Unable to handle message: " + msg.GetType());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static void HandleMessage(Message msg)
|
||||
{
|
||||
Request request;
|
||||
if (msg.RequestID != 0 && requestIDsToRequests.TryGetValue(msg.RequestID, out request)) {
|
||||
try {
|
||||
request.HandleMessage(msg);
|
||||
} finally {
|
||||
requestIDsToRequests.Remove(msg.RequestID);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
RequestCallback callbackHolder;
|
||||
if (notificationCallbacks.TryGetValue(msg.Type, out callbackHolder))
|
||||
{
|
||||
callbackHolder.HandleMessage(msg);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/Callback.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/Callback.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 41d3953e2b7bcb44d91f97e274f9f64d
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
43
Assets/Oculus/Platform/Scripts/CallbackRunner.cs
Normal file
43
Assets/Oculus/Platform/Scripts/CallbackRunner.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
public class CallbackRunner : MonoBehaviour
|
||||
{
|
||||
[DllImport(CAPI.DLL_NAME)]
|
||||
static extern void ovr_UnityResetTestPlatform();
|
||||
|
||||
public bool IsPersistantBetweenSceneLoads = true;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
var existingCallbackRunner = FindObjectOfType<CallbackRunner>();
|
||||
if (existingCallbackRunner != this)
|
||||
{
|
||||
Debug.LogWarning("You only need one instance of CallbackRunner");
|
||||
}
|
||||
if (IsPersistantBetweenSceneLoads)
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
Request.RunCallbacks();
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
ovr_UnityResetTestPlatform();
|
||||
#endif
|
||||
}
|
||||
|
||||
void OnApplicationQuit()
|
||||
{
|
||||
Callback.OnApplicationQuit();
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/CallbackRunner.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/CallbackRunner.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f2caa5c6ad39b6742a7ddc2c273976c7
|
||||
timeCreated: 1523486801
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Oculus/Platform/Scripts/ChallengeCreationType.cs
Normal file
21
Assets/Oculus/Platform/Scripts/ChallengeCreationType.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum ChallengeCreationType : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("USER_CREATED")]
|
||||
UserCreated,
|
||||
|
||||
[Description("DEVELOPER_CREATED")]
|
||||
DeveloperCreated,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Oculus/Platform/Scripts/ChallengeCreationType.cs.meta
Normal file
11
Assets/Oculus/Platform/Scripts/ChallengeCreationType.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0586a8ee65be3b64eb5347fca6b046e1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
69
Assets/Oculus/Platform/Scripts/ChallengeOptions.cs
Normal file
69
Assets/Oculus/Platform/Scripts/ChallengeOptions.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ChallengeOptions {
|
||||
|
||||
public ChallengeOptions() {
|
||||
Handle = CAPI.ovr_ChallengeOptions_Create();
|
||||
}
|
||||
|
||||
public void SetDescription(string value) {
|
||||
CAPI.ovr_ChallengeOptions_SetDescription(Handle, value);
|
||||
}
|
||||
|
||||
public void SetEndDate(DateTime value) {
|
||||
CAPI.ovr_ChallengeOptions_SetEndDate(Handle, value);
|
||||
}
|
||||
|
||||
public void SetIncludeActiveChallenges(bool value) {
|
||||
CAPI.ovr_ChallengeOptions_SetIncludeActiveChallenges(Handle, value);
|
||||
}
|
||||
|
||||
public void SetIncludeFutureChallenges(bool value) {
|
||||
CAPI.ovr_ChallengeOptions_SetIncludeFutureChallenges(Handle, value);
|
||||
}
|
||||
|
||||
public void SetIncludePastChallenges(bool value) {
|
||||
CAPI.ovr_ChallengeOptions_SetIncludePastChallenges(Handle, value);
|
||||
}
|
||||
|
||||
public void SetLeaderboardName(string value) {
|
||||
CAPI.ovr_ChallengeOptions_SetLeaderboardName(Handle, value);
|
||||
}
|
||||
|
||||
public void SetStartDate(DateTime value) {
|
||||
CAPI.ovr_ChallengeOptions_SetStartDate(Handle, value);
|
||||
}
|
||||
|
||||
public void SetTitle(string value) {
|
||||
CAPI.ovr_ChallengeOptions_SetTitle(Handle, value);
|
||||
}
|
||||
|
||||
public void SetViewerFilter(ChallengeViewerFilter value) {
|
||||
CAPI.ovr_ChallengeOptions_SetViewerFilter(Handle, value);
|
||||
}
|
||||
|
||||
public void SetVisibility(ChallengeVisibility value) {
|
||||
CAPI.ovr_ChallengeOptions_SetVisibility(Handle, value);
|
||||
}
|
||||
|
||||
|
||||
// For passing to native C
|
||||
public static explicit operator IntPtr(ChallengeOptions options) {
|
||||
return options != null ? options.Handle : IntPtr.Zero;
|
||||
}
|
||||
|
||||
~ChallengeOptions() {
|
||||
CAPI.ovr_ChallengeOptions_Destroy(Handle);
|
||||
}
|
||||
|
||||
IntPtr Handle;
|
||||
}
|
||||
}
|
||||
11
Assets/Oculus/Platform/Scripts/ChallengeOptions.cs.meta
Normal file
11
Assets/Oculus/Platform/Scripts/ChallengeOptions.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 894c4e8ae2ac216488a3586d91f2c7da
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
27
Assets/Oculus/Platform/Scripts/ChallengeViewerFilter.cs
Normal file
27
Assets/Oculus/Platform/Scripts/ChallengeViewerFilter.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum ChallengeViewerFilter : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("ALL_VISIBLE")]
|
||||
AllVisible,
|
||||
|
||||
[Description("PARTICIPATING")]
|
||||
Participating,
|
||||
|
||||
[Description("INVITED")]
|
||||
Invited,
|
||||
|
||||
[Description("PARTICIPATING_OR_INVITED")]
|
||||
ParticipatingOrInvited,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Oculus/Platform/Scripts/ChallengeViewerFilter.cs.meta
Normal file
11
Assets/Oculus/Platform/Scripts/ChallengeViewerFilter.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48b889f77d3db794d8f1f2a85df66e80
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
27
Assets/Oculus/Platform/Scripts/ChallengeVisibility.cs
Normal file
27
Assets/Oculus/Platform/Scripts/ChallengeVisibility.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum ChallengeVisibility : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
/// Only those invited can participate in it. Everyone can see it
|
||||
[Description("INVITE_ONLY")]
|
||||
InviteOnly,
|
||||
|
||||
/// Everyone can participate and see this challenge
|
||||
[Description("PUBLIC")]
|
||||
Public,
|
||||
|
||||
/// Only those invited can participate and see this challenge
|
||||
[Description("PRIVATE")]
|
||||
Private,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Oculus/Platform/Scripts/ChallengeVisibility.cs.meta
Normal file
11
Assets/Oculus/Platform/Scripts/ChallengeVisibility.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c9174e5624a21444942e8000ac233ba
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
33
Assets/Oculus/Platform/Scripts/CloudStorageDataStatus.cs
Normal file
33
Assets/Oculus/Platform/Scripts/CloudStorageDataStatus.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum CloudStorageDataStatus : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("IN_SYNC")]
|
||||
InSync,
|
||||
|
||||
[Description("NEEDS_DOWNLOAD")]
|
||||
NeedsDownload,
|
||||
|
||||
[Description("REMOTE_DOWNLOADING")]
|
||||
RemoteDownloading,
|
||||
|
||||
[Description("NEEDS_UPLOAD")]
|
||||
NeedsUpload,
|
||||
|
||||
[Description("LOCAL_UPLOADING")]
|
||||
LocalUploading,
|
||||
|
||||
[Description("IN_CONFLICT")]
|
||||
InConflict,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4708b605fe779fe4384e9166eb21b85c
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Oculus/Platform/Scripts/CloudStorageUpdateStatus.cs
Normal file
24
Assets/Oculus/Platform/Scripts/CloudStorageUpdateStatus.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum CloudStorageUpdateStatus : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("OK")]
|
||||
Ok,
|
||||
|
||||
[Description("BETTER_VERSION_STORED")]
|
||||
BetterVersionStored,
|
||||
|
||||
[Description("MANUAL_MERGE_REQUIRED")]
|
||||
ManualMergeRequired,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b620ce00fa534d4f8f006da66d05d35
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
45
Assets/Oculus/Platform/Scripts/Decoder.cs
Normal file
45
Assets/Oculus/Platform/Scripts/Decoder.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
//This file is deprecated. Use the high level voip system instead:
|
||||
// https://developer3.oculus.com/documentation/platform/latest/concepts/dg-core-content/#dg-cc-voip
|
||||
#if false
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
namespace Oculus.Platform {
|
||||
|
||||
public class Decoder : IDisposable {
|
||||
|
||||
IntPtr dec;
|
||||
float[] decodedScratchBuffer;
|
||||
|
||||
public Decoder() {
|
||||
dec = CAPI.ovr_Voip_CreateDecoder();
|
||||
decodedScratchBuffer = new float[480 * 10];
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (dec != IntPtr.Zero)
|
||||
{
|
||||
CAPI.ovr_Voip_DestroyEncoder(dec);
|
||||
dec = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
public float[] Decode(byte[] data) {
|
||||
CAPI.ovr_VoipDecoder_Decode(dec, data, (uint)data.Length);
|
||||
|
||||
ulong gotSize = (ulong)CAPI.ovr_VoipDecoder_GetDecodedPCM(dec, decodedScratchBuffer, (UIntPtr)decodedScratchBuffer.Length);
|
||||
|
||||
if (gotSize > 0)
|
||||
{
|
||||
float[] pcm = new float[gotSize];
|
||||
Array.Copy(decodedScratchBuffer, pcm, (int)gotSize);
|
||||
return pcm;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
12
Assets/Oculus/Platform/Scripts/Decoder.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/Decoder.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 731601605a2facb4b8f3f211411a4693
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
45
Assets/Oculus/Platform/Scripts/Encoder.cs
Normal file
45
Assets/Oculus/Platform/Scripts/Encoder.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
//This file is deprecated. Use the high level voip system instead:
|
||||
// https://developer3.oculus.com/documentation/platform/latest/concepts/dg-core-content/#dg-cc-voip
|
||||
#if false
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
|
||||
namespace Oculus.Platform {
|
||||
|
||||
public class Encoder : IDisposable {
|
||||
IntPtr enc;
|
||||
|
||||
public Encoder() {
|
||||
enc = CAPI.ovr_Voip_CreateEncoder();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (enc != IntPtr.Zero)
|
||||
{
|
||||
CAPI.ovr_Voip_DestroyEncoder(enc);
|
||||
enc = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] Encode(float[] samples) {
|
||||
CAPI.ovr_VoipEncoder_AddPCM(enc, samples, (uint)samples.Length);
|
||||
|
||||
ulong size = (ulong)CAPI.ovr_VoipEncoder_GetCompressedDataSize(enc);
|
||||
if(size > 0) {
|
||||
byte[] compressedData = new byte[size]; //TODO 10376403 - pool this
|
||||
ulong sizeRead = (ulong)CAPI.ovr_VoipEncoder_GetCompressedData(enc, compressedData, (UIntPtr)size);
|
||||
|
||||
if (sizeRead != size)
|
||||
{
|
||||
throw new Exception("Read size differed from reported size");
|
||||
}
|
||||
return compressedData;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
12
Assets/Oculus/Platform/Scripts/Encoder.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/Encoder.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6ac5c6788e50aa4f9ce8e07d8605023
|
||||
timeCreated: 1523486801
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
15
Assets/Oculus/Platform/Scripts/IMicrophone.cs
Normal file
15
Assets/Oculus/Platform/Scripts/IMicrophone.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
public interface IMicrophone
|
||||
{
|
||||
void Start();
|
||||
|
||||
void Stop();
|
||||
|
||||
float[] Update();
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/IMicrophone.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/IMicrophone.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3bd3a2d44aa26f148bb61b2735a67028
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
13
Assets/Oculus/Platform/Scripts/IVoipPCMSource.cs
Normal file
13
Assets/Oculus/Platform/Scripts/IVoipPCMSource.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
public interface IVoipPCMSource
|
||||
{
|
||||
int GetPCM(float[] dest, int length);
|
||||
|
||||
void SetSenderID(ulong senderID);
|
||||
|
||||
void Update();
|
||||
|
||||
int PeekSizeElements();
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/IVoipPCMSource.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/IVoipPCMSource.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0dd741d18ee018045936b0f2f9c9b2f7
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Oculus/Platform/Scripts/KeyValuePairType.cs
Normal file
24
Assets/Oculus/Platform/Scripts/KeyValuePairType.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum KeyValuePairType : int
|
||||
{
|
||||
[Description("STRING")]
|
||||
String,
|
||||
|
||||
[Description("INTEGER")]
|
||||
Int,
|
||||
|
||||
[Description("DOUBLE")]
|
||||
Double,
|
||||
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/KeyValuePairType.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/KeyValuePairType.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 652351552fa9f694690760ab0f94c90a
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
27
Assets/Oculus/Platform/Scripts/LaunchType.cs
Normal file
27
Assets/Oculus/Platform/Scripts/LaunchType.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum LaunchType : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("NORMAL")]
|
||||
Normal,
|
||||
|
||||
[Description("INVITE")]
|
||||
Invite,
|
||||
|
||||
[Description("COORDINATED")]
|
||||
Coordinated,
|
||||
|
||||
[Description("DEEPLINK")]
|
||||
Deeplink,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/LaunchType.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/LaunchType.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19914a3b196ab06439965a325ac1da12
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Oculus/Platform/Scripts/LeaderboardFilterType.cs
Normal file
24
Assets/Oculus/Platform/Scripts/LeaderboardFilterType.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum LeaderboardFilterType : int
|
||||
{
|
||||
[Description("NONE")]
|
||||
None,
|
||||
|
||||
[Description("FRIENDS")]
|
||||
Friends,
|
||||
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("USER_IDS")]
|
||||
UserIds,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/LeaderboardFilterType.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/LeaderboardFilterType.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb882419e00a3424b83ba7ff72a0d3fd
|
||||
timeCreated: 1523486800
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Oculus/Platform/Scripts/LeaderboardStartAt.cs
Normal file
24
Assets/Oculus/Platform/Scripts/LeaderboardStartAt.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum LeaderboardStartAt : int
|
||||
{
|
||||
[Description("TOP")]
|
||||
Top,
|
||||
|
||||
[Description("CENTERED_ON_VIEWER")]
|
||||
CenteredOnViewer,
|
||||
|
||||
[Description("CENTERED_ON_VIEWER_OR_TOP")]
|
||||
CenteredOnViewerOrTop,
|
||||
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/LeaderboardStartAt.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/LeaderboardStartAt.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8e8523caca9803145a3e871dca67c0e5
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Oculus/Platform/Scripts/LivestreamingAudience.cs
Normal file
24
Assets/Oculus/Platform/Scripts/LivestreamingAudience.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum LivestreamingAudience : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("PUBLIC")]
|
||||
Public,
|
||||
|
||||
[Description("FRIENDS")]
|
||||
Friends,
|
||||
|
||||
[Description("ONLY_ME")]
|
||||
OnlyMe,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/LivestreamingAudience.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/LivestreamingAudience.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 73f525341669b334cb7179690b1545fd
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum LivestreamingMicrophoneStatus : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("MICROPHONE_ON")]
|
||||
MicrophoneOn,
|
||||
|
||||
[Description("MICROPHONE_OFF")]
|
||||
MicrophoneOff,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 200430e18cf27164c95796b4c3456b1f
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
30
Assets/Oculus/Platform/Scripts/LivestreamingStartStatus.cs
Normal file
30
Assets/Oculus/Platform/Scripts/LivestreamingStartStatus.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum LivestreamingStartStatus : int
|
||||
{
|
||||
[Description("SUCCESS")]
|
||||
Success = 1,
|
||||
|
||||
[Description("UNKNOWN")]
|
||||
Unknown = 0,
|
||||
|
||||
[Description("NO_PACKAGE_SET")]
|
||||
NoPackageSet = -1,
|
||||
|
||||
[Description("NO_FB_CONNECT")]
|
||||
NoFbConnect = -2,
|
||||
|
||||
[Description("NO_SESSION_ID")]
|
||||
NoSessionId = -3,
|
||||
|
||||
[Description("MISSING_PARAMETERS")]
|
||||
MissingParameters = -4,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 278e551ec7e02bf419ea10f24a330083
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,27 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum MatchmakingCriterionImportance : int
|
||||
{
|
||||
[Description("REQUIRED")]
|
||||
Required,
|
||||
|
||||
[Description("HIGH")]
|
||||
High,
|
||||
|
||||
[Description("MEDIUM")]
|
||||
Medium,
|
||||
|
||||
[Description("LOW")]
|
||||
Low,
|
||||
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 030eb76e37b12924e96e8b450291a220
|
||||
timeCreated: 1523486796
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
77
Assets/Oculus/Platform/Scripts/MatchmakingOptions.cs
Normal file
77
Assets/Oculus/Platform/Scripts/MatchmakingOptions.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MatchmakingOptions {
|
||||
|
||||
public MatchmakingOptions() {
|
||||
Handle = CAPI.ovr_MatchmakingOptions_Create();
|
||||
}
|
||||
|
||||
public void SetCreateRoomDataStore(string key, string value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetCreateRoomDataStoreString(Handle, key, value);
|
||||
}
|
||||
|
||||
public void ClearCreateRoomDataStore() {
|
||||
CAPI.ovr_MatchmakingOptions_ClearCreateRoomDataStore(Handle);
|
||||
}
|
||||
|
||||
public void SetCreateRoomJoinPolicy(RoomJoinPolicy value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetCreateRoomJoinPolicy(Handle, value);
|
||||
}
|
||||
|
||||
public void SetCreateRoomMaxUsers(uint value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetCreateRoomMaxUsers(Handle, value);
|
||||
}
|
||||
|
||||
public void AddEnqueueAdditionalUser(UInt64 userID) {
|
||||
CAPI.ovr_MatchmakingOptions_AddEnqueueAdditionalUser(Handle, userID);
|
||||
}
|
||||
|
||||
public void ClearEnqueueAdditionalUsers() {
|
||||
CAPI.ovr_MatchmakingOptions_ClearEnqueueAdditionalUsers(Handle);
|
||||
}
|
||||
|
||||
public void SetEnqueueDataSettings(string key, int value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsInt(Handle, key, value);
|
||||
}
|
||||
|
||||
public void SetEnqueueDataSettings(string key, double value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsDouble(Handle, key, value);
|
||||
}
|
||||
|
||||
public void SetEnqueueDataSettings(string key, string value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetEnqueueDataSettingsString(Handle, key, value);
|
||||
}
|
||||
|
||||
public void ClearEnqueueDataSettings() {
|
||||
CAPI.ovr_MatchmakingOptions_ClearEnqueueDataSettings(Handle);
|
||||
}
|
||||
|
||||
public void SetEnqueueIsDebug(bool value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetEnqueueIsDebug(Handle, value);
|
||||
}
|
||||
|
||||
public void SetEnqueueQueryKey(string value) {
|
||||
CAPI.ovr_MatchmakingOptions_SetEnqueueQueryKey(Handle, value);
|
||||
}
|
||||
|
||||
|
||||
// For passing to native C
|
||||
public static explicit operator IntPtr(MatchmakingOptions options) {
|
||||
return options != null ? options.Handle : IntPtr.Zero;
|
||||
}
|
||||
|
||||
~MatchmakingOptions() {
|
||||
CAPI.ovr_MatchmakingOptions_Destroy(Handle);
|
||||
}
|
||||
|
||||
IntPtr Handle;
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/MatchmakingOptions.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/MatchmakingOptions.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9b3e7ffb96e6594ea296771b88d7243
|
||||
timeCreated: 1523486801
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/Oculus/Platform/Scripts/MatchmakingStatApproach.cs
Normal file
21
Assets/Oculus/Platform/Scripts/MatchmakingStatApproach.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum MatchmakingStatApproach : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("TRAILING")]
|
||||
Trailing,
|
||||
|
||||
[Description("SWINGY")]
|
||||
Swingy,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03cfe1746fc38ae468f5a6a910bf0379
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
18
Assets/Oculus/Platform/Scripts/MediaContentType.cs
Normal file
18
Assets/Oculus/Platform/Scripts/MediaContentType.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
using Description = System.ComponentModel.DescriptionAttribute;
|
||||
|
||||
public enum MediaContentType : int
|
||||
{
|
||||
[Description("UNKNOWN")]
|
||||
Unknown,
|
||||
|
||||
[Description("PHOTO")]
|
||||
Photo,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/MediaContentType.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/MediaContentType.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4a27c72682442f94abd98f97d87f9cad
|
||||
timeCreated: 1523486798
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1665
Assets/Oculus/Platform/Scripts/Message.cs
Normal file
1665
Assets/Oculus/Platform/Scripts/Message.cs
Normal file
File diff suppressed because it is too large
Load Diff
12
Assets/Oculus/Platform/Scripts/Message.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/Message.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 09dafd74c8e70094d891a1ec896c3e95
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
73
Assets/Oculus/Platform/Scripts/MicrophoneInput.cs
Normal file
73
Assets/Oculus/Platform/Scripts/MicrophoneInput.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
//This file is deprecated. Use the high level voip system instead:
|
||||
// https://developer.oculus.com/documentation/unity/ps-voip/
|
||||
//
|
||||
// NOTE for android developers: The existence of UnityEngine.Microphone causes Unity to insert the
|
||||
// android.permission.RECORD_AUDIO permission into the AndroidManifest.xml generated at build time
|
||||
|
||||
#if OVR_PLATFORM_USE_MICROPHONE
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
|
||||
public class MicrophoneInput : IMicrophone
|
||||
{
|
||||
AudioClip microphoneClip;
|
||||
int lastMicrophoneSample;
|
||||
int micBufferSizeSamples;
|
||||
|
||||
private Dictionary<int, float[]> micSampleBuffers;
|
||||
|
||||
public MicrophoneInput()
|
||||
{
|
||||
int bufferLenSeconds = 1; //minimum size unity allows
|
||||
int inputFreq = 48000; //this frequency is fixed throughout the voip system atm
|
||||
microphoneClip = Microphone.Start(null, true, bufferLenSeconds, inputFreq);
|
||||
micBufferSizeSamples = bufferLenSeconds * inputFreq;
|
||||
|
||||
micSampleBuffers = new Dictionary<int, float[]>();
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
|
||||
public float[] Update()
|
||||
{
|
||||
int pos = Microphone.GetPosition(null);
|
||||
int copySize = 0;
|
||||
if (pos < lastMicrophoneSample)
|
||||
{
|
||||
int endOfBufferSize = micBufferSizeSamples - lastMicrophoneSample;
|
||||
copySize = endOfBufferSize + pos;
|
||||
}
|
||||
else
|
||||
{
|
||||
copySize = pos - lastMicrophoneSample;
|
||||
}
|
||||
|
||||
if (copySize == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
float[] samples;
|
||||
if (!micSampleBuffers.TryGetValue(copySize, out samples))
|
||||
{
|
||||
samples = new float[copySize];
|
||||
micSampleBuffers[copySize] = samples;
|
||||
}
|
||||
|
||||
microphoneClip.GetData(samples, lastMicrophoneSample);
|
||||
lastMicrophoneSample = pos;
|
||||
return samples;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
12
Assets/Oculus/Platform/Scripts/MicrophoneInput.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/MicrophoneInput.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2775d34a6e394754e897a9af26acdef3
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
58
Assets/Oculus/Platform/Scripts/MicrophoneInputNative.cs
Normal file
58
Assets/Oculus/Platform/Scripts/MicrophoneInputNative.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
//This file is deprecated. Use the high level voip system instead:
|
||||
// https://developer.oculus.com/documentation/unity/ps-voip/
|
||||
|
||||
#if OVR_PLATFORM_USE_MICROPHONE
|
||||
using UnityEngine;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Oculus.Platform
|
||||
{
|
||||
public class MicrophoneInputNative : IMicrophone
|
||||
{
|
||||
IntPtr mic;
|
||||
|
||||
int tempBufferSize = 960 * 10;
|
||||
float[] tempBuffer;
|
||||
|
||||
private Dictionary<int, float[]> micSampleBuffers;
|
||||
|
||||
public MicrophoneInputNative()
|
||||
{
|
||||
mic = CAPI.ovr_Microphone_Create();
|
||||
CAPI.ovr_Microphone_Start(mic);
|
||||
tempBuffer = new float[tempBufferSize];
|
||||
|
||||
micSampleBuffers = new Dictionary<int, float[]>();
|
||||
}
|
||||
|
||||
public float[] Update()
|
||||
{
|
||||
ulong readSize = (ulong)CAPI.ovr_Microphone_ReadData(mic, tempBuffer, (UIntPtr)tempBufferSize);
|
||||
if (readSize > 0)
|
||||
{
|
||||
float[] samples;
|
||||
if (!micSampleBuffers.TryGetValue((int)readSize, out samples))
|
||||
{
|
||||
samples = new float[readSize];
|
||||
micSampleBuffers[(int)readSize] = samples;
|
||||
}
|
||||
Array.Copy(tempBuffer, samples, (int)readSize);
|
||||
return samples;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
CAPI.ovr_Microphone_Stop(mic);
|
||||
CAPI.ovr_Microphone_Destroy(mic);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
12
Assets/Oculus/Platform/Scripts/MicrophoneInputNative.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/MicrophoneInputNative.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a5cd1f4154602cb48a4a554d20e6d40c
|
||||
timeCreated: 1523486800
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Oculus/Platform/Scripts/Models.meta
Normal file
8
Assets/Oculus/Platform/Scripts/Models.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e2f60f4d66d21f4ba1e1291307a2535
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,22 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AbuseReportRecording
|
||||
{
|
||||
public readonly string RecordingUuid;
|
||||
|
||||
|
||||
public AbuseReportRecording(IntPtr o)
|
||||
{
|
||||
RecordingUuid = CAPI.ovr_AbuseReportRecording_GetRecordingUuid(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0c2b12af41eef9f4786416f70fc1959c
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,40 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AchievementDefinition
|
||||
{
|
||||
public readonly AchievementType Type;
|
||||
public readonly string Name;
|
||||
public readonly uint BitfieldLength;
|
||||
public readonly ulong Target;
|
||||
|
||||
|
||||
public AchievementDefinition(IntPtr o)
|
||||
{
|
||||
Type = CAPI.ovr_AchievementDefinition_GetType(o);
|
||||
Name = CAPI.ovr_AchievementDefinition_GetName(o);
|
||||
BitfieldLength = CAPI.ovr_AchievementDefinition_GetBitfieldLength(o);
|
||||
Target = CAPI.ovr_AchievementDefinition_GetTarget(o);
|
||||
}
|
||||
}
|
||||
|
||||
public class AchievementDefinitionList : DeserializableList<AchievementDefinition> {
|
||||
public AchievementDefinitionList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_AchievementDefinitionArray_GetSize(a);
|
||||
_Data = new List<AchievementDefinition>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new AchievementDefinition(CAPI.ovr_AchievementDefinitionArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
_NextUrl = CAPI.ovr_AchievementDefinitionArray_GetNextUrl(a);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d2e372fad07698479f27fd72c13489e
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
42
Assets/Oculus/Platform/Scripts/Models/AchievementProgress.cs
Normal file
42
Assets/Oculus/Platform/Scripts/Models/AchievementProgress.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AchievementProgress
|
||||
{
|
||||
public readonly string Bitfield;
|
||||
public readonly ulong Count;
|
||||
public readonly bool IsUnlocked;
|
||||
public readonly string Name;
|
||||
public readonly DateTime UnlockTime;
|
||||
|
||||
|
||||
public AchievementProgress(IntPtr o)
|
||||
{
|
||||
Bitfield = CAPI.ovr_AchievementProgress_GetBitfield(o);
|
||||
Count = CAPI.ovr_AchievementProgress_GetCount(o);
|
||||
IsUnlocked = CAPI.ovr_AchievementProgress_GetIsUnlocked(o);
|
||||
Name = CAPI.ovr_AchievementProgress_GetName(o);
|
||||
UnlockTime = CAPI.ovr_AchievementProgress_GetUnlockTime(o);
|
||||
}
|
||||
}
|
||||
|
||||
public class AchievementProgressList : DeserializableList<AchievementProgress> {
|
||||
public AchievementProgressList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_AchievementProgressArray_GetSize(a);
|
||||
_Data = new List<AchievementProgress>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new AchievementProgress(CAPI.ovr_AchievementProgressArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
_NextUrl = CAPI.ovr_AchievementProgressArray_GetNextUrl(a);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d4a4ff6827774599abd0efe12f341fa
|
||||
timeCreated: 1462489664
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Oculus/Platform/Scripts/Models/AchievementUpdate.cs
Normal file
24
Assets/Oculus/Platform/Scripts/Models/AchievementUpdate.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AchievementUpdate
|
||||
{
|
||||
public readonly bool JustUnlocked;
|
||||
public readonly string Name;
|
||||
|
||||
|
||||
public AchievementUpdate(IntPtr o)
|
||||
{
|
||||
JustUnlocked = CAPI.ovr_AchievementUpdate_GetJustUnlocked(o);
|
||||
Name = CAPI.ovr_AchievementUpdate_GetName(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a49cc0ca1bcdd99409f7658b336e2d06
|
||||
timeCreated: 1523486800
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
28
Assets/Oculus/Platform/Scripts/Models/ApplicationVersion.cs
Normal file
28
Assets/Oculus/Platform/Scripts/Models/ApplicationVersion.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ApplicationVersion
|
||||
{
|
||||
public readonly int CurrentCode;
|
||||
public readonly string CurrentName;
|
||||
public readonly int LatestCode;
|
||||
public readonly string LatestName;
|
||||
|
||||
|
||||
public ApplicationVersion(IntPtr o)
|
||||
{
|
||||
CurrentCode = CAPI.ovr_ApplicationVersion_GetCurrentCode(o);
|
||||
CurrentName = CAPI.ovr_ApplicationVersion_GetCurrentName(o);
|
||||
LatestCode = CAPI.ovr_ApplicationVersion_GetLatestCode(o);
|
||||
LatestName = CAPI.ovr_ApplicationVersion_GetLatestName(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b5b714bc152876d4eaa2f638d2927cd8
|
||||
timeCreated: 1523486800
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
58
Assets/Oculus/Platform/Scripts/Models/AssetDetails.cs
Normal file
58
Assets/Oculus/Platform/Scripts/Models/AssetDetails.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
#pragma warning disable 0618
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AssetDetails
|
||||
{
|
||||
public readonly UInt64 AssetId;
|
||||
public readonly string AssetType;
|
||||
public readonly string DownloadStatus;
|
||||
public readonly string Filepath;
|
||||
public readonly string IapStatus;
|
||||
// May be null. Check before using.
|
||||
public readonly LanguagePackInfo LanguageOptional;
|
||||
[Obsolete("Deprecated in favor of LanguageOptional")]
|
||||
public readonly LanguagePackInfo Language;
|
||||
public readonly string Metadata;
|
||||
|
||||
|
||||
public AssetDetails(IntPtr o)
|
||||
{
|
||||
AssetId = CAPI.ovr_AssetDetails_GetAssetId(o);
|
||||
AssetType = CAPI.ovr_AssetDetails_GetAssetType(o);
|
||||
DownloadStatus = CAPI.ovr_AssetDetails_GetDownloadStatus(o);
|
||||
Filepath = CAPI.ovr_AssetDetails_GetFilepath(o);
|
||||
IapStatus = CAPI.ovr_AssetDetails_GetIapStatus(o);
|
||||
{
|
||||
var pointer = CAPI.ovr_AssetDetails_GetLanguage(o);
|
||||
Language = new LanguagePackInfo(pointer);
|
||||
if (pointer == IntPtr.Zero) {
|
||||
LanguageOptional = null;
|
||||
} else {
|
||||
LanguageOptional = Language;
|
||||
}
|
||||
}
|
||||
Metadata = CAPI.ovr_AssetDetails_GetMetadata(o);
|
||||
}
|
||||
}
|
||||
|
||||
public class AssetDetailsList : DeserializableList<AssetDetails> {
|
||||
public AssetDetailsList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_AssetDetailsArray_GetSize(a);
|
||||
_Data = new List<AssetDetails>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new AssetDetails(CAPI.ovr_AssetDetailsArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/Platform/Scripts/Models/AssetDetails.cs.meta
Normal file
12
Assets/Oculus/Platform/Scripts/Models/AssetDetails.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 77b2c21c8a5705c4f95aa9a8507a3541
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,28 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AssetFileDeleteResult
|
||||
{
|
||||
public readonly UInt64 AssetFileId;
|
||||
public readonly UInt64 AssetId;
|
||||
public readonly string Filepath;
|
||||
public readonly bool Success;
|
||||
|
||||
|
||||
public AssetFileDeleteResult(IntPtr o)
|
||||
{
|
||||
AssetFileId = CAPI.ovr_AssetFileDeleteResult_GetAssetFileId(o);
|
||||
AssetId = CAPI.ovr_AssetFileDeleteResult_GetAssetId(o);
|
||||
Filepath = CAPI.ovr_AssetFileDeleteResult_GetFilepath(o);
|
||||
Success = CAPI.ovr_AssetFileDeleteResult_GetSuccess(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a64ebca65bbe4334394aa3648ff7733f
|
||||
timeCreated: 1523486800
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,28 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AssetFileDownloadCancelResult
|
||||
{
|
||||
public readonly UInt64 AssetFileId;
|
||||
public readonly UInt64 AssetId;
|
||||
public readonly string Filepath;
|
||||
public readonly bool Success;
|
||||
|
||||
|
||||
public AssetFileDownloadCancelResult(IntPtr o)
|
||||
{
|
||||
AssetFileId = CAPI.ovr_AssetFileDownloadCancelResult_GetAssetFileId(o);
|
||||
AssetId = CAPI.ovr_AssetFileDownloadCancelResult_GetAssetId(o);
|
||||
Filepath = CAPI.ovr_AssetFileDownloadCancelResult_GetFilepath(o);
|
||||
Success = CAPI.ovr_AssetFileDownloadCancelResult_GetSuccess(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80090c9e4db0f2a46bd1ff95e4c6407f
|
||||
timeCreated: 1523486799
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AssetFileDownloadResult
|
||||
{
|
||||
public readonly UInt64 AssetId;
|
||||
public readonly string Filepath;
|
||||
|
||||
|
||||
public AssetFileDownloadResult(IntPtr o)
|
||||
{
|
||||
AssetId = CAPI.ovr_AssetFileDownloadResult_GetAssetId(o);
|
||||
Filepath = CAPI.ovr_AssetFileDownloadResult_GetFilepath(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0bfd5c2464df297499ad81e22be1e7b1
|
||||
timeCreated: 1523486797
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,30 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class AssetFileDownloadUpdate
|
||||
{
|
||||
public readonly UInt64 AssetFileId;
|
||||
public readonly UInt64 AssetId;
|
||||
public readonly uint BytesTotal;
|
||||
public readonly int BytesTransferred;
|
||||
public readonly bool Completed;
|
||||
|
||||
|
||||
public AssetFileDownloadUpdate(IntPtr o)
|
||||
{
|
||||
AssetFileId = CAPI.ovr_AssetFileDownloadUpdate_GetAssetFileId(o);
|
||||
AssetId = CAPI.ovr_AssetFileDownloadUpdate_GetAssetId(o);
|
||||
BytesTotal = CAPI.ovr_AssetFileDownloadUpdate_GetBytesTotal(o);
|
||||
BytesTransferred = CAPI.ovr_AssetFileDownloadUpdate_GetBytesTransferred(o);
|
||||
Completed = CAPI.ovr_AssetFileDownloadUpdate_GetCompleted(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f219cac005ed9fc4b87b7cdb7285f23b
|
||||
timeCreated: 1523486801
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,26 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CalApplicationFinalized
|
||||
{
|
||||
public readonly int CountdownMS;
|
||||
public readonly UInt64 ID;
|
||||
public readonly string LaunchDetails;
|
||||
|
||||
|
||||
public CalApplicationFinalized(IntPtr o)
|
||||
{
|
||||
CountdownMS = CAPI.ovr_CalApplicationFinalized_GetCountdownMS(o);
|
||||
ID = CAPI.ovr_CalApplicationFinalized_GetID(o);
|
||||
LaunchDetails = CAPI.ovr_CalApplicationFinalized_GetLaunchDetails(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b380c9d8a3128734d9377d59e8817d41
|
||||
timeCreated: 1536102210
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,22 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CalApplicationProposed
|
||||
{
|
||||
public readonly UInt64 ID;
|
||||
|
||||
|
||||
public CalApplicationProposed(IntPtr o)
|
||||
{
|
||||
ID = CAPI.ovr_CalApplicationProposed_GetID(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aed900a5fb08459449f04b930e21e089
|
||||
timeCreated: 1536102210
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,35 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CalApplicationSuggestion
|
||||
{
|
||||
public readonly UInt64 ID;
|
||||
public readonly string SocialContext;
|
||||
|
||||
|
||||
public CalApplicationSuggestion(IntPtr o)
|
||||
{
|
||||
ID = CAPI.ovr_CalApplicationSuggestion_GetID(o);
|
||||
SocialContext = CAPI.ovr_CalApplicationSuggestion_GetSocialContext(o);
|
||||
}
|
||||
}
|
||||
|
||||
public class CalApplicationSuggestionList : DeserializableList<CalApplicationSuggestion> {
|
||||
public CalApplicationSuggestionList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_CalApplicationSuggestionArray_GetSize(a);
|
||||
_Data = new List<CalApplicationSuggestion>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new CalApplicationSuggestion(CAPI.ovr_CalApplicationSuggestionArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ffd34bbf11316d4b8782e4f4cec658e
|
||||
timeCreated: 1536102210
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
79
Assets/Oculus/Platform/Scripts/Models/Challenge.cs
Normal file
79
Assets/Oculus/Platform/Scripts/Models/Challenge.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
#pragma warning disable 0618
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Challenge
|
||||
{
|
||||
public readonly ChallengeCreationType CreationType;
|
||||
public readonly string Description;
|
||||
public readonly DateTime EndDate;
|
||||
public readonly UInt64 ID;
|
||||
// May be null. Check before using.
|
||||
public readonly UserList InvitedUsersOptional;
|
||||
[Obsolete("Deprecated in favor of InvitedUsersOptional")]
|
||||
public readonly UserList InvitedUsers;
|
||||
public readonly Leaderboard Leaderboard;
|
||||
// May be null. Check before using.
|
||||
public readonly UserList ParticipantsOptional;
|
||||
[Obsolete("Deprecated in favor of ParticipantsOptional")]
|
||||
public readonly UserList Participants;
|
||||
public readonly DateTime StartDate;
|
||||
public readonly string Title;
|
||||
public readonly ChallengeVisibility Visibility;
|
||||
|
||||
|
||||
public Challenge(IntPtr o)
|
||||
{
|
||||
CreationType = CAPI.ovr_Challenge_GetCreationType(o);
|
||||
Description = CAPI.ovr_Challenge_GetDescription(o);
|
||||
EndDate = CAPI.ovr_Challenge_GetEndDate(o);
|
||||
ID = CAPI.ovr_Challenge_GetID(o);
|
||||
{
|
||||
var pointer = CAPI.ovr_Challenge_GetInvitedUsers(o);
|
||||
InvitedUsers = new UserList(pointer);
|
||||
if (pointer == IntPtr.Zero) {
|
||||
InvitedUsersOptional = null;
|
||||
} else {
|
||||
InvitedUsersOptional = InvitedUsers;
|
||||
}
|
||||
}
|
||||
Leaderboard = new Leaderboard(CAPI.ovr_Challenge_GetLeaderboard(o));
|
||||
{
|
||||
var pointer = CAPI.ovr_Challenge_GetParticipants(o);
|
||||
Participants = new UserList(pointer);
|
||||
if (pointer == IntPtr.Zero) {
|
||||
ParticipantsOptional = null;
|
||||
} else {
|
||||
ParticipantsOptional = Participants;
|
||||
}
|
||||
}
|
||||
StartDate = CAPI.ovr_Challenge_GetStartDate(o);
|
||||
Title = CAPI.ovr_Challenge_GetTitle(o);
|
||||
Visibility = CAPI.ovr_Challenge_GetVisibility(o);
|
||||
}
|
||||
}
|
||||
|
||||
public class ChallengeList : DeserializableList<Challenge> {
|
||||
public ChallengeList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_ChallengeArray_GetSize(a);
|
||||
_Data = new List<Challenge>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new Challenge(CAPI.ovr_ChallengeArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
TotalCount = CAPI.ovr_ChallengeArray_GetTotalCount(a);
|
||||
_PreviousUrl = CAPI.ovr_ChallengeArray_GetPreviousUrl(a);
|
||||
_NextUrl = CAPI.ovr_ChallengeArray_GetNextUrl(a);
|
||||
}
|
||||
|
||||
public readonly ulong TotalCount;
|
||||
}
|
||||
}
|
||||
11
Assets/Oculus/Platform/Scripts/Models/Challenge.cs.meta
Normal file
11
Assets/Oculus/Platform/Scripts/Models/Challenge.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bbf6efe0a3260cb45bb28eb6f341c28b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
45
Assets/Oculus/Platform/Scripts/Models/ChallengeEntry.cs
Normal file
45
Assets/Oculus/Platform/Scripts/Models/ChallengeEntry.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ChallengeEntry
|
||||
{
|
||||
public readonly byte[] ExtraData;
|
||||
public readonly int Rank;
|
||||
public readonly long Score;
|
||||
public readonly DateTime Timestamp;
|
||||
public readonly User User;
|
||||
|
||||
|
||||
public ChallengeEntry(IntPtr o)
|
||||
{
|
||||
ExtraData = CAPI.ovr_ChallengeEntry_GetExtraData(o);
|
||||
Rank = CAPI.ovr_ChallengeEntry_GetRank(o);
|
||||
Score = CAPI.ovr_ChallengeEntry_GetScore(o);
|
||||
Timestamp = CAPI.ovr_ChallengeEntry_GetTimestamp(o);
|
||||
User = new User(CAPI.ovr_ChallengeEntry_GetUser(o));
|
||||
}
|
||||
}
|
||||
|
||||
public class ChallengeEntryList : DeserializableList<ChallengeEntry> {
|
||||
public ChallengeEntryList(IntPtr a) {
|
||||
var count = (int)CAPI.ovr_ChallengeEntryArray_GetSize(a);
|
||||
_Data = new List<ChallengeEntry>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
_Data.Add(new ChallengeEntry(CAPI.ovr_ChallengeEntryArray_GetElement(a, (UIntPtr)i)));
|
||||
}
|
||||
|
||||
TotalCount = CAPI.ovr_ChallengeEntryArray_GetTotalCount(a);
|
||||
_PreviousUrl = CAPI.ovr_ChallengeEntryArray_GetPreviousUrl(a);
|
||||
_NextUrl = CAPI.ovr_ChallengeEntryArray_GetNextUrl(a);
|
||||
}
|
||||
|
||||
public readonly ulong TotalCount;
|
||||
}
|
||||
}
|
||||
11
Assets/Oculus/Platform/Scripts/Models/ChallengeEntry.cs.meta
Normal file
11
Assets/Oculus/Platform/Scripts/Models/ChallengeEntry.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fad10798752345f4096bf64dfab3ee60
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,24 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CloudStorageConflictMetadata
|
||||
{
|
||||
public readonly CloudStorageMetadata Local;
|
||||
public readonly CloudStorageMetadata Remote;
|
||||
|
||||
|
||||
public CloudStorageConflictMetadata(IntPtr o)
|
||||
{
|
||||
Local = new CloudStorageMetadata(CAPI.ovr_CloudStorageConflictMetadata_GetLocal(o));
|
||||
Remote = new CloudStorageMetadata(CAPI.ovr_CloudStorageConflictMetadata_GetRemote(o));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f4529c5ae12f84c44899a5ca599b6ecd
|
||||
timeCreated: 1523486801
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
28
Assets/Oculus/Platform/Scripts/Models/CloudStorageData.cs
Normal file
28
Assets/Oculus/Platform/Scripts/Models/CloudStorageData.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
|
||||
|
||||
namespace Oculus.Platform.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Oculus.Platform.Models;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CloudStorageData
|
||||
{
|
||||
public readonly string Bucket;
|
||||
public readonly byte[] Data;
|
||||
public readonly uint DataSize;
|
||||
public readonly string Key;
|
||||
|
||||
|
||||
public CloudStorageData(IntPtr o)
|
||||
{
|
||||
Bucket = CAPI.ovr_CloudStorageData_GetBucket(o);
|
||||
Data = CAPI.ovr_CloudStorageData_GetData(o);
|
||||
DataSize = CAPI.ovr_CloudStorageData_GetDataSize(o);
|
||||
Key = CAPI.ovr_CloudStorageData_GetKey(o);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user