using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VRage.Game.ModAPI; namespace Torch.API.Managers { /// /// API for multiplayer functions that exist on servers and lobbies /// public interface IMultiplayerManagerServer : IMultiplayerManagerBase { /// /// Kicks the player from the game. /// void KickPlayer(ulong steamId); /// /// Bans or unbans a player from the game. /// void BanPlayer(ulong steamId, bool banned = true); /// /// Promotes user if possible. /// /// void PromoteUser(ulong steamId); /// /// Demotes user if possible. /// /// void DemoteUser(ulong steamId); /// /// Gets a user's promote level. /// /// /// MyPromoteLevel GetUserPromoteLevel(ulong steamId); /// /// List of the banned SteamID's /// IReadOnlyList BannedPlayers { get; } /// /// Checks if the player with the given SteamID is banned. /// /// The SteamID of the player. /// True if the player is banned; otherwise false. bool IsBanned(ulong steamId); /// /// Raised when a player is kicked. Passes with SteamID of kicked player. /// event Action PlayerKicked; /// /// Raised when a player is banned or unbanned. Passes SteamID of player, and true if banned, false if unbanned. /// event Action PlayerBanned; /// /// Raised when a player is promoted or demoted. Passes SteamID of player, and new promote level. /// event Action PlayerPromoted; } }