Updated oculus stuff

This commit is contained in:
Chris Midkiff
2018-10-09 20:59:57 -04:00
parent 1e7362c19f
commit 9b7f63739e
957 changed files with 128988 additions and 588 deletions

View 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;
}
}

View 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:

View 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,
}
}

View 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:

View 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,
}
}

View 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:

View 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
}
}
}

View 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:

View 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;
}
}

View 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:

View 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);
}
}

View 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:

File diff suppressed because it is too large Load Diff

View 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:

View File

@@ -0,0 +1,164 @@
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 OnComplete Callbacks: Exposed through Oculus.Platform.Request
internal static void OnComplete<T>(Request<T> request, Message<T>.Callback callback)
{
requestIDsToCallbacks[request.RequestID] = new RequestCallback<T>(callback);
}
internal static void OnComplete(Request request, Message.Callback callback)
{
requestIDsToCallbacks[request.RequestID] = new RequestCallback(callback);
}
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);
}
}
#endregion
#region Callback Internals
private static Dictionary<ulong, RequestCallback> requestIDsToCallbacks = new Dictionary<ulong, RequestCallback>();
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());
}
}
}
}
private static void HandleMessage(Message msg)
{
RequestCallback callbackHolder;
if (requestIDsToCallbacks.TryGetValue(msg.RequestID, out callbackHolder))
{
try
{
callbackHolder.HandleMessage(msg);
}
// even if there are exceptions, we should clean up cleanly
finally
{
requestIDsToCallbacks.Remove(msg.RequestID);
}
}
else if (notificationCallbacks.TryGetValue(msg.Type, out callbackHolder))
{
callbackHolder.HandleMessage(msg);
}
}
#endregion
}
}

View 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:

View File

@@ -0,0 +1,38 @@
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
}
}
}

View 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:

View 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,
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 4708b605fe779fe4384e9166eb21b85c
timeCreated: 1523486798
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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,
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 2b620ce00fa534d4f8f006da66d05d35
timeCreated: 1523486798
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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

View 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:

View 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

View 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:

View File

@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;
using System;
namespace Oculus.Platform
{
public interface IMicrophone
{
void Start();
void Stop();
float[] Update();
}
}

View 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:

View 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();
}
}

View 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:

View 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,
}
}

View 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:

View 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,
}
}

View 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:

View 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 LeaderboardFilterType : int
{
[Description("NONE")]
None,
[Description("FRIENDS")]
Friends,
[Description("UNKNOWN")]
Unknown,
}
}

View 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:

View 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,
}
}

View 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:

View 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,
}
}

View 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:

View 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 LivestreamingMicrophoneStatus : int
{
[Description("UNKNOWN")]
Unknown,
[Description("MICROPHONE_ON")]
MicrophoneOn,
[Description("MICROPHONE_OFF")]
MicrophoneOff,
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 200430e18cf27164c95796b4c3456b1f
timeCreated: 1523486797
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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,
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 278e551ec7e02bf419ea10f24a330083
timeCreated: 1523486798
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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 MatchmakingCriterionImportance : int
{
[Description("REQUIRED")]
Required,
[Description("HIGH")]
High,
[Description("MEDIUM")]
Medium,
[Description("LOW")]
Low,
[Description("UNKNOWN")]
Unknown,
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 030eb76e37b12924e96e8b450291a220
timeCreated: 1523486796
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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;
}
}

View 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:

View 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,
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 03cfe1746fc38ae468f5a6a910bf0379
timeCreated: 1523486797
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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,
}
}

View 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:

File diff suppressed because it is too large Load Diff

View 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:

View File

@@ -0,0 +1,62 @@
//This file is deprecated. Use the high level voip system instead:
// https://developer.oculus.com/documentation/platform/latest/concepts/dg-cc-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 false
using UnityEngine;
namespace Oculus.Platform
{
public class MicrophoneInput : IMicrophone
{
AudioClip microphoneClip;
int lastMicrophoneSample;
int micBufferSizeSamples;
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;
}
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 = new float[copySize]; //TODO 10376403 - pool this
microphoneClip.GetData(samples, lastMicrophoneSample);
lastMicrophoneSample = pos;
return samples;
}
}
}
#endif

View 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:

View File

@@ -0,0 +1,50 @@
//This file is deprecated. Use the high level voip system instead:
// https://developer.oculus.com/documentation/platform/latest/concepts/dg-cc-voip/
#if false
using UnityEngine;
using System;
namespace Oculus.Platform
{
public class MicrophoneInputNative : IMicrophone
{
IntPtr mic;
int tempBufferSize = 960 * 10;
float[] tempBuffer;
public MicrophoneInputNative()
{
mic = CAPI.ovr_Microphone_Create();
CAPI.ovr_Microphone_Start(mic);
tempBuffer = new float[tempBufferSize];
Debug.Log(mic);
}
public float[] Update()
{
ulong readSize = (ulong)CAPI.ovr_Microphone_ReadData(mic, tempBuffer, (UIntPtr)tempBufferSize);
if (readSize > 0)
{
float[] outBuffer = new float[readSize];
Array.Copy(tempBuffer, outBuffer, (int)readSize);
return outBuffer;
}
return null;
}
public void Start()
{
}
public void Stop()
{
CAPI.ovr_Microphone_Stop(mic);
CAPI.ovr_Microphone_Destroy(mic);
}
}
}
#endif

