Conceived of as a way to synchronize the data in an ECS with a UI, though it
can be used in any situation in which a user needs to interact with a system
asynchronously. The user's desired state of the system is modeled using the
same data structure which represents the actual state of the system. The
system can then act on the user's input and update the model of its actual
state as it sees fit. The responsibility of keeping the model of the user's
desires in sync with the actual system state is on the user interface. The
system uses a dirty flag to know if the desired state has changed since the
last call to clean().
Type parameters
TModel: Object | Array<any> | number | string | boolean
Conceived of as a way to synchronize the data in an ECS with a UI, though it can be used in any situation in which a user needs to interact with a system asynchronously. The user's desired state of the system is modeled using the same data structure which represents the actual state of the system. The system can then act on the user's input and update the model of its actual state as it sees fit. The responsibility of keeping the model of the user's desires in sync with the actual system state is on the user interface. The system uses a dirty flag to know if the desired state has changed since the last call to
clean()
.