Exemplo n.º 1
0
        private void OnEntityMoved(object sender, Entity.EntityMovedEventArgs args)
        {
            Entities.Move(args.Entity as Entity, args.Entity.Position);

            if (GameLoop.World.players.ContainsKey(GameLoop.NetworkingManager.myUID))
            {
                GameLoop.UIManager.CenterOnActor(GameLoop.World.players[GameLoop.NetworkingManager.myUID]);
            }
        }
Exemplo n.º 2
0
 private void OnEntityMoved(object sender, Entity.EntityMovedEventArgs args) =>
 MapEntities.Move(args.Entity as Entity, args.Entity.Position);
Exemplo n.º 3
0
 private void OnEntityMoved(object sender, Entity.EntityMovedEventArgs args)
 {
     entities.Move(args.Entity as Construct, args.Entity.Position);
 }