Show / Hide Table of Contents

Class ManagedGameObject

A base class used to represent a game object with a managed type.

Inheritance
object
ManagedGameObjectBase
ManagedGameObject
FakeManagedGameObject
FakeManagedGameObjectWithAdditionalData
FakeManagedGameObjectWithCustomPropertyName
FakeManagedGameObjectWithListProperty
Implements
IGameObject
INotifyPropertyChanged
Inherited Members
ManagedGameObjectBase.PropertyChanged
ManagedGameObjectBase.Info
ManagedGameObjectBase.GameState
ManagedGameObjectBase.Properties
ManagedGameObjectBase.AdditionalData
ManagedGameObjectBase.this[string]
ManagedGameObjectBase.ToString()
ManagedGameObjectBase.SetInstanceProperty(string, object)
ManagedGameObjectBase.ConvertInstancePropertyValue(PropertyInfo, object)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.GameStateTracker.Generic
Assembly: GameStateTracker.Generic.Managed.dll
Syntax
public class ManagedGameObject : ManagedGameObjectBase, IGameObject, INotifyPropertyChanged
Remarks

Public fields and properties are automatically registered as game properties. However, if those members have the GamePropertyAttribute, that name is queried instead.

Constructors

View Source

ManagedGameObject(IGameObject)

Initializes a new instance of the ManagedGameObject class.

Declaration
public ManagedGameObject(IGameObject gameObject)
Parameters
Type Name Description
IGameObject gameObject

The game object to clone.

View Source

ManagedGameObject(in ObjectInfo)

Initializes a new instance of the ManagedGameObject class.

Declaration
public ManagedGameObject(in ObjectInfo info)
Parameters
Type Name Description
ObjectInfo info

The game object info.

Methods

View Source

GetInstanceProperty(string)

Gets the property info the given game class property.

Declaration
protected override PropertyInfo? GetInstanceProperty(string key)
Parameters
Type Name Description
string key

The property name.

Returns
Type Description
PropertyInfo

The property info.

Overrides
ManagedGameObjectBase.GetInstanceProperty(string)

Implements

IGameObject
INotifyPropertyChanged

Extension Methods

IGameObjectExtensions.ClassName(IGameObject)
IGameObjectExtensions.InfoEquals(IGameObject, IGameObject?)
IGameObjectExtensions.InfoEquals(IGameObject, in ObjectInfo)
IGameObjectExtensions.ObjectName(IGameObject)
IGameObjectExtensions.Matches(IGameObject, IClassManager, in ObjectInfo)
  • View Source
In this article
Back to top Generated by DocFX