C# Класс Artemis.Engine.UpdatableObject

Наследование: Artemis.Engine.Utilities.Partial.PartialEngineAdapter
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DisallowMultipleUpdates bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddUpdater() публичный Метод

Add an updater to this object.
public AddUpdater ( Updater updater ) : void
updater Updater
Результат void

AuxiliaryUpdate() публичный Метод

public AuxiliaryUpdate ( ) : void
Результат void

ClearUpdater() публичный Метод

Remove all updaters from this object.
public ClearUpdater ( ) : void
Результат void

Kill() публичный Метод

public Kill ( ) : void
Результат void

Pause() публичный Метод

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
Результат void

RemoveUpdater() публичный Метод

Remove an updater from this object.
public RemoveUpdater ( Updater updater ) : void
updater Updater
Результат void

SetUpdater() публичный Метод

Set the updater for this object.
public SetUpdater ( Updater updater ) : void
updater Updater
Результат void

UnPause() публичный Метод

Resume automatic updating.
public UnPause ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

DisallowMultipleUpdates публичное свойство

Whether or not "Update" can be called multiple times in a single game tick.
public bool DisallowMultipleUpdates
Результат bool