Microsoft.Xna.Framework
Class GameComponentCollection
java.lang.Object
System.Collections.ObjectModel.Collection<IGameComponent>
Microsoft.Xna.Framework.GameComponentCollection
- All Implemented Interfaces:
- java.lang.Iterable<IGameComponent>
public final class GameComponentCollection
- extends System.Collections.ObjectModel.Collection<IGameComponent>
A collection of game components.
- Author:
- Halofreak1990
Method Summary |
void |
ClearItems()
Removes all children from the collection. |
void |
RemoveItem(int index)
Removes a child object in the collection. |
Methods inherited from class System.Collections.ObjectModel.Collection |
Add, Clear, Count, get, IndexOf, Insert, iterator, set |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentAdded
public System.Event<GameComponentCollectionEventArgs> ComponentAdded
- Raised when a component is added to the GameComponentCollection.
ComponentRemoved
public System.Event<GameComponentCollectionEventArgs> ComponentRemoved
- Raised when a component is removed from the GameComponentCollection.
GameComponentCollection
public GameComponentCollection()
ClearItems
public void ClearItems()
- Removes all children from the collection.
- Overrides:
ClearItems
in class System.Collections.ObjectModel.Collection<IGameComponent>
RemoveItem
public void RemoveItem(int index)
- Removes a child object in the collection.
- Overrides:
RemoveItem
in class System.Collections.ObjectModel.Collection<IGameComponent>
- Parameters:
index
- The index of the item being removed.