using XGame.Framework.Map; namespace FL.Battle { public static class EntityExt { public static MoveComponent MoveCom(this IEntityView entity) { return entity.GetComponent(); } public static void MoveTo(this IEntityView entity, MoveArgs args) { var component = entity.GetComponent(); component.MoveTo(args); } } }