コード例 #1
0
 public BulletEntityCollector(BulletContext bulletContext, PlayerContext playerContext)
 {
     _group = bulletContext.GetGroup(BulletMatcher.AllOf(BulletMatcher.OwnerId).NoneOf(BulletMatcher.FlagDestroy));
     _group.OnEntityAdded   += GroupOnOnEntityAdded;
     _group.OnEntityRemoved += GroupOnOnEntityRemoved;
     _group.OnEntityUpdated += GroupOnOnEntityUpdated;
     _playerContext          = playerContext;
 }
コード例 #2
0
 public BulletCleanUpSystem(BulletContext bulletContext)
 {
     _group = bulletContext.GetGroup(BulletMatcher.AllOf(BulletMatcher.FlagDestroy));
 }
コード例 #3
0
 public UpdateBulletPosition(BulletContext bullets, GlobalsContext globals)
 {
     _bullets = bullets.GetGroup(BulletMatcher.Target);
     _globals = globals;
 }