Show / Hide Table of Contents

Class IGameObjectExtensions

Extension methods for IGameObject.

Inheritance
object
IGameObjectExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Abstractions.dll
Syntax
public static class IGameObjectExtensions

Methods

View Source

ClassName(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.

View Source

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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX