Entitas  0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
IMatcherExtension.cs
1 namespace Entitas {
2 
3  public static class IMatcherExtension {
4 
5  /// Convenience method to create a new TriggerOnEvent.
6  /// Commonly used in IReactiveSystem and IMultiReactiveSystem.
7  public static TriggerOnEvent OnEntityAdded(this IMatcher matcher) {
8  return new TriggerOnEvent(matcher, GroupEventType.OnEntityAdded);
9  }
10 
11  /// Convenience method to create a new TriggerOnEvent.
12  /// Commonly used in IReactiveSystem and IMultiReactiveSystem.
13  public static TriggerOnEvent OnEntityRemoved(this IMatcher matcher) {
14  return new TriggerOnEvent(matcher, GroupEventType.OnEntityRemoved);
15  }
16 
17  /// Convenience method to create a new TriggerOnEvent.
18  /// Commonly used in IReactiveSystem and IMultiReactiveSystem.
19  public static TriggerOnEvent OnEntityAddedOrRemoved(this IMatcher matcher) {
20  return new TriggerOnEvent(matcher, GroupEventType.OnEntityAddedOrRemoved);
21  }
22  }
23 }
static TriggerOnEvent OnEntityAdded(this IMatcher matcher)
static TriggerOnEvent OnEntityAddedOrRemoved(this IMatcher matcher)
static TriggerOnEvent OnEntityRemoved(this IMatcher matcher)