Initialer Upload neues Unity-Projekt

This commit is contained in:
Daniel Ocks
2025-07-21 09:11:14 +02:00
commit eeca72985b
14558 changed files with 1508140 additions and 0 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,23 @@
// 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,
/// A report for something besides a user, like a world.
[Description("OBJECT")]
Object,
/// A report for a user's behavior or profile.
[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,28 @@
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using Description = System.ComponentModel.DescriptionAttribute;
public enum AbuseReportVideoMode : int
{
[Description("UNKNOWN")]
Unknown,
/// The UI will collect video evidence if the object_type supports it.
[Description("COLLECT")]
Collect,
/// The UI will try to collect video evidence if the object_type supports it,
/// but will allow the user to skip that step if they wish.
[Description("OPTIONAL")]
Optional,
/// The UI will not collect video evidence.
[Description("SKIP")]
Skip,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0391f5eae88748a4184e3a4a48277923
MonoImporter:
externalObjects: {}
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 AccountAgeCategory : int
{
[Description("UNKNOWN")]
Unknown,
[Description("CH")]
Ch,
[Description("TN")]
Tn,
[Description("AD")]
Ad,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f96337726b9332843834bd0e66f7b067
MonoImporter:
externalObjects: {}
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,59 @@
// 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 AdvancedAbuseReportOptions {
public AdvancedAbuseReportOptions() {
Handle = CAPI.ovr_AdvancedAbuseReportOptions_Create();
}
public void SetDeveloperDefinedContext(string key, string value) {
CAPI.ovr_AdvancedAbuseReportOptions_SetDeveloperDefinedContextString(Handle, key, value);
}
public void ClearDeveloperDefinedContext() {
CAPI.ovr_AdvancedAbuseReportOptions_ClearDeveloperDefinedContext(Handle);
}
/// If report_type is content, a string representing the type of content being
/// reported. This should correspond to the object_type string used in the UI
public void SetObjectType(string value) {
CAPI.ovr_AdvancedAbuseReportOptions_SetObjectType(Handle, value);
}
public void SetReportType(AbuseReportType value) {
CAPI.ovr_AdvancedAbuseReportOptions_SetReportType(Handle, value);
}
public void AddSuggestedUser(UInt64 userID) {
CAPI.ovr_AdvancedAbuseReportOptions_AddSuggestedUser(Handle, userID);
}
public void ClearSuggestedUsers() {
CAPI.ovr_AdvancedAbuseReportOptions_ClearSuggestedUsers(Handle);
}
public void SetVideoMode(AbuseReportVideoMode value) {
CAPI.ovr_AdvancedAbuseReportOptions_SetVideoMode(Handle, value);
}
/// For passing to native C
public static explicit operator IntPtr(AdvancedAbuseReportOptions options) {
return options != null ? options.Handle : IntPtr.Zero;
}
~AdvancedAbuseReportOptions() {
CAPI.ovr_AdvancedAbuseReportOptions_Destroy(Handle);
}
IntPtr Handle;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7ac3d6e4baf52604f9120a266f7e5c5b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,37 @@
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,21 @@
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using Description = System.ComponentModel.DescriptionAttribute;
public enum AppAgeCategory : int
{
[Description("UNKNOWN")]
Unknown,
[Description("CH")]
Ch,
[Description("NCH")]
Nch,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 74ebbf773cb527f4e9d4789f359113e2
MonoImporter:
externalObjects: {}
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 AppStatus : int
{
[Description("UNKNOWN")]
Unknown,
[Description("ENTITLED")]
Entitled,
[Description("DOWNLOAD_QUEUED")]
DownloadQueued,
[Description("DOWNLOADING")]
Downloading,
[Description("INSTALLING")]
Installing,
[Description("INSTALLED")]
Installed,
[Description("UNINSTALLING")]
Uninstalling,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5901173dcc3e05841bd2c6f071ae4466
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,60 @@
// 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();
}
/// A message to be passed to a launched app, which can be retrieved with
/// LaunchDetails.GetDeeplinkMessage()
public void SetDeeplinkMessage(string value) {
CAPI.ovr_ApplicationOptions_SetDeeplinkMessage(Handle, value);
}
/// If provided, the intended destination to be passed to the launched app
public void SetDestinationApiName(string value) {
CAPI.ovr_ApplicationOptions_SetDestinationApiName(Handle, value);
}
/// If provided, the intended lobby where the launched app should take the
/// user. All users with the same lobby_session_id should end up grouped
/// together in the launched app.
public void SetLobbySessionId(string value) {
CAPI.ovr_ApplicationOptions_SetLobbySessionId(Handle, value);
}
/// If provided, the intended instance of the destination that a user should be
/// launched into
public void SetMatchSessionId(string value) {
CAPI.ovr_ApplicationOptions_SetMatchSessionId(Handle, value);
}
/// [Deprecated]If provided, the intended room where the launched app should
/// take the user (all users heading to the same place should have the same
/// value). A room_id of 0 is INVALID.
public void SetRoomId(UInt64 value) {
CAPI.ovr_ApplicationOptions_SetRoomId(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,34 @@
// 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 AvatarEditorOptions {
public AvatarEditorOptions() {
Handle = CAPI.ovr_AvatarEditorOptions_Create();
}
/// Optional: Override for where the request is coming from.
public void SetSourceOverride(string value) {
CAPI.ovr_AvatarEditorOptions_SetSourceOverride(Handle, value);
}
/// For passing to native C
public static explicit operator IntPtr(AvatarEditorOptions options) {
return options != null ? options.Handle : IntPtr.Zero;
}
~AvatarEditorOptions() {
CAPI.ovr_AvatarEditorOptions_Destroy(Handle);
}
IntPtr Handle;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e9d5f650c79ba4942a3a1d3f2cb60ec0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,133 @@
//#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,189 @@
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_GroupPresence_JoinIntentReceived)
{
FlushJoinIntentNotificationQueue();
}
}
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 hasRegisteredJoinIntentNotificationHandler = false;
private static Message latestPendingJoinIntentNotifications;
private static void FlushJoinIntentNotificationQueue()
{
hasRegisteredJoinIntentNotificationHandler = true;
if (latestPendingJoinIntentNotifications != null)
{
HandleMessage(latestPendingJoinIntentNotifications);
}
latestPendingJoinIntentNotifications = null;
}
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)
{
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);
}
// We need to queue up Join Intents because the callback runner will be called before a handler has beeen set.
else if (!hasRegisteredJoinIntentNotificationHandler &&
msg.Type == Message.MessageType.Notification_GroupPresence_JoinIntentReceived)
{
latestPendingJoinIntentNotifications = 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,44 @@
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();
}
}
}

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

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 57a29b14b1fc46642a78991fc30045db
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,70 @@
// 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);
}
/// Optional: Only find challenges belonging to this leaderboard.
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;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 299d5fa3a18d7bd4fb4dff14de1aa28e
MonoImporter:
externalObjects: {}
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 ChallengeViewerFilter : int
{
[Description("UNKNOWN")]
Unknown,
[Description("ALL_VISIBLE")]
AllVisible,
[Description("PARTICIPATING")]
Participating,
[Description("INVITED")]
Invited,
[Description("PARTICIPATING_OR_INVITED")]
ParticipatingOrInvited,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7b95bc8f64520dc41ad9fb0a88600e9c
MonoImporter:
externalObjects: {}
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 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,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 826fe85a24373d4429ba1c5b0bb36f9f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,3 @@
namespace Oculus.Platform.Deprecated
{
}

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,3 @@
namespace Oculus.Platform.Deprecated
{
}

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,47 @@
//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,46 @@
//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,72 @@
// 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 GroupPresenceOptions {
public GroupPresenceOptions() {
Handle = CAPI.ovr_GroupPresenceOptions_Create();
}
/// Use GroupPresenceOptions.SetLobbySessionId() or
/// GroupPresenceOptions.SetMatchSessionId() to specify the session. Use the
/// deeplink message override for any additional data in whatever format you
/// wish to aid in bringing users together. If not specified, the
/// deeplink_message for the user will default to the one on the destination.
public void SetDeeplinkMessageOverride(string value) {
CAPI.ovr_GroupPresenceOptions_SetDeeplinkMessageOverride(Handle, value);
}
/// This the unique API Name that refers to an in-app destination
public void SetDestinationApiName(string value) {
CAPI.ovr_GroupPresenceOptions_SetDestinationApiName(Handle, value);
}
/// Set whether or not the person is shown as joinable or not to others. A user
/// that is joinable can invite others to join them. Set this to false if other
/// users would not be able to join this user. For example: the current session
/// is full, or only the host can invite others and the current user is not the
/// host.
public void SetIsJoinable(bool value) {
CAPI.ovr_GroupPresenceOptions_SetIsJoinable(Handle, value);
}
/// This is a session that represents a closer group/squad/party of users. It
/// is expected that all users with the same lobby session id can see or hear
/// each other. Users with the same lobby session id in their group presence
/// will show up in the roster and will show up as "Recently Played With" for
/// future invites if they aren't already Oculus friends. This must be set in
/// addition to is_joinable being true for a user to use invites.
public void SetLobbySessionId(string value) {
CAPI.ovr_GroupPresenceOptions_SetLobbySessionId(Handle, value);
}
/// This is a session that represents all the users that are playing a specific
/// instance of a map, game mode, round, etc. This can include users from
/// multiple different lobbies that joined together and the users may or may
/// not remain together after the match is over. Users with the same match
/// session id in their group presence will not show up in the Roster, but will
/// show up as "Recently Played with" for future invites.
public void SetMatchSessionId(string value) {
CAPI.ovr_GroupPresenceOptions_SetMatchSessionId(Handle, value);
}
/// For passing to native C
public static explicit operator IntPtr(GroupPresenceOptions options) {
return options != null ? options.Handle : IntPtr.Zero;
}
~GroupPresenceOptions() {
CAPI.ovr_GroupPresenceOptions_Destroy(Handle);
}
IntPtr Handle;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6b217a3516c19444e82755b40efc5996
MonoImporter:
externalObjects: {}
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,14 @@
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
public enum InitConfigOptions : uint
{
/// Disables the initialization of the WebRTC networking stack, when you don't
/// need to use any of the ovr_Voip_* or ovr_Net_* functions.
DisableP2pNetworking = 0x1CDE5DDE,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7d283007eda48c542b2ca1ac3965f720
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,38 @@
// 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 InviteOptions {
public InviteOptions() {
Handle = CAPI.ovr_InviteOptions_Create();
}
/// Passing in these users will add them to the invitable users list
public void AddSuggestedUser(UInt64 userID) {
CAPI.ovr_InviteOptions_AddSuggestedUser(Handle, userID);
}
public void ClearSuggestedUsers() {
CAPI.ovr_InviteOptions_ClearSuggestedUsers(Handle);
}
/// For passing to native C
public static explicit operator IntPtr(InviteOptions options) {
return options != null ? options.Handle : IntPtr.Zero;
}
~InviteOptions() {
CAPI.ovr_InviteOptions_Destroy(Handle);
}
IntPtr Handle;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c709e4d18ec60a447a4cb600069bba0a
MonoImporter:
externalObjects: {}
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,33 @@
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using Description = System.ComponentModel.DescriptionAttribute;
public enum LaunchResult : int
{
[Description("UNKNOWN")]
Unknown,
[Description("SUCCESS")]
Success,
[Description("FAILED_ROOM_FULL")]
FailedRoomFull,
[Description("FAILED_GAME_ALREADY_STARTED")]
FailedGameAlreadyStarted,
[Description("FAILED_ROOM_NOT_FOUND")]
FailedRoomNotFound,
[Description("FAILED_USER_DECLINED")]
FailedUserDeclined,
[Description("FAILED_OTHER_REASON")]
FailedOtherReason,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 13b9c038c8c7b5947a3e1b4498bc62a1
MonoImporter:
externalObjects: {}
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,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,
}
}

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,126 @@
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using Description = System.ComponentModel.DescriptionAttribute;
public enum LogEventName : int
{
[Description("UNKNOWN")]
Unknown,
[Description("AD_CLICK")]
AdClick,
[Description("AD_IMPRESSION")]
AdImpression,
[Description("VR_COMPLETE_REGISTRATION")]
VrCompleteRegistration,
[Description("VR_TUTORIAL_COMPLETION")]
VrTutorialCompletion,
[Description("CONTACT")]
Contact,
[Description("CUSTOMIZE_PRODUCT")]
CustomizeProduct,
[Description("DONATE")]
Donate,
[Description("FIND_LOCATION")]
FindLocation,
[Description("VR_RATE")]
VrRate,
[Description("SCHEDULE")]
Schedule,
[Description("VR_SEARCH")]
VrSearch,
[Description("SMART_TRIAL")]
SmartTrial,
[Description("SUBMIT_APPLICATION")]
SubmitApplication,
[Description("SUBSCRIBE")]
Subscribe,
[Description("VR_CONTENT_VIEW")]
VrContentView,
[Description("VR_SDK_INITIALIZE")]
VrSdkInitialize,
[Description("VR_SDK_BACKGROUND_STATUS_AVAILABLE")]
VrSdkBackgroundStatusAvailable,
[Description("VR_SDK_BACKGROUND_STATUS_DENIED")]
VrSdkBackgroundStatusDenied,
[Description("VR_SDK_BACKGROUND_STATUS_RESTRICTED")]
VrSdkBackgroundStatusRestricted,
[Description("VR_ADD_PAYMENT_INFO")]
VrAddPaymentInfo,
[Description("VR_ADD_TO_CART")]
VrAddToCart,
[Description("VR_ADD_TO_WISHLIST")]
VrAddToWishlist,
[Description("VR_INITIATED_CHECKOUT")]
VrInitiatedCheckout,
[Description("VR_PURCHASE")]
VrPurchase,
[Description("VR_CATALOG_UPDATE")]
VrCatalogUpdate,
[Description("VR_PURCHASE_FAILED")]
VrPurchaseFailed,
[Description("VR_PURCHASE_RESTORED")]
VrPurchaseRestored,
[Description("SUBSCRIPTION_INITIATED_CHECKOUT")]
SubscriptionInitiatedCheckout,
[Description("SUBSCRIPTION_FAILED")]
SubscriptionFailed,
[Description("SUBSCRIPTION_RESTORE")]
SubscriptionRestore,
[Description("VR_LEVEL_ACHIEVED")]
VrLevelAchieved,
[Description("VR_ACHIEVEMENT_UNLOCKED")]
VrAchievementUnlocked,
[Description("VR_SPENT_CREDITS")]
VrSpentCredits,
[Description("VR_OBTAIN_PUSH_TOKEN")]
VrObtainPushToken,
[Description("VR_PUSH_OPENED")]
VrPushOpened,
[Description("VR_ACTIVATE_APP")]
VrActivateApp,
[Description("VR_DEACTIVATE_APP")]
VrDeactivateApp,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8431b20ec581427439c33370fc8f843d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,105 @@
// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
namespace Oculus.Platform
{
using Description = System.ComponentModel.DescriptionAttribute;
public enum LogEventParameter : int
{
[Description("UNKNOWN")]
Unknown,
[Description("VR_CURRENCY")]
VrCurrency,
[Description("VR_REGISTRATION_METHOD")]
VrRegistrationMethod,
[Description("VR_CONTENT_TYPE")]
VrContentType,
[Description("VR_CONTENT")]
VrContent,
[Description("VR_CONTENT_ID")]
VrContentId,
[Description("VR_SEARCH_STRING")]
VrSearchString,
[Description("VR_SUCCESS")]
VrSuccess,
[Description("VR_MAX_RATING_VALUE")]
VrMaxRatingValue,
[Description("VR_PAYMENT_INFO_AVAILABLE")]
VrPaymentInfoAvailable,
[Description("VR_NUM_ITEMS")]
VrNumItems,
[Description("VR_LEVEL")]
VrLevel,
[Description("VR_DESCRIPTION")]
VrDescription,
[Description("AD_TYPE")]
AdType,
[Description("VR_ORDER_ID")]
VrOrderId,
[Description("EVENT_NAME")]
EventName,
[Description("LOG_TIME")]
LogTime,
[Description("IMPLICITLY_LOGGED")]
ImplicitlyLogged,
[Description("IN_BACKGROUND")]
InBackground,
[Description("VR_PUSH_CAMPAIGN")]
VrPushCampaign,
[Description("VR_PUSH_ACTION")]
VrPushAction,
[Description("VR_IAP_PRODUCT_TYPE")]
VrIapProductType,
[Description("VR_CONTENT_TITLE")]
VrContentTitle,
[Description("VR_TRANSACTION_ID")]
VrTransactionId,
[Description("VR_TRANSACTION_DATE")]
VrTransactionDate,
[Description("VR_IAP_SUBS_PERIOD")]
VrIapSubsPeriod,
[Description("VR_IAP_IS_START_TRIAL")]
VrIapIsStartTrial,
[Description("VR_IAP_HAS_FREE_TRIAL")]
VrIapHasFreeTrial,
[Description("VR_IAP_TRIAL_PERIOD")]
VrIapTrialPeriod,
[Description("VR_IAP_TRIAL_PRICE")]
VrIapTrialPrice,
[Description("SESSION_ID")]
SessionId,
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e341cfdba765e0e4d98dca7fe30d684a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,3 @@
namespace Oculus.Platform.Deprecated
{
}

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,3 @@
namespace Oculus.Platform.Deprecated
{
}

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,3 @@
namespace Oculus.Platform.Deprecated
{
}

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

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

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,8 @@
fileFormatVersion: 2
guid: ed02855b43ad8fb4bbc082d160660a2d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,23 @@
// 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
{
/// A UUID associated with the Abuse Report recording.
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,44 @@
// 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;
/// An AchievementDefinition defines an achievement; this includes its name and
/// how it is unlocked. For an individual user's progress in unlocking an
/// achievement, see AchievementProgress.
public class AchievementDefinition
{
public readonly AchievementType Type;
/// The name of the achievement.
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,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 AppDownloadProgressResult
{
/// Total number of bytes that need to be downloaded
public readonly long DownloadBytes;
/// Number of bytes that have already been downloaded
public readonly long DownloadedBytes;
/// Status code of the current app status. Can be used to find if app is
/// downloading etc.
public readonly AppStatus StatusCode;
public AppDownloadProgressResult(IntPtr o)
{
DownloadBytes = CAPI.ovr_AppDownloadProgressResult_GetDownloadBytes(o);
DownloadedBytes = CAPI.ovr_AppDownloadProgressResult_GetDownloadedBytes(o);
StatusCode = CAPI.ovr_AppDownloadProgressResult_GetStatusCode(o);
}
}
}

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