WatchAttribute

Namespace: Bang.Systems
Assembly: Bang.dll

public class WatchAttribute : Attribute

Indicates a watcher attribute for a system. This must be implemented by all the systems that inherit IReactiveSystem.

Implements: Attribute

⭐ Constructors

public WatchAttribute(Type[] types)

Creates a new WatchAttribute with a set of target types.

Parameters
types Type[]

⭐ Properties

TypeId

public virtual Object TypeId { get; }

Returns
Object

Types

public Type[] Types { get; }

System will target all the entities that has all this set of components.

Returns
Type[]