Class ControllerCollection
- Namespace
- Alis.Core.Physic.Dynamics
- Assembly
- Alis.dll
The controller collection class
public class ControllerCollection : IList<Controller>, ICollection<Controller>, IEnumerable<Controller>, IEnumerable
Inheritance
Implements
Inherited Members
Constructors
ControllerCollection(World)
Initializes a new instance of the Alis.Core.Physic.Dynamics.ControllerCollection class
public ControllerCollection(World world)
Parameters
world
World-
The world
Fields
_generationStamp
The generation stamp
internal int _generationStamp
Field Value
_list
The controller
internal readonly List<Controller> _list
Field Value
_world
The world
private readonly World _world
Field Value
Properties
Count
Gets the value of the count
public int Count { get; }
Property Value
IsReadOnly
Gets the value of the is read only
public bool IsReadOnly { get; }
Property Value
this[int]
The not supported exception
public Controller this[int index] { get; set; }
Property Value
Methods
Contains(Controller)
Describes whether this instance contains
public bool Contains(Controller item)
Parameters
item
Controller-
The item
Returns
- bool
-
The bool
CopyTo(Controller[], int)
Copies the to using the specified array
public void CopyTo(Controller[] array, int arrayIndex)
Parameters
array
Controller[]-
The array
arrayIndex
int-
The array index
GetEnumerator()
Gets the enumerator
public ControllerCollection.ControllerEnumerator GetEnumerator()
Returns
- ControllerCollection.ControllerEnumerator
-
The controller enumerator
IndexOf(Controller)
Indexes the of using the specified item
public int IndexOf(Controller item)
Parameters
item
Controller-
The item
Returns
- int
-
The int
ICollection<Controller>.Add(Controller)
Adds the item
void ICollection<Controller>.Add(Controller item)
Parameters
item
Controller-
The item
Exceptions
ICollection<Controller>.Clear()
Clears this instance
void ICollection<Controller>.Clear()
Exceptions
ICollection<Controller>.Remove(Controller)
Describes whether this instance remove
bool ICollection<Controller>.Remove(Controller item)
Parameters
item
Controller-
The item
Returns
- bool
-
The bool
IEnumerable<Controller>.GetEnumerator()
Gets the enumerator
IEnumerator<Controller> IEnumerable<Controller>.GetEnumerator()
Returns
- IEnumerator<Controller>
-
An enumerator of controller
IList<Controller>.Insert(int, Controller)
Inserts the index
void IList<Controller>.Insert(int index, Controller item)
Parameters
index
int-
The index
item
Controller-
The item
Exceptions
IList<Controller>.RemoveAt(int)
Removes the at using the specified index
void IList<Controller>.RemoveAt(int index)
Parameters
index
int-
The index
Exceptions
IEnumerable.GetEnumerator()
Gets the enumerator
IEnumerator IEnumerable.GetEnumerator()
Returns
- IEnumerator
-
The enumerator
See Also
-
IEnumerable<T>ICollection<T>IList<T>