Пример #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]);
            }
        }
Пример #2
0
 private void OnEntityMoved(object sender, Entity.EntityMovedEventArgs args) =>
 MapEntities.Move(args.Entity as Entity, args.Entity.Position);
Пример #3
0
 private void OnEntityMoved(object sender, Entity.EntityMovedEventArgs args)
 {
     entities.Move(args.Entity as Construct, args.Entity.Position);
 }