コード例 #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;
 }