From 102c46c8e3263da996f1eb2aa9f7e9b235948a95 Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 21 Jun 2026 19:08:07 +0200 Subject: [PATCH] =?UTF-8?q?feat(app):=20D.2b-B=20B-Wire=20=E2=80=94=20wire?= =?UTF-8?q?=20player=20guid=20into=20ObjectTableWiring=20+=20GameEventWiri?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass () => _playerServerGuid to ObjectTableWiring.Wire and GameEventWiring.WireAll so the new Batch 5/6 playerGuid parameters are populated. These were previously left as null (default), meaning PD property upserts and PrivateUpdatePropertyInt delivery would not route to the correct player object. Task 14 of the B-Wire plan. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/AcDream.App/Rendering/GameWindow.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AcDream.App/Rendering/GameWindow.cs b/src/AcDream.App/Rendering/GameWindow.cs index 085f26af..a2832cc3 100644 --- a/src/AcDream.App/Rendering/GameWindow.cs +++ b/src/AcDream.App/Rendering/GameWindow.cs @@ -2468,7 +2468,7 @@ public sealed class GameWindow : IDisposable // D.5.4: ingest CreateObject into the object table (upsert) and wire Delete + // UiEffects live update. Wire BEFORE EntitySpawned += OnLiveEntitySpawned so // the table is populated before the render handler runs. - AcDream.Core.Net.ObjectTableWiring.Wire(session, Objects); + AcDream.Core.Net.ObjectTableWiring.Wire(session, Objects, () => _playerServerGuid); _liveSession.EntitySpawned += OnLiveEntitySpawned; _liveSession.EntityDeleted += OnLiveEntityDeleted; _liveSession.MotionUpdated += OnLiveMotionUpdated; @@ -2566,7 +2566,8 @@ public sealed class GameWindow : IDisposable Console.WriteLine($"player: applied server skills run={_lastSeenRunSkill} jump={_lastSeenJumpSkill}"); } }, - onShortcuts: list => Shortcuts = list); + onShortcuts: list => Shortcuts = list, + playerGuid: () => _playerServerGuid); // Phase I.7: subscribe to CombatState events and emit // retail-faithful "You hit X for Y damage" chat lines into