Creates a new system that references this watch group. A watch group can be scheduled as multiple systems, which enables advanced ordering of the watching system. You should use either Schedule or CreateSystem, not both. If you use both the watching system is scheduled twice, and every callback is called twice.
Gets the name of this watch group
Removes all watchers that watch the component type cid
Removes a watcher with a specific id. Ids are returned by the various Watch* functions.
Shortcut for creating a system and scheduling it using s.schedule(this.CreateSystem()); You should use either Schedule or CreateSystem, not both. If you use both the watching system is scheduled twice, and every callback is called twice.
Sets a name for this watch group
Shortcut for removing the system scheduled with Schedule.
Watches entity e for the addition of component type cid. When the specified component is added, callback f is called. Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches all entities that match mask for the addition of component type cid. When the component is added, callback f is called for each entity that it was added to. Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches entity e for changes to a bool at offset, on a component with id cid. When the value is changed, f is called. Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches all entities that match mask for changes to a bool at offset, on component cid. When the value is changed, f is called for each individual entity Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches entity e for changes to a float at offset, on a component with id cid. When the value is changed, f is called. Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches all entities that match mask for changes to a float at offset, on component cid. When the value is changed, f is called for each individual entity Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches entity e for changes to an int at offset, on a component with id cid. When the value is changed, f is called. Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches all entities that match mask for changes to an int at offset, on component cid. When the value is changed, f is called for each individual entity Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches entity e for the removal of component type cid. When the component is removed, callback f is called. Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Watches all entities that match mask for the removal of component type cid. When the component is removed, the callback f is called for each entity that it was removed from. Returns an id for the watcher that can be used in RemoveWatcher.
Note that all watching callbacks are called when the watching system runs, not when the value is changed.
Generated using TypeDoc
Watch groups are standalone classes that group multiple watched values. A watch group must be scheduled as a system in order to trigger delegates/callbacks.
Callbacks have the same restrictions as code running in systems. They are called from the watching system, just like code called from any other system. They are executed when the watching system runs, and not immediately when a value changes.