mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Some stuff for auth * Holy crap auth works * Enable encryption even if no auth token is provided. It's still possible that the public key was retrieved over HTTPS via the status API, in which case it will be secure. * Fix integration test compile. * Secure CVar API. * Literally rewrite the auth protocol to be minecraft's. * Better exception tolerance in server handshake. * Auth works from launcher. * Fix some usages of UserID instead of UserName * Fix auth.server CVar * Kick existing connection if same account connects twice. * Username assignment, guest session distinguishing. * Necessary work to make bans work. * Expose LoginType to OnConnecting. * Fixing tests and warnings.
28 lines
710 B
C#
28 lines
710 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Robust.Server.Interfaces.Player
|
|
{
|
|
/// <summary>
|
|
/// Stores player-specific data that is not lost upon reconnect.
|
|
/// </summary>
|
|
public interface IPlayerData
|
|
{
|
|
/// <summary>
|
|
/// The session ID of the player owning this data.
|
|
/// </summary>
|
|
NetUserId UserId { get; }
|
|
|
|
/// <summary>
|
|
/// Custom field that content can assign anything to.
|
|
/// Go wild.
|
|
/// </summary>
|
|
object? ContentDataUncast { get; set; }
|
|
}
|
|
}
|