From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- Impostor-dev/src/Impostor.Api/Net/IClientPlayer.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Impostor-dev/src/Impostor.Api/Net/IClientPlayer.cs (limited to 'Impostor-dev/src/Impostor.Api/Net/IClientPlayer.cs') diff --git a/Impostor-dev/src/Impostor.Api/Net/IClientPlayer.cs b/Impostor-dev/src/Impostor.Api/Net/IClientPlayer.cs new file mode 100644 index 0000000..6070210 --- /dev/null +++ b/Impostor-dev/src/Impostor.Api/Net/IClientPlayer.cs @@ -0,0 +1,43 @@ +using System.Threading.Tasks; +using Impostor.Api.Games; +using Impostor.Api.Net.Inner; +using Impostor.Api.Net.Inner.Objects; + +namespace Impostor.Api.Net +{ + /// + /// Represents a player in . + /// + public interface IClientPlayer + { + /// + /// Gets the client that belongs to the player. + /// + IClient Client { get; } + + /// + /// Gets the game where the belongs to. + /// + IGame Game { get; } + + /// + /// Gets or sets the current limbo state of the player. + /// + LimboStates Limbo { get; set; } + + IInnerPlayerControl? Character { get; } + + public bool IsHost { get; } + + /// + /// Checks if the specified is owned by . + /// + /// The . + /// Returns true if owned by . + bool IsOwner(IInnerNetObject netObject); + + ValueTask KickAsync(); + + ValueTask BanAsync(); + } +} -- cgit v1.1-26-g67d0