Make docked refit atomic
This commit is contained in:
parent
93d4d44ffc
commit
d01a784d8f
15 changed files with 1088 additions and 127 deletions
|
|
@ -2889,6 +2889,36 @@ Docking ownership follows the fossil's entity and `ActionGameManager` path:
|
|||
contact collection; the live witness remains responsible for camera/effect
|
||||
timing.
|
||||
|
||||
Docked refit ownership follows the fossil's `Entity.ItemFits`, `TryEquip`, and
|
||||
`TryUnequip` transaction:
|
||||
|
||||
- Owner: one daemon refit transaction owns source selection, destination fit,
|
||||
category routing, and the atomic equipment/cargo mutation.
|
||||
- Inputs: authoritative docking parentage, typed hull interior and hardpoint
|
||||
geometry, typed item footprint/category/hardpoint type, current ordinary
|
||||
equipment, cargo bays, docking bays and their contents, the exact source item
|
||||
instance, and the requested destination cell.
|
||||
- Outputs: either one committed move preserving the item instance fields and
|
||||
updating the category-owned collection, or one exact rejection reason that
|
||||
reaches the command fact and Eve receipt.
|
||||
- Derived state: drag previews, valid-cell highlights, filters, sounds, and
|
||||
animations are presentation. They may predict the daemon decision but cannot
|
||||
commit it.
|
||||
- Forbidden writers: Unity occupancy checks, renderer inventory graphs,
|
||||
client-supplied acceptance/rejection reasons, and remove-first mutation paths
|
||||
cannot decide or repair a refit.
|
||||
- Shared paths: cargo-to-equipment equip, equipment reposition, equipment-to-
|
||||
cargo store, reconnect, and loadout restore use the same typed collection and
|
||||
placement semantics where their contracts overlap.
|
||||
- Cut line: generated cargo and docking bays no longer masquerade as ordinary
|
||||
equipment; unconditional destination appends and source removal before
|
||||
destination validation are removed from refit operations.
|
||||
- Verification layer: daemon smokes compare source and destination state before
|
||||
and after rejection, cover hardpoint type/shape/rotation, interior occupancy,
|
||||
deployed-state rejection, nonempty bay rejection, category routing, exact
|
||||
receipts, and aligned typed bay collections. Reconnect remains a live proof
|
||||
obligation.
|
||||
|
||||
Ymir restart ownership is deliberately private and asymmetric:
|
||||
|
||||
- Owner: `AetheriaYmirPersistenceCoordinator` owns reconstruction durability;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
|
|||
| Tractor/scoop | analog tractor and physical timed pickups | daemon + Ymir | tractor power, pickup body and receipt | pickup world entity plus beam/interaction feedback | fossil 2/s power ramp and authored forward radius/traction/distance feed pickup bodies into the shared Ymir world; ship contact collects exactly once when capacity permits or applies the fossil 25-unit rejection kick; Aetheria maps pickup collision only against ship bodies, so stations and other world bodies cannot become cargo writers; 30s daemon lifetime; instant cargo teleport deleted; current-zone pickups occupy ordinary rows in the shared Eve entity SoA body with stable logical identity and provider-owned assets; `pilot.scoop` advertises a generic `button-hold.v1` scalar contract, the released client sends `1` on press and `0` on release through `SetTractorPower`, both receipts reconcile, and daemon power returns exactly to zero; the provider build removes the fossil's embedded tractor object from ship prefabs, and `beam.presentation` attaches the sole standalone effect to the SoA ship; released warm witnesses prove successful exactly-once Ymir collection and controlled-player `cargo-capacity` rejection with unchanged cargo | polish provider beam shape/attachment |
|
||||
| Dock/undock | wormhole-first interact; first eligible bay; component prerequisites | daemon + Ymir placement | dock commands/context | camera/UI transition | daemon docking now preserves the fossil transaction: stable zone order selects the first entity with a real empty bay inside the fixed 25-unit XZ center radius; undock checks installed Cockpit, Thruster-or-AetherDrive, Reactor, then empty bay cargo in source order; rejection reasons survive committed command facts into generic Eve receipts; success removes parentage without moving, stopping, or rotating the ship. Ymir world entities retain gravity/query bodies but do not invent ship/station rigidbody collision response that would make the 25-unit rule unreachable; ship/pickup Begin contacts remain enabled. The live generic Unity witness also proves advertised actions, bay assignment, dock-parent SoA inclusion and sensor sharing, camera retargeting, controlled-subject hiding, movement suppression, and restoration on undock | reconnect, docked inventory/trade surfaces, and authored dock-camera blend/effect chronology |
|
||||
| Wormhole travel | `ActionGameManager.EnterWormhole` plus `Ship` enter/exit state | daemon fixed-step transition plus Ymir exclusion | current-entity transition state and feedback chronology | provider-selected generic transition lowering | command acceptance no longer moves an entity immediately; player interact, explicit travel, and agent routing derive the same canonical adjacent-zone wormhole and proximity gate, then persist four-second `entering`, authoritative transfer, four-second `exiting`, and one-frame `completed` phases. The daemon owns smootherstep XZ motion, the fossil 1000-unit visual-depth lever, deterministic 20-unit exit direction, 50-unit exit radius, target-adjacency discovery, and exactly-once start/transfer/completion events. Flight and every world-physics implementation receive no transitioning body; Ymir resumes on the tick after completion. Smoke serializes and rehydrates mid-entry and proves agents traverse multi-edge routes through the same command boundary | generic provider transition effect/camera lowering and live multi-zone pilot witness |
|
||||
| Inventory/equipment | inventory panels + ServerShared | daemon | inventory/equipment surfaces | generic UI | owner-exists; wired/projected in fragments; not proven | all transfer directions and rejection |
|
||||
| Inventory/equipment | `Entity.ItemFits`, `TryEquip`, `TryUnequip`, inventory panels + ServerShared | daemon atomic refit transaction | typed inventory/equipment state, commands, exact receipts | generic UI | generated cargo and docking bays now occupy their typed collections instead of masquerading as ordinary equipment; docked equip/reposition/store validates the complete destination on cloned state before committing either side, uses authored hull interior and hardpoint geometry, forces hardpoint rotation, rejects occupied cells and deployed ships, preserves exact item instance fields and weapon-group membership, routes bay categories with aligned content/assignment arrays, and refuses to unequip nonempty/occupied bays; exact reasons reach generic Eve receipts | cargo-to-cargo spatial placement, live generic refit controls, reconnect after accepted and rejected moves, and full fossil inventory chronology |
|
||||
| Trade | trade UI/economy | daemon | stock, quote, purchase commands | generic UI | daemon derives station, stock row, catalog item, current price, quantity, credits, target capacity, and hull-vs-cargo result; Eve advertises only currently available stock actions; generic Unity live witness receives an authoritative purchase receipt while paused | sell flow, quote expiry, contested stock, and full trade surface parity |
|
||||
| Action bar/input | input shell and rebinding UI | daemon advertises actions; client owns bindings | input capability and action descriptors | universal binding UI | contracts wired; cargo actions are catalog-filtered to consumables the current actor can actually activate, including suppression of active non-stackable items | dynamic equipment behavior validity and runtime action-bar quantity/fill proof |
|
||||
| Pilot camera | ARPG follow/dock cameras | Eve view semantics + runtime | camera rig and semantic view id | EveUnity camera rig | daemon dock state selects distinct contracts instead of collapsing both fossil cameras: undocked flight advertises the entity-forward `Third Person Rig` framing (distance 30, screen 0.64/0.19, FOV 60, lens 1-4096) and the shared `aim.presentation` convergence point as its look-at; Aetheria translates the fossil Cinemachine top-origin screen Y of `0.81` to Eve's bottom-origin viewport Y of `0.19`; EveUnity solves native pose while preserving both optical aim and advertised entity framing, without provider types; the retained dock projection remains separate | reproduce the dock camera's separate follow/look-at subjects, blend timeline, noise, and reconnect state |
|
||||
|
|
|
|||
Loading…
Reference in a new issue