Files
2025-07-21 09:11:14 +02:00

47 lines
1.5 KiB
C#

// 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 NetSyncSession
{
/// Which connection this session exists within
public readonly long ConnectionId;
/// True if the local session has muted this session.
public readonly bool Muted;
/// The cloud networking internal session ID that represents this connection.
public readonly UInt64 SessionId;
/// The ovrID of the user behind this session
public readonly UInt64 UserId;
/// The name of the voip group that this session is subscribed to
public readonly string VoipGroup;
public NetSyncSession(IntPtr o)
{
ConnectionId = CAPI.ovr_NetSyncSession_GetConnectionId(o);
Muted = CAPI.ovr_NetSyncSession_GetMuted(o);
SessionId = CAPI.ovr_NetSyncSession_GetSessionId(o);
UserId = CAPI.ovr_NetSyncSession_GetUserId(o);
VoipGroup = CAPI.ovr_NetSyncSession_GetVoipGroup(o);
}
}
public class NetSyncSessionList : DeserializableList<NetSyncSession> {
public NetSyncSessionList(IntPtr a) {
var count = (int)CAPI.ovr_NetSyncSessionArray_GetSize(a);
_Data = new List<NetSyncSession>(count);
for (int i = 0; i < count; i++) {
_Data.Add(new NetSyncSession(CAPI.ovr_NetSyncSessionArray_GetElement(a, (UIntPtr)i)));
}
}
}
}