The Tilt Five manager. More...
Public Member Functions | |
bool | NeedsDriverUpdate () |
Check if a driver update is needed. More... | |
bool | TryGetPlayerSettings (PlayerIndex playerIndex, out PlayerSettings playerSettings) |
Gets the player settings for the specified player. More... | |
float | GetScaleToUWRLD_UGBD () |
Pose | GetGameboardPose () |
Camera | GetEyeCamera () |
uint | GetSupportedPlayerCount () |
bool | IsActiveAndEnabled () |
Public Attributes | |
PlayerSettings[] | allPlayerSettings = new PlayerSettings[PlayerSettings.MAX_SUPPORTED_PLAYERS] |
uint | supportedPlayerCount = 3 |
SpectatorSettings | spectatorSettings = new SpectatorSettings() |
The spectator camera's runtime configuration data. More... | |
GraphicsSettings | graphicsSettings = new GraphicsSettings() |
Project-wide graphics settings related to Tilt Five. More... | |
LogSettings | logSettings = new LogSettings() |
The log settings. More... | |
Protected Member Functions | |
override void | Awake () |
Awake this instance. More... | |
Properties | |
PlayerSettings | playerOneSettings [get] |
The first player's runtime configuration data. More... | |
PlayerSettings | playerTwoSettings [get] |
The second player's runtime configuration data. More... | |
PlayerSettings | playerThreeSettings [get] |
The third player's runtime configuration data. More... | |
PlayerSettings | playerFourSettings [get] |
The fourth player's runtime configuration data. More... | |
Properties inherited from TiltFive.SingletonComponent< TiltFiveManager2 > | |
static T | Instance [get] |
Private Member Functions | |
void | Update () |
Update this instance. More... | |
void | LateUpdate () |
Update this instance after all components have finished executing their Update() functions. More... | |
void | OnEnable () |
Called when the GameObject is enabled. More... | |
void | OnDisable () |
void | OnDestroy () |
void | OnApplicationQuit () |
void | RefreshSpectatorSettings () |
Static Private Member Functions | |
static void | Quit () |
static void | RunOnStart () |
Private Attributes | |
bool | needsDriverUpdateNotifiedOnce = false |
bool | needsDriverUpdateErroredOnce = false |
Static Private Attributes | |
static bool | upgradeInProgress = false |
The Tilt Five manager.
Definition at line 45 of file TiltFiveManager2.cs.
|
protectedvirtual |
Awake this instance.
Reimplemented from TiltFive.SingletonComponent< TiltFiveManager2 >.
Definition at line 153 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.TiltFiveManager2.graphicsSettings, TiltFive.Logging.LogSettings.level, TiltFive.Logging.Log.LogLevel, TiltFive.TiltFiveManager2.logSettings, TiltFive.Logging.LogSettings.TAG, TiltFive.Logging.Log.TAG, and TiltFive.Logging.Log.Warn().
Camera TiltFive.TiltFiveManager2.GetEyeCamera | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 685 of file TiltFiveManager2.cs.
References TiltFive.Glasses.GetLeftEye().
Pose TiltFive.TiltFiveManager2.GetGameboardPose | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 680 of file TiltFiveManager2.cs.
References TiltFive.GameBoardSettings.gameBoardCenter, TiltFive.GameBoardSettings.gameBoardRotation, TiltFive.PlayerSettings.gameboardSettings, and TiltFive.TiltFiveManager2.playerOneSettings.
float TiltFive.TiltFiveManager2.GetScaleToUWRLD_UGBD | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 675 of file TiltFiveManager2.cs.
References TiltFive.GameBoardSettings.gameBoardScale, TiltFive.PlayerSettings.gameboardSettings, TiltFive.ScaleSettings.GetScaleToUWRLD_UGBD(), TiltFive.TiltFiveManager2.playerOneSettings, and TiltFive.PlayerSettings.scaleSettings.
uint TiltFive.TiltFiveManager2.GetSupportedPlayerCount | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 690 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.supportedPlayerCount.
bool TiltFive.TiltFiveManager2.IsActiveAndEnabled | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 695 of file TiltFiveManager2.cs.
|
private |
Update this instance after all components have finished executing their Update() functions.
Definition at line 281 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.TiltFiveManager2.spectatorSettings, and TiltFive.TiltFiveManager2.supportedPlayerCount.
bool TiltFive.TiltFiveManager2.NeedsDriverUpdate | ( | ) |
Check if a driver update is needed.
Note that this can also return false if this has not yet been able to connect to the Tilt Five driver service (compatibility state unknown), so this may need to be called multiple times in that case. This only returns true if we can confirm that the driver is incompatible.
If it is necessary to distinguish between unknown and compatible, use GetServiceCompatibility directly.
Definition at line 308 of file TiltFiveManager2.cs.
References TiltFive.Logging.Log.Error(), TiltFive.Logging.Log.Info(), TiltFive.TiltFiveManager2.needsDriverUpdateErroredOnce, TiltFive.TiltFiveManager2.needsDriverUpdateNotifiedOnce, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager2.Update().
|
private |
Definition at line 494 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.OnDisable().
|
private |
Definition at line 489 of file TiltFiveManager2.cs.
|
private |
Definition at line 480 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.OnApplicationQuit().
|
private |
Called when the GameObject is enabled.
Definition at line 438 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.Logging.Log.Error(), TiltFive.Logging.Log.Info(), TiltFive.TiltFiveManager2.spectatorSettings, and TiltFive.TiltFiveManager2.supportedPlayerCount.
|
staticprivate |
Definition at line 504 of file TiltFiveManager2.cs.
References TiltFive.Logging.Log.Error().
Referenced by TiltFive.TiltFiveManager2.RunOnStart().
|
private |
Definition at line 526 of file TiltFiveManager2.cs.
References TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager2.spectatorSettings, TiltFive.TiltFiveManager2.supportedPlayerCount, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager2.Update().
|
staticprivate |
bool TiltFive.TiltFiveManager2.TryGetPlayerSettings | ( | PlayerIndex | playerIndex, |
out PlayerSettings | playerSettings | ||
) |
Gets the player settings for the specified player.
playerIndex | |
playerSettings |
Definition at line 357 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.playerFourSettings, TiltFive.TiltFiveManager2.playerOneSettings, TiltFive.TiltFiveManager2.playerThreeSettings, and TiltFive.TiltFiveManager2.playerTwoSettings.
Referenced by TiltFive.Player.TryGetSettings().
|
private |
Update this instance.
Definition at line 223 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.Glasses.GetPoseRoot(), TiltFive.TiltFiveManager2.graphicsSettings, TiltFive.TiltFiveManager2.NeedsDriverUpdate(), TiltFive.TiltFiveManager2.RefreshSpectatorSettings(), TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager2.spectatorSettings, TiltFive.TiltFiveManager2.supportedPlayerCount, TiltFive.Glasses.TryGetPreviewPose(), and TiltFive.Logging.Log.Warn().
PlayerSettings [] TiltFive.TiltFiveManager2.allPlayerSettings = new PlayerSettings[PlayerSettings.MAX_SUPPORTED_PLAYERS] |
Definition at line 107 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.Awake(), TiltFive.TiltFiveManager2.LateUpdate(), TiltFive.TiltFiveManager2.OnEnable(), and TiltFive.TiltFiveManager2.Update().
GraphicsSettings TiltFive.TiltFiveManager2.graphicsSettings = new GraphicsSettings() |
Project-wide graphics settings related to Tilt Five.
Definition at line 119 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.Awake(), and TiltFive.TiltFiveManager2.Update().
LogSettings TiltFive.TiltFiveManager2.logSettings = new LogSettings() |
The log settings.
Definition at line 124 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.Awake().
|
private |
Definition at line 137 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.NeedsDriverUpdate().
|
private |
Definition at line 136 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.NeedsDriverUpdate().
SpectatorSettings TiltFive.TiltFiveManager2.spectatorSettings = new SpectatorSettings() |
The spectator camera's runtime configuration data.
Definition at line 114 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.LateUpdate(), TiltFive.TiltFiveManager2.OnEnable(), TiltFive.TiltFiveManager2.RefreshSpectatorSettings(), and TiltFive.TiltFiveManager2.Update().
uint TiltFive.TiltFiveManager2.supportedPlayerCount = 3 |
|
staticprivate |
Definition at line 139 of file TiltFiveManager2.cs.
|
get |
The fourth player's runtime configuration data.
Definition at line 95 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.TryGetPlayerSettings().
|
get |
The first player's runtime configuration data.
Definition at line 50 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.GetGameboardPose(), TiltFive.TiltFiveManager2.GetScaleToUWRLD_UGBD(), and TiltFive.TiltFiveManager2.TryGetPlayerSettings().
|
get |
The third player's runtime configuration data.
Definition at line 80 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.TryGetPlayerSettings().
|
get |
The second player's runtime configuration data.
Definition at line 65 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.TryGetPlayerSettings().