feat(physics): port retail complete object frame pipeline
Restore the named-retail object update order across local, remote, static, projectile, animation, shadow, teleport, and effect lifetimes. Separate authoritative root commits from spatial rebucketing, preserve per-owner hook/FIFO ordering, and remove update-path allocations with exact lifecycle and residency gates. Add deterministic conformance, adversarial lifetime, GUID-reuse, pending-cell, quaternion, timestamp, and allocation coverage. Release build is warning-free and all 6,446 tests pass with five intentional skips; retail, architecture, and adversarial reviews are clean. Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
parent
31a0889f08
commit
f961d70023
77 changed files with 12513 additions and 1871 deletions
|
|
@ -12,7 +12,9 @@ public static class RemoteTeleportHook
|
|||
{
|
||||
private const WeenieError TeleportCancelContext = (WeenieError)0x3Cu;
|
||||
|
||||
public static void Execute(RemoteTeleportHookActions actions)
|
||||
public static bool Execute(
|
||||
RemoteTeleportHookActions actions,
|
||||
Func<bool>? isCurrent = null)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(actions.CancelMoveTo);
|
||||
ArgumentNullException.ThrowIfNull(actions.UnStick);
|
||||
|
|
@ -21,12 +23,26 @@ public static class RemoteTeleportHook
|
|||
ArgumentNullException.ThrowIfNull(actions.NotifyTeleported);
|
||||
ArgumentNullException.ThrowIfNull(actions.ReportCollisionEnd);
|
||||
|
||||
bool Current() => isCurrent?.Invoke() ?? true;
|
||||
if (!Current())
|
||||
return false;
|
||||
actions.CancelMoveTo(TeleportCancelContext);
|
||||
if (!Current())
|
||||
return false;
|
||||
actions.UnStick();
|
||||
if (!Current())
|
||||
return false;
|
||||
actions.StopInterpolating();
|
||||
if (!Current())
|
||||
return false;
|
||||
actions.UnConstrain();
|
||||
if (!Current())
|
||||
return false;
|
||||
actions.NotifyTeleported();
|
||||
if (!Current())
|
||||
return false;
|
||||
actions.ReportCollisionEnd();
|
||||
return Current();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue