예제 #1
0
파일: Indexes.cs 프로젝트: interess/GGJ2018
 public MenuButtonIdIndex(StateContext context) : base()
 {
     groupToWatch = context.GetGroup(Matcher <StateEntity> .AllOf(StateMatcher.MenuButtonId));
     groupToWatch.OnEntityAdded   += Added;
     groupToWatch.OnEntityUpdated += Updated;
     groupToWatch.OnEntityRemoved += Removed;
 }
예제 #2
0
파일: Indexes.cs 프로젝트: interess/GGJ2018
 public ChannelIndex(StateContext context) : base()
 {
     groupToWatch = context.GetGroup(Matcher <StateEntity> .AllOf(StateMatcher.Channel));
     groupToWatch.OnEntityAdded   += Added;
     groupToWatch.OnEntityUpdated += Updated;
     groupToWatch.OnEntityRemoved += Removed;
 }