Inheritance diagram for SocialPlatformManager:
PlayerController

Public Types

enum  State {
  State.INITIALIZING, State.CHECKING_LAUNCH_STATE, State.CREATING_A_ROOM, State.WAITING_IN_A_ROOM,
  State.JOINING_A_ROOM, State.CONNECTED_IN_A_ROOM, State.LEAVING_A_ROOM, State.SHUTDOWN
}
 

Public Member Functions

virtual void Update ()
 
virtual void Awake ()
 
virtual void Start ()
 
void OnLocalAvatarPacketRecorded (object sender, OvrAvatar.PacketEventArgs args)
 
void OnApplicationQuit ()
 
void AddUser (ulong userID, ref RemotePlayer remoteUser)
 
void LogOutputLine (string line)
 
void UpdateVoiceData (short[] pcmData, int numChannels)
 

Static Public Member Functions

static void TerminateWithError (Message msg)
 
static void TransitionToState (State newState)
 
static void SetFloorColorForState (bool host)
 
static void MarkAllRemoteUsersAsNotInRoom ()
 
static void MarkRemoteUserInRoom (ulong userID)
 
static void ForgetRemoteUsersNotInRoom ()
 
static void LogOutput (string line)
 
static bool IsUserInRoom (ulong userID)
 
static void AddRemoteUser (ulong userID)
 
static void RemoveRemoteUser (ulong userID)
 
static void MicFilter (short[] pcmData, System.UIntPtr pcmDataLength, int frequency, int numChannels)
 
static RemotePlayer GetRemoteUser (ulong userID)
 

Public Attributes

OvrAvatar localAvatarPrefab
 
OvrAvatar remoteAvatarPrefab
 
GameObject helpPanel
 
Material riftMaterial
 
Material gearMaterial
 
GameObject roomSphere
 
GameObject roomFloor
 

Static Public Attributes

static readonly float VOIP_SCALE = 2f
 

Protected Attributes

MeshRenderer helpMesh
 
OvrAvatar localAvatar
 
GameObject localTrackingSpace
 
GameObject localPlayerHead
 
Dictionary< ulong, RemotePlayerremoteUsers = new Dictionary<ulong, RemotePlayer>()
 
MeshRenderer sphereMesh
 
MeshRenderer floorMesh
 
State currentState
 
RoomManager roomManager
 
P2PManager p2pManager
 
VoipManager voipManager
 
ulong myID
 
string myOculusID
 

Static Protected Attributes

static SocialPlatformManager s_instance = null
 

Properties

static State CurrentState [get]
 
static ulong MyID [get]
 
static string MyOculusID [get]
 

Member Enumeration Documentation

◆ State

Enumerator
INITIALIZING 
CHECKING_LAUNCH_STATE 
CREATING_A_ROOM 
WAITING_IN_A_ROOM 
JOINING_A_ROOM 
CONNECTED_IN_A_ROOM 
LEAVING_A_ROOM 
SHUTDOWN 

Member Function Documentation

◆ AddRemoteUser()

static void SocialPlatformManager.AddRemoteUser ( ulong  userID)
static

◆ AddUser()

void SocialPlatformManager.AddUser ( ulong  userID,
ref RemotePlayer  remoteUser 
)

◆ Awake()

virtual void SocialPlatformManager.Awake ( )
virtual

Reimplemented in PlayerController.

◆ ForgetRemoteUsersNotInRoom()

static void SocialPlatformManager.ForgetRemoteUsersNotInRoom ( )
static

◆ GetRemoteUser()

static RemotePlayer SocialPlatformManager.GetRemoteUser ( ulong  userID)
static

◆ IsUserInRoom()

static bool SocialPlatformManager.IsUserInRoom ( ulong  userID)
static

◆ LogOutput()

static void SocialPlatformManager.LogOutput ( string  line)
static

◆ LogOutputLine()

