Interface ISortedComponent
Interface that you may optionally implement on objects added to a IComponentCollection (for example, ComponentCollection) that enforces an order in which components are returned from functions that retrieve components.
Namespace: GoRogue.Components
Assembly: GoRogue.dll
Syntax
public interface ISortedComponent
Remarks
When functions that return components are called on ComponentCollection or some other IComponentCollection, components with a lower SortOrder are returned before components with a higher one. Components that do not implement ISortedComponent are returned after any that do.
This can be useful to enforce that certain types of or instances of components are processed before some other type of or instance of components.
Properties
View SourceSortOrder
Value indicating the relative ordering of this component. A lower value cause a component to be retrieved before any components of the same type with a higher value.
Declaration
uint SortOrder { get; }
Property Value
Type | Description |
---|---|
uint |