Click or drag to resize
DigitalRuneGameEventCollection Structure
Manages a collection of game object events.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public struct GameEventCollection : IEnumerable<IGameEvent>, 
	IEnumerable, IEquatable<GameEventCollection>

The GameEventCollection type exposes the following members.

Methods
  NameDescription
Public methodAddT(Int32)
Adds an event with the given ID.
Public methodAddT(String)
Adds an event with the given name.
Public methodAddT(GameEventMetadataT)
Adds an event for the given metadata.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(GameEventCollection)
Indicates whether the current object is equal to another object of the same type.
Public methodGetT(Int32)
Gets the event with the given ID.
Public methodGetT(String)
Gets the event with the given name.
Public methodGetT(GameEventMetadataT)
Gets the event for the given metadata.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove(Int32)
Removes the event with the given ID.
Public methodRemove(IGameEventMetadata)
Removes the event for the given metadata.
Public methodRemoveT(String)
Removes the event with the given name.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two GameEventCollections to determine whether they are the same.
Public operatorStatic memberInequality
Compares two GameEventCollections to determine whether they are different.
Top
Extension Methods
  NameDescription
Public Extension MethodDoIGameEvent(ActionIGameEvent)Overloaded.
Performs the given action on each element in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodDoIGameEvent(ActionIGameEvent, Int32)Overloaded.
Performs the given action on each element (incorporating its index) in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodForEachIGameEvent(ActionIGameEvent)Overloaded.
Immediately performs the given action on each element in a sequence.
(Defined by LinqHelper.)
Public Extension MethodForEachIGameEvent(ActionIGameEvent, Int32)Overloaded.
Immediately performs the given action on each element (incorporating its index) in a sequence.
(Defined by LinqHelper.)
Public Extension MethodIndexOfIGameEvent
Returns the index of the first element in a sequence that satisfies the specified condition.
(Defined by LinqHelper.)
Top
Properties
  NameDescription
Public propertyOwner
Gets the game object that owns this collection.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through the collection.
Top
Remarks
This collection implements IEnumerableT, but enumerating the collection allocates heap memory (garbage!) and should only be used in game editors and not in performance critical paths of a game.
See Also