void SocialPlatformManager.LogOutputLine ( string  line)

◆ MarkAllRemoteUsersAsNotInRoom()

static void SocialPlatformManager.MarkAllRemoteUsersAsNotInRoom ( )
static

◆ MarkRemoteUserInRoom()

static void SocialPlatformManager.MarkRemoteUserInRoom ( ulong  userID)
static

◆ MicFilter()

static void SocialPlatformManager.MicFilter ( short []  pcmData,
System.UIntPtr  pcmDataLength,
int  frequency,
int  numChannels 
)
static

◆ OnApplicationQuit()

void SocialPlatformManager.OnApplicationQuit ( )

◆ OnLocalAvatarPacketRecorded()

void SocialPlatformManager.OnLocalAvatarPacketRecorded ( object  sender,
OvrAvatar.PacketEventArgs  args 
)

◆ RemoveRemoteUser()

static void SocialPlatformManager.RemoveRemoteUser ( ulong  userID)
static

◆ SetFloorColorForState()

static void SocialPlatformManager.SetFloorColorForState ( bool  host)
static

◆ Start()

virtual void SocialPlatformManager.Start ( )
virtual

Reimplemented in PlayerController.

◆ TerminateWithError()

static void SocialPlatformManager.TerminateWithError ( Message  msg)
static

◆ TransitionToState()

static void SocialPlatformManager.TransitionToState ( State  newState)
static

◆ Update()

virtual void SocialPlatformManager.Update ( )
virtual

Reimplemented in PlayerController.

◆ UpdateVoiceData()

void SocialPlatformManager.UpdateVoiceData ( short []  pcmData,
int  numChannels 
)

Member Data Documentation

◆ currentState

State SocialPlatformManager.currentState
protected

◆ floorMesh

MeshRenderer SocialPlatformManager.floorMesh
protected

◆ gearMaterial

Material SocialPlatformManager.gearMaterial

◆ helpMesh

MeshRenderer SocialPlatformManager.helpMesh
protected

◆ helpPanel

GameObject SocialPlatformManager.helpPanel

◆ localAvatar

OvrAvatar SocialPlatformManager.localAvatar
protected

◆ localAvatarPrefab

OvrAvatar SocialPlatformManager.localAvatarPrefab

◆ localPlayerHead

GameObject SocialPlatformManager.localPlayerHead
protected

◆ localTrackingSpace

GameObject SocialPlatformManager.localTrackingSpace
protected

◆ myID

ulong SocialPlatformManager.myID
protected

◆ myOculusID

string SocialPlatformManager.myOculusID
protected

◆ p2pManager

P2PManager SocialPlatformManager.p2pManager
protected

◆ remoteAvatarPrefab

OvrAvatar SocialPlatformManager.remoteAvatarPrefab

◆ remoteUsers

Dictionary<ulong, RemotePlayer> SocialPlatformManager.remoteUsers = new Dictionary<ulong, RemotePlayer>()
protected

◆ riftMaterial

Material SocialPlatformManager.riftMaterial

◆ roomFloor

GameObject SocialPlatformManager.roomFloor

◆ roomManager

RoomManager SocialPlatformManager.roomManager
protected

◆ roomSphere

GameObject SocialPlatformManager.roomSphere

◆ s_instance

SocialPlatformManager SocialPlatformManager.s_instance = null
staticprotected

◆ sphereMesh

MeshRenderer SocialPlatformManager.sphereMesh
protected

◆ VOIP_SCALE

readonly float SocialPlatformManager.VOIP_SCALE = 2f
static

◆ voipManager

VoipManager SocialPlatformManager.voipManager
protected

Property Documentation

◆ CurrentState

State SocialPlatformManager.CurrentState
staticget

◆ MyID

ulong SocialPlatformManager.MyID
staticget

◆ MyOculusID

string SocialPlatformManager.MyOculusID
staticget

The documentation for this class was generated from the following file: