Class IGameObjectExtensions
Extension methods for IGameObject.
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Abstractions.dll
Syntax
public static class IGameObjectExtensions
Methods
View SourceClassName(IGameObject)
Gets the object's class name.
Declaration
public static string? ClassName(this IGameObject self)
Parameters
Type | Name | Description |
---|---|---|
IGameObject | self | The game object being extended. |
Returns
Type | Description |
---|---|
string | The class name. |
InfoEquals(IGameObject, IGameObject?)
Determines if two game objects have the same info.
Declaration
public static bool InfoEquals(this IGameObject self, IGameObject? other)
Parameters
Type | Name | Description |
---|---|---|
IGameObject | self | The game object being extended. |
IGameObject | other | The game object to compare against. |
Returns
Type | Description |
---|---|
bool | True if the objects have the same info. |
InfoEquals(IGameObject, in ObjectInfo)
Determines if a game object has the given info.
Declaration
public static bool InfoEquals(this IGameObject self, in ObjectInfo other)
Parameters
Type | Name | Description |
---|---|---|
IGameObject | self | The game object being extended. |
ObjectInfo | other | The object info to compare against. |
Returns
Type | Description |
---|---|
bool | True if the object's info is equal to the given value. |
ObjectName(IGameObject)
Gets the object's name.
Declaration
public static string? ObjectName(this IGameObject self)
Parameters
Type | Name | Description |
---|---|---|
IGameObject | self | The game object being extended. |
Returns
Type | Description |
---|---|
string | The name. |