Class IClassManagerExtensions
Extension methods for IClassManager.
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Generic
Assembly: GameStateTracker.Generic.dll
Syntax
public static class IClassManagerExtensions
Methods
View SourceAddProperties<T>(IClassManager, params string[])
Adds properties to retrieve for the given type.
Declaration
public static void AddProperties<T>(this IClassManager self, params string[] propertyNames)
Parameters
| Type | Name | Description |
|---|---|---|
| IClassManager | self | The class manager being extended. |
| string[] | propertyNames | The properties to retrieve. |
Type Parameters
| Name | Description |
|---|---|
| T | The game object type. |
SetBaseClass(IClassManager, string?, IEnumerable<IGameObject>)
Sets the base class name for an enumerable of game objects.
Declaration
public static bool SetBaseClass(this IClassManager self, string? className, IEnumerable<IGameObject> objects)
Parameters
| Type | Name | Description |
|---|---|---|
| IClassManager | self | The class manager being extended. |
| string | className | The base class name. |
| IEnumerable<IGameObject> | objects | The game objects. |
Returns
| Type | Description |
|---|---|
| bool | True if any subclasses were previously unknown. |
SetBaseClass(IClassManager, string, IEnumerable<string>)
Sets the base class name for an enumerable of subclasses.
Declaration
public static bool SetBaseClass(this IClassManager self, string className, IEnumerable<string> subclasses)
Parameters
| Type | Name | Description |
|---|---|---|
| IClassManager | self | The class manager being extended. |
| string | className | The base class name. |
| IEnumerable<string> | subclasses | The subclass names. |
Returns
| Type | Description |
|---|---|
| bool | True if any subclasses were previously unknown. |
SetBaseClass<T>(IClassManager, params string[])
Sets the base class name for an enumerable of subclasses.
Declaration
public static bool SetBaseClass<T>(this IClassManager self, params string[] subclasses)
Parameters
| Type | Name | Description |
|---|---|---|
| IClassManager | self | The class manager being extended. |
| string[] | subclasses | The subclass names. |
Returns
| Type | Description |
|---|---|
| bool | True if any subclasses were previously unknown. |
Type Parameters
| Name | Description |
|---|---|
| T | The base class type. |