Exemplo n.º 1
0
        public void Run()
        {
            foreach (var i in players)
            {
                var newPosition  = players.Get1(i).newPosition;
                var playerEntity = players.GetEntity(i);

                foreach (var entity in worldService.GetEntitiesOn(newPosition))
                {
                    if (!entity.Has <ItemMarker>())
                    {
                        continue;
                    }

                    entity.Get <ItemTakenEvent>().playerEntity = playerEntity;
                    entity.Get <WorldObjectDestroyedEvent>();
                }
            }
        }