ObjectList
Description
A list of child components for providing automatic callbacks for common interfaces.
Callbacks for IInputConsumer are performed in the order in which the IInputConsumer objects have been added to this list, until an object returns true
from IInputConsumer.ConsumeInput.
There are no automatic callbacks for IRenderable.Render and IRenderable2D.Render2D, since the issuing of render commands is usually tightly coupled with the render pipeline.
Public / Methods
ObjectAdd
Adds an object to this list.
The following callbacks are performed immediately on obj in:
-
IInputConsumerEx.InputAttach:
If this object list is currently attached to an input state object. -
IGraphicsComponent.GraphicsAttach:
IGraphicsComponent.GraphicsResize:
If this object list is currently attached to a graphics object.
- RenderException
-
If a graphics subsystem error has occurred while calling IGraphicsComponent.GraphicsAttach on the given object.
ObjectAddNoThrow
Adds an object to this list, assuming that the given object does not implement IGraphicsComponent or that IGraphicsComponent.GraphicsAttach has not been called on this ObjectList object.
This method delegates to ObjectAdd and panics if a RenderException is thrown. Use this method to allow static code analysis to exploit the fact that RenderException will never be thrown.
ObjectRemove
Removes an object from this list.
The following callbacks are performed immediately on obj in:
-
IGraphicsComponent.GraphicsDetach:
If this object list is currently attached to a graphics object. -
IInputConsumerEx.InputDetach:
If this object list is currently attached to an input state object.