Show / Hide Table of Contents

Class CompassGameStateManager

A class to manage the Compass's internal game state data.

Inheritance
System.Object
CompassGameStateManager
Implements
System.IDisposable
Namespace: Phoenix.Controls.Compass
Assembly: Phoenix.Controls.Compass.dll
Syntax
public class CompassGameStateManager : BindableBase, IDisposable

Constructors

View Source

CompassGameStateManager(CompassViewModel, ICompassGameStateClient, IPhoenixLogger, String, IDevice)

Initializes a new instance of the CompassGameStateManager class.

Declaration
public CompassGameStateManager(CompassViewModel compass, ICompassGameStateClient gameStateClient, IPhoenixLogger logger, string loggerPrefix, IDevice device = null)
Parameters
Type Name Description
CompassViewModel compass

The compass to display objects on.

ICompassGameStateClient gameStateClient

The game state client to connect to.

IPhoenixLogger logger

The logger.

System.String loggerPrefix

The prefix to use for the logger.

IDevice device

The device.

Properties

View Source

Connected

Gets a value indicating whether the compass is connected.

Declaration
public bool Connected { get; }
Property Value
Type Description
System.Boolean
View Source

ConnectionStatus

Gets the connection status string.

Declaration
public string ConnectionStatus { get; }
Property Value
Type Description
System.String
View Source

GameStateClient

Gets the game state client.

Declaration
public ICompassGameStateClient GameStateClient { get; }
Property Value
Type Description
ICompassGameStateClient
View Source

InternalGameStateDataAvailable

Gets a value indicating whether game state data is available via the Compass Game State Client. Used in xaml.

Declaration
public bool InternalGameStateDataAvailable { get; }
Property Value
Type Description
System.Boolean
View Source

ObjectTypes

Gets the list of object types available to track from the game state.

Declaration
public List<CompassObjectType> ObjectTypes { get; }
Property Value
Type Description
System.Collections.Generic.List<CompassObjectType>
View Source

PlayerRefreshRate

Gets the players actual refresh rate based on the refresh string and the time span type. Used in xaml.

Declaration
public TimeSpan? PlayerRefreshRate { get; }
Property Value
Type Description
System.Nullable<System.TimeSpan>
View Source

PlayerRefreshRateString

Gets or sets the current the string representing the refresh rate. Used in xaml.

Declaration
public string PlayerRefreshRateString { get; set; }
Property Value
Type Description
System.String
View Source

PlayerRefreshRateType

Gets or sets the current time span type the player's refresh rate is using. Used in xaml.

Declaration
public TimeSpanType PlayerRefreshRateType { get; set; }
Property Value
Type Description
TimeSpanType
View Source

UsePlayerData

Gets or sets a value indicating whether to update the player data via the game state.

Declaration
public bool UsePlayerData { get; set; }
Property Value
Type Description
System.Boolean

Methods

View Source

CancelUpdateLoop()

Cancels the update loop for checking for new game state data.

Declaration
public void CancelUpdateLoop()
View Source

CreateCompassClient()

Creates the compass client.

Declaration
public async Task CreateCompassClient()
Returns
Type Description
System.Threading.Tasks.Task

A task.

View Source

Dispose()

Declaration
public void Dispose()
View Source

InitializeData()

Ask the game state client for available object types as well as player data.

Declaration
public async Task<bool> InitializeData()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Whether or not the game state client was accessible.

View Source

StartUpdateLoop()

Starts the update loop for checking for new game state data.

Declaration
public void StartUpdateLoop()
View Source

UpdateData()

Update the object data from the game state client.

Declaration
public async Task<bool> UpdateData()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Returns a boolean of whether or not the data from the game state was successfully updated.

View Source

UpdatePlayerData()

Ask the game state client for the current player data.

Declaration
public async Task UpdatePlayerData()
Returns
Type Description
System.Threading.Tasks.Task

A task.

Implements

System.IDisposable
  • View Source
In This Article
Back to top Generated by DocFX