Show / Hide Table of Contents

Interface IGameObjectComponent

Optional interface for components that are attached to an IGameObject. While the implementation of this interface is not required for IGameObject components, if GameObject's implementation of IHasComponents is used, the Parent field is automatically kept up to date as you call AddComponent(Object)/RemoveComponent(Object) on objects that implement this interface. A component implmenting this interface cannot be added to multiple GameObjects at once.

Namespace: GoRogue.GameFramework.Components
Assembly: GoRogue.dll
Syntax
public interface IGameObjectComponent

Properties

| Improve this Doc View Source

Parent

The object to which this component is attached, or null if it is not attached. Should not be set manually, as this is taken care of by AddComponent(Object)/RemoveComponent(Object)

Declaration
IGameObject Parent { get; set; }
Property Value
Type Description
IGameObject

Extension Methods

Utility.Yield<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX