summaryrefslogtreecommitdiff
path: root/Impostor-dev/src/Impostor.Api/Net/Inner/Objects/Components/IInnerCustomNetworkTransform.cs
blob: 6d867e7936d75d370feb847f88c74c30158b00b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.Numerics;
using System.Threading.Tasks;

namespace Impostor.Api.Net.Inner.Objects.Components
{
    public interface IInnerCustomNetworkTransform : IInnerNetObject
    {
        /// <summary>
        ///     Snaps the current to the given position <see cref="IInnerPlayerControl"/>.
        /// </summary>
        /// <param name="position">The target position.</param>
        /// <returns>Task that must be awaited.</returns>
        ValueTask SnapToAsync(Vector2 position);
    }
}