refactor(net): converge live session state reset
This commit is contained in:
parent
78a9223b65
commit
4f31a5085f
35 changed files with 1460 additions and 83 deletions
|
|
@ -116,6 +116,17 @@ public sealed class ChatVM
|
|||
/// </summary>
|
||||
public void Clear() => _log.Clear();
|
||||
|
||||
/// <summary>
|
||||
/// Forget per-session reply/retell destinations while retaining the shared
|
||||
/// transcript. Old character names must not become command targets after a
|
||||
/// reconnect.
|
||||
/// </summary>
|
||||
public void ResetSessionTargets()
|
||||
{
|
||||
LastIncomingTellSender = null;
|
||||
LastOutgoingTellTarget = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Print the current framerate into chat. Used by
|
||||
/// <c>/framerate</c> / <c>@framerate</c>. Falls back to a
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ public sealed class VitalsVM
|
|||
|
||||
/// <summary>
|
||||
/// Push the authoritative local-player GUID from <c>WorldSession</c>.
|
||||
/// One-way setter — only <c>GameWindow</c> should call it, exactly once
|
||||
/// per live session.
|
||||
/// The host assigns it after character selection and resets it to zero at
|
||||
/// session teardown.
|
||||
/// </summary>
|
||||
public void SetLocalPlayerGuid(uint guid) => _localPlayerGuid = guid;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue