22 lines
479 B
C#
22 lines
479 B
C#
using Oculus.Platform.Models;
|
|
|
|
namespace Oculus.Platform
|
|
{
|
|
public static class Parties
|
|
{
|
|
public static Request<Party> GetCurrent()
|
|
{
|
|
if (Core.IsInitialized())
|
|
{
|
|
return new Request<Party>(CAPI.ovr_Party_GetCurrent());
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static void SetPartyUpdateNotificationCallback(Message<PartyUpdateNotification>.Callback callback)
|
|
{
|
|
Callback.SetNotificationCallback(Message.MessageType.Notification_Party_PartyUpdate, callback);
|
|
}
|
|
}
|
|
}
|