fix(engine): findOne(x).onTouch + findOne �� ������ + ������� Instance-proxy #11

Merged
min merged 1 commits from fix/pointer-ontouch-findone into main 2026-05-31 06:53:49 +00:00
Owner

������������ ����� �������-��������� �� studio. find/findOne/all ��������� � Instance-proxy (�������), ��������� onTouch/onUntouch/onClick, ��������� snapshot � init. ��������� �� player.rublox.pro/333.

?? Generated with Claude Code

������������ ����� �������-��������� �� studio. find/findOne/all ��������� � Instance-proxy (�������), ��������� onTouch/onUntouch/onClick, ��������� snapshot � init. ��������� �� player.rublox.pro/333. ?? Generated with [Claude Code](https://claude.com/claude-code)
min added 1 commit 2026-05-31 05:29:06 +00:00
fix(engine): findOne(x).onTouch + findOne на старте + паритет Instance-proxy
All checks were successful
CI / Lint (pull_request) Successful in 55s
CI / Build (pull_request) Successful in 1m42s
CI / Secret scan (pull_request) Successful in 2m30s
CI / PR size check (pull_request) Successful in 6s
CI / Deploy to S1 + S2 (pull_request) Has been skipped
256f147568
Портирование фикса из studio (фича-парность движков). Баг: стрелка-указатель
game.fx.pointer не переключалась на следующую цель.

- find/findOne/all раньше возвращали голую строку-ref → .onTouch невозможен.
  Приведены к студийному Instance-proxy (_getOrCreateInstance, coerces в строку
  через Symbol.toPrimitive → обратно совместимо со старым кодом).
- Instance-proxy: + onTouch/onUntouch/onClick → inst.watchTouch{ref}.
  Worker: _instTouchHandlers + маршрут instTouch/instUntouch/instClick;
  _detectSnapshotDeltas для changed/destroying-событий.
- GameRuntime: inst.watchTouch/watchClick → _watchedTouchRefs; routeInstEvent.
- BabylonScene._detectTouchEvents: блок watched-объектов + _refToTarget;
  _touchState.clear() в enterPlayMode.
- Первичный snapshot сцены в init (setInitialScene) → findOne на старте.

Проверено на проде player.rublox.pro/333: стрелка переключается
red-cube→blue-sphere→gold-chest, на финале удаляется.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
min merged commit cd31078e6d into main 2026-05-31 06:53:49 +00:00
min deleted branch fix/pointer-ontouch-findone 2026-05-31 06:53:49 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rublox/player#11
No description provided.