View 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:

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: b26d68fa787d51b44af73c8351055681
folderAsset: yes
timeCreated: 1520037586
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 0c2b12af41eef9f4786416f70fc1959c
timeCreated: 1523486797
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 7d2e372fad07698479f27fd72c13489e
timeCreated: 1523486799
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 8d4a4ff6827774599abd0efe12f341fa
timeCreated: 1462489664
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: a49cc0ca1bcdd99409f7658b336e2d06
timeCreated: 1523486800
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: b5b714bc152876d4eaa2f638d2927cd8
timeCreated: 1523486800
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,56 @@
// 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 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;
}
}
}
}
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)));
}
}
}
}

View 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:

View 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 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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: a64ebca65bbe4334394aa3648ff7733f
timeCreated: 1523486800
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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 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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 80090c9e4db0f2a46bd1ff95e4c6407f
timeCreated: 1523486799
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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 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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 0bfd5c2464df297499ad81e22be1e7b1
timeCreated: 1523486797
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: f219cac005ed9fc4b87b7cdb7285f23b
timeCreated: 1523486801
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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 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));
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: f4529c5ae12f84c44899a5ca599b6ecd
timeCreated: 1523486801
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 0e17b833610a92c4bbf4b67edb7ec116
timeCreated: 1523486797
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,48 @@
// 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 CloudStorageMetadata
{
public readonly string Bucket;
public readonly long Counter;
public readonly uint DataSize;
public readonly string ExtraData;
public readonly string Key;
public readonly ulong SaveTime;
public readonly CloudStorageDataStatus Status;
public readonly string VersionHandle;
public CloudStorageMetadata(IntPtr o)
{
Bucket = CAPI.ovr_CloudStorageMetadata_GetBucket(o);
Counter = CAPI.ovr_CloudStorageMetadata_GetCounter(o);
DataSize = CAPI.ovr_CloudStorageMetadata_GetDataSize(o);
ExtraData = CAPI.ovr_CloudStorageMetadata_GetExtraData(o);
Key = CAPI.ovr_CloudStorageMetadata_GetKey(o);
SaveTime = CAPI.ovr_CloudStorageMetadata_GetSaveTime(o);
Status = CAPI.ovr_CloudStorageMetadata_GetStatus(o);
VersionHandle = CAPI.ovr_CloudStorageMetadata_GetVersionHandle(o);
}
}
public class CloudStorageMetadataList : DeserializableList<CloudStorageMetadata> {
public CloudStorageMetadataList(IntPtr a) {
var count = (int)CAPI.ovr_CloudStorageMetadataArray_GetSize(a);
_Data = new List<CloudStorageMetadata>(count);
for (int i = 0; i < count; i++) {
_Data.Add(new CloudStorageMetadata(CAPI.ovr_CloudStorageMetadataArray_GetElement(a, (UIntPtr)i)));
}
_NextUrl = CAPI.ovr_CloudStorageMetadataArray_GetNextUrl(a);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 1a6ff0d9eb067d74e87a166ab86cc0dd
timeCreated: 1523486797
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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 CloudStorageUpdateResponse
{
public readonly string Bucket;
public readonly string Key;
public readonly CloudStorageUpdateStatus Status;
public readonly string VersionHandle;
public CloudStorageUpdateResponse(IntPtr o)
{
Bucket = CAPI.ovr_CloudStorageUpdateResponse_GetBucket(o);
Key = CAPI.ovr_CloudStorageUpdateResponse_GetKey(o);
Status = CAPI.ovr_CloudStorageUpdateResponse_GetStatus(o);
VersionHandle = CAPI.ovr_CloudStorageUpdateResponse_GetVersionHandle(o);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: f75c382fd9dda5b4b90d083821a4c4ab
timeCreated: 1523486801
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,54 @@
namespace Oculus.Platform.Models
{
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Oculus.Platform.Models;
public class DeserializableList<T> : IList<T>
{
//IList
public int Count { get {return _Data.Count;} }
bool ICollection<T>.IsReadOnly { get {return ((IList<T>)_Data).IsReadOnly;} } //if you insist in getting it...
public int IndexOf(T obj) {return _Data.IndexOf(obj);}
public T this[int index] { get{return _Data[index];} set{_Data[index] = value;} }
public void Add(T item) {_Data.Add(item);}
public void Clear() {_Data.Clear();}
public bool Contains(T item) {return _Data.Contains(item);}
public void CopyTo(T[] array, int arrayIndex) {_Data.CopyTo(array, arrayIndex);}
public IEnumerator<T> GetEnumerator() {return _Data.GetEnumerator();}
public void Insert(int index, T item) {_Data.Insert(index, item);}
public bool Remove(T item) {return _Data.Remove(item);}
public void RemoveAt(int index) {_Data.RemoveAt(index);}
// taken from examples here: https://msdn.microsoft.com/en-us/library/s793z9y2(v=vs.110).aspx
private IEnumerator GetEnumerator1()
{
return this.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator1();
}
// Internals and getters
// Seems like Obsolete properties are broken in this version of Mono.
// Anyway, don't use this.
[System.Obsolete("Use IList interface on the DeserializableList object instead.", false)]
public List<T> Data {
get {return _Data;}
}
protected List<T> _Data;
protected string _NextUrl;
protected string _PreviousUrl;
public bool HasNextPage { get { return !System.String.IsNullOrEmpty(NextUrl); } }
public bool HasPreviousPage { get { return !System.String.IsNullOrEmpty(PreviousUrl); } }
public string NextUrl { get { return _NextUrl; } }
public string PreviousUrl { get { return _PreviousUrl; } }
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: cd282a12ba188d842b81149d5b787daf
timeCreated: 1523486800
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
namespace Oculus.Platform.Models
{
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class Error
{
public Error(int code, string message, int httpCode)
{
Message = message;
Code = code;
HttpCode = httpCode;
}
public readonly int Code;
public readonly int HttpCode;
public readonly string Message;
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: af96c3f14f761724db9f93a693fbad2e
timeCreated: 1523486800
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,28 @@
namespace Oculus.Platform.Models
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Oculus.Platform.Models;
using UnityEngine;
public class HttpTransferUpdate
{
public readonly UInt64 ID;
public readonly byte[] Payload;
public readonly bool IsCompleted;
public HttpTransferUpdate(IntPtr o)
{
ID = CAPI.ovr_HttpTransferUpdate_GetID(o);
IsCompleted = CAPI.ovr_HttpTransferUpdate_IsCompleted(o);
long size = (long) CAPI.ovr_HttpTransferUpdate_GetSize(o);
Payload = new byte[size];
Marshal.Copy(CAPI.ovr_Packet_GetBytes(o), Payload, 0, (int) size);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: fcab648a59429684a9860794d256d230
timeCreated: 1523486801
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,41 @@
// 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 InstalledApplication
{
public readonly string ApplicationId;
public readonly string PackageName;
public readonly string Status;
public readonly int VersionCode;
public readonly string VersionName;
public InstalledApplication(IntPtr o)
{
ApplicationId = CAPI.ovr_InstalledApplication_GetApplicationId(o);
PackageName = CAPI.ovr_InstalledApplication_GetPackageName(o);
Status = CAPI.ovr_InstalledApplication_GetStatus(o);
VersionCode = CAPI.ovr_InstalledApplication_GetVersionCode(o);
VersionName = CAPI.ovr_InstalledApplication_GetVersionName(o);
}
}
public class InstalledApplicationList : DeserializableList<InstalledApplication> {
public InstalledApplicationList(IntPtr a) {
var count = (int)CAPI.ovr_InstalledApplicationArray_GetSize(a);
_Data = new List<InstalledApplication>(count);
for (int i = 0; i < count; i++) {
_Data.Add(new InstalledApplication(CAPI.ovr_InstalledApplicationArray_GetElement(a, (UIntPtr)i)));
}
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 1cb03b282dd6fc440830b2c7224a1135
timeCreated: 1523486797
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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 LanguagePackInfo
{
public readonly string EnglishName;
public readonly string NativeName;
public readonly string Tag;
public LanguagePackInfo(IntPtr o)
{
EnglishName = CAPI.ovr_LanguagePackInfo_GetEnglishName(o);
NativeName = CAPI.ovr_LanguagePackInfo_GetNativeName(o);
Tag = CAPI.ovr_LanguagePackInfo_GetTag(o);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 2d77f72bf241d8f48b3570ac0c0cab4b
timeCreated: 1533910661
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View 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 LaunchBlockFlowResult
{
public readonly bool DidBlock;
public readonly bool DidCancel;
public LaunchBlockFlowResult(IntPtr o)
{
DidBlock = CAPI.ovr_LaunchBlockFlowResult_GetDidBlock(o);
DidCancel = CAPI.ovr_LaunchBlockFlowResult_GetDidCancel(o);
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 33b0e76fc377f0c47801c3e36866ef66
timeCreated: 1523486798
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,43 @@
// 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 LaunchDetails
{
public readonly string DeeplinkMessage;
public readonly string LaunchSource;
public readonly LaunchType LaunchType;
public readonly UInt64 RoomID;
// May be null. Check before using.
public readonly UserList UsersOptional;
[Obsolete("Deprecated in favor of UsersOptional")]
public readonly UserList Users;
public LaunchDetails(IntPtr o)
{
DeeplinkMessage = CAPI.ovr_LaunchDetails_GetDeeplinkMessage(o);
LaunchSource = CAPI.ovr_LaunchDetails_GetLaunchSource(o);
LaunchType = CAPI.ovr_LaunchDetails_GetLaunchType(o);
RoomID = CAPI.ovr_LaunchDetails_GetRoomID(o);
{
var pointer = CAPI.ovr_LaunchDetails_GetUsers(o);
Users = new UserList(pointer);
if (pointer == IntPtr.Zero) {
UsersOptional = null;
} else {
UsersOptional = Users;
}
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More