BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Scripts / Models / Party.cs

Party.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
Party.cs 2.0 KiB Download Raw
1// This file was @generated with LibOVRPlatform/codegen/main. Do not modify it!
2
3#pragma warning disable 0618
4
5namespace Oculus.Platform.Models
6{
7 using System;
8 using System.Collections;
9 using Oculus.Platform.Models;
10 using System.Collections.Generic;
11 using UnityEngine;
12
13 public class Party
14 {
15 public readonly UInt64 ID;
16 // May be null. Check before using.
17 public readonly UserList InvitedUsersOptional;
18 [Obsolete("Deprecated in favor of InvitedUsersOptional")]
19 public readonly UserList InvitedUsers;
20 // May be null. Check before using.
21 public readonly User LeaderOptional;
22 [Obsolete("Deprecated in favor of LeaderOptional")]
23 public readonly User Leader;
24 // May be null. Check before using.
25 public readonly Room RoomOptional;
26 [Obsolete("Deprecated in favor of RoomOptional")]
27 public readonly Room Room;
28 // May be null. Check before using.
29 public readonly UserList UsersOptional;
30 [Obsolete("Deprecated in favor of UsersOptional")]
31 public readonly UserList Users;
32
33
34 public Party(IntPtr o)
35 {
36 ID = CAPI.ovr_Party_GetID(o);
37 {
38 var pointer = CAPI.ovr_Party_GetInvitedUsers(o);
39 InvitedUsers = new UserList(pointer);
40 if (pointer == IntPtr.Zero) {
41 InvitedUsersOptional = null;
42 } else {
43 InvitedUsersOptional = InvitedUsers;
44 }
45 }
46 {
47 var pointer = CAPI.ovr_Party_GetLeader(o);
48 Leader = new User(pointer);
49 if (pointer == IntPtr.Zero) {
50 LeaderOptional = null;
51 } else {
52 LeaderOptional = Leader;
53 }
54 }
55 {
56 var pointer = CAPI.ovr_Party_GetRoom(o);
57 Room = new Room(pointer);
58 if (pointer == IntPtr.Zero) {
59 RoomOptional = null;
60 } else {
61 RoomOptional = Room;
62 }
63 }
64 {
65 var pointer = CAPI.ovr_Party_GetUsers(o);
66 Users = new UserList(pointer);
67 if (pointer == IntPtr.Zero) {
68 UsersOptional = null;
69 } else {
70 UsersOptional = Users;
71 }
72 }
73 }
74 }
75
76}