--- /dev/null
+namespace Impostor.Api.Net.Inner.Objects.Components
+{
+ public interface IInnerCustomNetworkTransform : IInnerNetObject
+ {
+ }
+}
--- /dev/null
+namespace Impostor.Api.Net.Inner.Objects.Components
+{
+ public interface IInnerPlayerPhysics : IInnerNetObject
+ {
+ }
+}
{
public interface IInnerGameData : IInnerNetObject
{
-
}
-}
\ No newline at end of file
+}
{
public interface IInnerLobbyBehaviour : IInnerNetObject
{
-
}
-}
\ No newline at end of file
+}
{
public interface IInnerMeetingHud
{
-
}
-}
\ No newline at end of file
+}
using System.Threading.Tasks;
using Impostor.Api.Innersloth.Customization;
+using Impostor.Api.Net.Inner.Objects.Components;
namespace Impostor.Api.Net.Inner.Objects
{
public interface IInnerPlayerControl : IInnerNetObject
{
+ /// <summary>
+ /// Gets the <see cref="IInnerPlayerPhysics"/> of the <see cref="IInnerPlayerControl"/>.
+ /// Contains vent logic.
+ /// </summary>
+ IInnerPlayerPhysics Physics { get; }
+
+ /// <summary>
+ /// Gets the <see cref="IInnerCustomNetworkTransform"/> of the <see cref="IInnerPlayerControl"/>.
+ /// Contains position data about the player.
+ /// </summary>
+ IInnerCustomNetworkTransform NetworkTransform { get; }
+
/// <summary>
/// Gets the <see cref="IInnerPlayerInfo"/> of the <see cref="IInnerPlayerControl"/>.
/// Contains metadata about the player.
--- /dev/null
+using Impostor.Api.Net.Inner.Objects.Components;
+
+namespace Impostor.Server.Net.Inner.Objects.Components
+{
+ internal partial class InnerCustomNetworkTransform : IInnerCustomNetworkTransform
+ {
+ }
+}
namespace Impostor.Server.Net.Inner.Objects.Components
{
- internal class InnerCustomNetworkTransform : InnerNetObject
+ internal partial class InnerCustomNetworkTransform : InnerNetObject
{
private static readonly FloatRange XRange = new FloatRange(-40f, 40f);
private static readonly FloatRange YRange = new FloatRange(-40f, 40f);
_targetSyncVelocity = Vector2.Zero;
}
}
-}
\ No newline at end of file
+}
--- /dev/null
+using Impostor.Api.Net.Inner.Objects.Components;
+
+namespace Impostor.Server.Net.Inner.Objects.Components
+{
+ internal partial class InnerPlayerPhysics : IInnerPlayerPhysics
+ {
+ }
+}
namespace Impostor.Server.Net.Inner.Objects.Components
{
- internal class InnerPlayerPhysics : InnerNetObject
+ internal partial class InnerPlayerPhysics : InnerNetObject
{
private readonly ILogger<InnerPlayerPhysics> _logger;
private readonly InnerPlayerControl _playerControl;
throw new NotImplementedException();
}
}
-}
\ No newline at end of file
+}
using Impostor.Api.Innersloth.Customization;
using Impostor.Api.Net;
using Impostor.Api.Net.Inner.Objects;
+using Impostor.Api.Net.Inner.Objects.Components;
namespace Impostor.Server.Net.Inner.Objects
{
internal partial class InnerPlayerControl : IInnerPlayerControl
{
+ IInnerPlayerPhysics IInnerPlayerControl.Physics => Physics;
+
+ IInnerCustomNetworkTransform IInnerPlayerControl.NetworkTransform => NetworkTransform;
+
IInnerPlayerInfo IInnerPlayerControl.PlayerInfo => PlayerInfo;
public async ValueTask SetNameAsync(string name)