mod updatable

Traits

A trait for components that can be updated.

This allows specifying whether only the state has changed (Updatable::update) or if the config changed as well (Updatable::update_full).

Functions

Updates this Updatable to resemble the new State. The passed Config is assumed to be unchanged (i.e., components that only depend on Config will not be updated, however components that do depend on State will use the updated Config). If the Config changed, use Updatable::update_full instead.

Updates this Updatable to resemble the new State, Config, and ViewportProjection. For updates, which only changed the State, use Updatable::update instead.