GameComponent Members
The following tables list the members exposed by the GameComponent type.
Public Constructors
Name | Description | |
---|---|---|
GameComponent | Initializes a new instance of this class. |
Public Properties
Name | Description | |
---|---|---|
Enabled | Indicates whether GameComponent.Update should be called when Game.Update is called. | |
Game | Gets the Game associated with this GameComponent. | |
UpdateOrder | Indicates the order in which the GameComponent should be updated relative to other GameComponent instances. Lower values are updated first. |
Public Methods
Name | Description | |
---|---|---|
Dispose | Overloaded. Immediately releases the unmanaged resources used by this object. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Initialize | Called when the GameComponent needs to be initialized. | |
ToString | (Inherited from Object.) | |
Update | Called when the GameComponent needs to be updated. Override this method with component-specific update code. |
Protected Methods
Name | Description | |
---|---|---|
Finalize | Allows a GameComponent to attempt to free resources and perform other cleanup operations before garbage collection reclaims the GameComponent. | |
MemberwiseClone | (Inherited from Object.) | |
OnEnabledChanged | Called when the Enabled property changes. Raises the EnabledChanged event. | |
OnUpdateOrderChanged | Called when the UpdateOrder property changes. Raises the UpdateOrderChanged event. |
Public Events
Name | Description | |
---|---|---|
Disposed | Raised when the GameComponent is disposed. | |
EnabledChanged | Raised when the Enabled property changes. | |
UpdateOrderChanged | Raised when the UpdateOrder property changes. |