Class ManagedClassDataProvider
A provider of game class names and properties from the .NET class hierarchy.
Implements
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Generic
Assembly: GameStateTracker.Generic.Managed.dll
Syntax
public class ManagedClassDataProvider : IClassDataProvider
Remarks
The game class name can be customized with the GameClass attribute. By default, all public properties are registered as game properties. Properties can be disabled with the IgnoreGameProperty attribute, and custom properties can be added with the GameProperty attribute on the class or on individual properties.
Properties
View SourceBaseGameObjectProperties
Gets the property names for the base managed game object.
Declaration
public static IReadOnlyList<string> BaseGameObjectProperties { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
BaseGameObjectTypeInfo
Gets the type info for the base managed game object.
Declaration
public static TypeInfo BaseGameObjectTypeInfo { get; }
Property Value
| Type | Description |
|---|---|
| TypeInfo |
Methods
View SourceGetBaseClassNames(TypeInfo)
Gets the base class names for game objects associated with the type.
Declaration
public IEnumerable<string> GetBaseClassNames(TypeInfo typeInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeInfo | typeInfo | The type. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | An enumerable of base class names. |
GetProperties(TypeInfo)
Gets the properties to retrieve for the given type.
Declaration
public IEnumerable<string> GetProperties(TypeInfo typeInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeInfo | typeInfo | The game object type info. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | An enumeration of properties to retrieve. |
GetPropertyNames(TypeInfo, BindingFlags)
Gets the names for properties of the given type.
Declaration
public static IEnumerable<string> GetPropertyNames(TypeInfo typeInfo, BindingFlags flags = BindingFlags.Instance | BindingFlags.Public)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeInfo | typeInfo | The type info. |
| BindingFlags | flags | The binding flags to match. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | An enumeration of property names. |