public final class GameComponentCollection extends System.Collections.ObjectModel.Collection<IGameComponent>
Modifier and Type | Field and Description |
---|---|
System.Event<GameComponentCollectionEventArgs> |
ComponentAdded
Raised when a component is added to the GameComponentCollection.
|
System.Event<GameComponentCollectionEventArgs> |
ComponentRemoved
Raised when a component is removed from the GameComponentCollection.
|
Constructor and Description |
---|
GameComponentCollection()
Initializes a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ClearItems()
Removes all children from the collection.
|
protected void |
InsertItem(int index,
IGameComponent item)
Inserts a child object into the collection at the specified location.
|
protected void |
RemoveItem(int index)
Removes a child object in the collection.
|
protected void |
SetItem(int index,
IGameComponent item)
Modifies the specified child object in the collection.
|
public final System.Event<GameComponentCollectionEventArgs> ComponentAdded
public final System.Event<GameComponentCollectionEventArgs> ComponentRemoved
public GameComponentCollection()
protected void ClearItems()
ClearItems
in class System.Collections.ObjectModel.Collection<IGameComponent>
protected void InsertItem(int index, IGameComponent item)
InsertItem
in class System.Collections.ObjectModel.Collection<IGameComponent>
index
- The position in the collection.item
- The child object being inserted.protected void RemoveItem(int index)
RemoveItem
in class System.Collections.ObjectModel.Collection<IGameComponent>
index
- The index of the item being removed.protected void SetItem(int index, IGameComponent item)
SetItem
in class System.Collections.ObjectModel.Collection<IGameComponent>
index
- The position in the collection.item
- The child object being modified.