Class ManagedGameObject
A base class used to represent a game object with a managed type.
Inheritance
ManagedGameObject
Inherited Members
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 SourceManagedGameObject(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. |
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 SourceGetInstanceProperty(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. |