GameComponent Members

The following tables list the members exposed by the GameComponent type.

Public MethodGameComponentInitializes a new instance of this class.

Public PropertyEnabledIndicates whether GameComponent.Update should be called when Game.Update is called.
Public PropertyGame Gets the Game associated with this GameComponent.
Public PropertyUpdateOrderIndicates the order in which the GameComponent should be updated relative to other GameComponent instances. Lower values are updated first.

Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodEquals (Inherited from Object.)
Public MethodGetHashCode (Inherited from Object.)
Public MethodGetType (Inherited from Object.)
Public MethodInitializeCalled when the GameComponent needs to be initialized. Override this method to query for required services and load any non-graphics resources.
Public MethodReferenceEquals (Inherited from Object.)
Public MethodToString (Inherited from Object.)
Public MethodUpdateCalled when the GameComponent needs to be updated. Override this method with component-specific update code.

Protected MethodFinalize Allows a GameComponent to attempt to free resources and perform other cleanup operations before garbage collection reclaims the GameComponent.
Protected MethodMemberwiseClone (Inherited from Object.)
Protected MethodOnEnabledChangedCalled when the Enabled property changes. Raises the EnabledChanged event.
Protected MethodOnUpdateOrderChangedCalled when the UpdateOrder property changes. Raises the UpdateOrderChanged event.

Public EventDisposedRaised when the GameComponent is disposed.
Public EventEnabledChangedRaised when the Enabled property changes.
Public EventUpdateOrderChangedRaised when the UpdateOrder property changes.

Community Additions