ModernUO/Projects/UOContent/Network/GameServer.cs
Kamron Batman ee1531f272
docs: trim the auth id comments to what is not in the code
Several comments narrated the reasoning that produced the code rather than
what a reader needs. Two also outlived their subject: ConsumeAuthId's summary
and its call site both still claimed the id is spent whether or not it vouches,
which stopped being true when ownership checks moved ahead of the removal.
2026-08-08 09:20:59 -07:00

37 lines
1 KiB
C#

using ModernUO.CodeGeneratedEvents;
namespace Server.Network;
public static partial class GameServer
{
public class GameLoginEventArgs
{
public GameLoginEventArgs(NetState state, string un, string pw, bool preAuthenticated)
{
State = state;
Username = un;
Password = pw;
PreAuthenticated = preAuthenticated;
}
/// <summary>
/// The auth id presented on this game login was issued to this account, from this address,
/// after the account login packet verified the password. Read-only so a subscriber cannot
/// grant itself the skip.
/// </summary>
public bool PreAuthenticated { get; }
public NetState State { get; }
public string Username { get; }
public string Password { get; }
public bool Accepted { get; set; }
public CityInfo[] CityInfo { get; set; }
}
[GeneratedEvent(nameof(GameServerLoginEvent))]
public static partial void GameServerLoginEvent(GameLoginEventArgs e);
}