Show / Hide Table of Contents

Class DefaultGameObjectFormatter

The default style of formatting game objects in a user-friendly way.

Inheritance
object
DefaultGameObjectFormatter
Implements
IGameObjectFormatter
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Core.dll
Syntax
public class DefaultGameObjectFormatter : IGameObjectFormatter

Methods

View Source

Format(object, out ObjectInfo?)

Converts the value to a user-friendly string.

Declaration
public static string Format(object value, out ObjectInfo? linkedObject)
Parameters
Type Name Description
object value

The value to convert.

ObjectInfo? linkedObject

A reference to a game object represented by the value (not used).

Returns
Type Description
string

The string.

View Source

FormatName(ObjectInfo)

Formats the object's name.

Declaration
public string FormatName(ObjectInfo info)
Parameters
Type Name Description
ObjectInfo info

The object info.

Returns
Type Description
string

A string representation of the name.

View Source

FormatPropertyValue(object, out ObjectInfo?)

Formats the given property value.

Declaration
public string FormatPropertyValue(object value, out ObjectInfo? linkedObject)
Parameters
Type Name Description
object value

The value.

ObjectInfo? linkedObject

A reference to a game object represented by the value.

Returns
Type Description
string

A string representation of the value.

Implements

IGameObjectFormatter
  • View Source
In this article
Back to top Generated by DocFX