C# Class Artemis.Engine.UpdatableObject

Inheritance: Artemis.Engine.Utilities.Partial.PartialEngineAdapter
Afficher le fichier Open project: ArtemisEngine/Artemis-Engine Class Usage Examples

Méthodes publiques

Свойство Type Description
DisallowMultipleUpdates bool

Méthodes publiques

Méthode Description
AddUpdater ( Updater updater ) : void

Add an updater to this object.

AuxiliaryUpdate ( ) : void
ClearUpdater ( ) : void

Remove all updaters from this object.

Kill ( ) : void
Pause ( ) : void

Pause automatic updating. This will only have an effect if ManuallyUpdate is false, in which case the engine automatically updates the object. Regardless of whether or not automatic updating is paused, directly calling "Update" will still update the object.

RemoveUpdater ( Updater updater ) : void

Remove an updater from this object.

SetUpdater ( Updater updater ) : void

Set the updater for this object.

UnPause ( ) : void

Resume automatic updating.

Update ( ) : void

Private Methods

Méthode Description
InternalUpdate ( ) : void

This is the update method for everything that must be updated every frame regardless of the values of IsPaused or ManuallyUpdate. InternalUpdate is always called by the engine once per game tick, unless the user manually calls "Update". For example, TimeableObject uses InternalUpdate to update it's internal lifetime. This can only be called once every game tick and MUST be called.

UpdatableObject ( ) : Artemis.Engine.Utilities

Method Details

AddUpdater() public méthode

Add an updater to this object.
public AddUpdater ( Updater updater ) : void
updater Updater
Résultat void

AuxiliaryUpdate() public méthode

public AuxiliaryUpdate ( ) : void
Résultat void

ClearUpdater() public méthode

Remove all updaters from this object.
public ClearUpdater ( ) : void
Résultat void

Kill() public méthode

public Kill ( ) : void
Résultat void

Pause() public méthode

Pause automatic updating. This will only have an effect if ManuallyUpdate is false, in which case the engine automatically updates the object. Regardless of whether or not automatic updating is paused, directly calling "Update" will still update the object.
public Pause ( ) : void
Résultat void

RemoveUpdater() public méthode

Remove an updater from this object.
public RemoveUpdater ( Updater updater ) : void
updater Updater
Résultat void

SetUpdater() public méthode

Set the updater for this object.
public SetUpdater ( Updater updater ) : void
updater Updater
Résultat void

UnPause() public méthode

Resume automatic updating.
public UnPause ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

DisallowMultipleUpdates public_oe property

Whether or not "Update" can be called multiple times in a single game tick.
public bool DisallowMultipleUpdates
Résultat bool