Show / Hide Table of Contents

Class DataContractGameObject

A base class used to populate a DataContract with a generic game object.

Inheritance
object
GenericGameObject
DataContractGameObject
FakeDataContractGameObject
Implements
IGameObject
INotifyPropertyChanged
Inherited Members
GenericGameObject.PropertyChanged
GenericGameObject.Name
GenericGameObject.Info
GenericGameObject.GameState
GenericGameObject.Properties
GenericGameObject.this[string]
GenericGameObject.Equals(object)
GenericGameObject.GetHashCode()
GenericGameObject.ToString()
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.GameStateTracker.Generic
Assembly: GameStateTracker.Generic.DataContract.dll
Syntax
[DataContract]
public class DataContractGameObject : GenericGameObject, IGameObject, INotifyPropertyChanged

Constructors

View Source

DataContractGameObject(IGameObject)

Initializes a new instance of the DataContractGameObject class.

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

The game object to encapsulate.

Methods

View Source

GetPropertyInfo(string)

Gets the property info for the given property.

Declaration
protected virtual PropertyInfo? GetPropertyInfo(string propertyName)
Parameters
Type Name Description
string propertyName

The property name.

Returns
Type Description
PropertyInfo

The property info, if it exists.

View Source

OnGameObjectPropertyChanged(object?, PropertyChangedEventArgs)

Called when a property changes on the underlying game object.

Declaration
protected override void OnGameObjectPropertyChanged(object? sender, PropertyChangedEventArgs e)
Parameters
Type Name Description
object sender

The sender.

PropertyChangedEventArgs e

The property changed event args.

Overrides
GenericGameObject.OnGameObjectPropertyChanged(object?, PropertyChangedEventArgs)

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