Show / Hide Table of Contents

Namespace GoRogue.Components.ParentAware

Classes

ParentAwareComponentBase

Simple (and optional) base class for components attached to a class implementing IObjectWithComponents. Adds useful events and some helper functions to allow performing type-checking of parent, or requiring that the object it's attached to has or does not have certain types of components.

ParentAwareComponentBase<TParent>

Optional base class for components attached to a class implementing IObjectWithComponents. Adds all functionality of ParentAwareComponentBase, and additionally type-checks the object it's attached to to make sure it is of the given type. It also exposes its Parent property as that type instead of object.

ParentAwareComponentRemovedEventArgs<T>

EventArguments used for the Removed event.

Interfaces

IObjectWithComponents

Interface providing a convention for objects that use component collections to store components associated with themselves.

IParentAwareComponent

Optional interface for components that are attached to something via a components field.

In this article
Back to top Generated by DocFX