Externalize provider tractor effect
This commit is contained in:
parent
2b700d9b11
commit
3e2f9a2188
3 changed files with 26 additions and 2 deletions
|
|
@ -94,6 +94,7 @@ namespace Aetheria.Editor
|
|||
var root = PrefabUtility.LoadPrefabContents(sourcePath);
|
||||
try
|
||||
{
|
||||
ExtractExternalizedEffects(root, entry.Ref.AssetKey);
|
||||
StripNonPresentationScripts(root);
|
||||
StripPresentationPhysics(root);
|
||||
NormalizePresentationMaterials(root);
|
||||
|
|
@ -111,6 +112,26 @@ namespace Aetheria.Editor
|
|||
VerifyPrefab(savedRoot, outputPath);
|
||||
}
|
||||
|
||||
private static void ExtractExternalizedEffects(GameObject root, string assetKey)
|
||||
{
|
||||
if (!string.Equals(assetKey, "prefab.entity.player", StringComparison.Ordinal) &&
|
||||
!string.Equals(assetKey, "prefab.entity.ship", StringComparison.Ordinal))
|
||||
return;
|
||||
|
||||
var tractorEffects = root.GetComponentsInChildren<MonoBehaviour>(true)
|
||||
.Where(behaviour => behaviour != null &&
|
||||
string.Equals(behaviour.GetType().Name, "TractorBeam", StringComparison.Ordinal))
|
||||
.Select(behaviour => behaviour.gameObject)
|
||||
.Distinct()
|
||||
.ToArray();
|
||||
if (tractorEffects.Length == 0)
|
||||
throw new InvalidOperationException(
|
||||
$"Ship presentation source '{assetKey}' has no embedded tractor effect to externalize.");
|
||||
|
||||
foreach (var effect in tractorEffects)
|
||||
UnityEngine.Object.DestroyImmediate(effect, true);
|
||||
}
|
||||
|
||||
private static void StripNonPresentationScripts(GameObject root)
|
||||
{
|
||||
foreach (var transform in root.GetComponentsInChildren<Transform>(true))
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
|
|||
| Thermal/energy | cell conduction, capacitor/reactor/radiator network, and cockpit thermal exposure | daemon | ship/equipment power, temperature, medical state, risk and death feedback | schematic/post effects | owner-exists; wired; exclusive; projected; generic timing and native asset delivery lowered: catalog hull and installed-item shapes derive cell mass/conductivity/topology; local temperature derives thermal performance, wear potential and online state; all consumers share capacitor-first/reactor-residual transactions; powered radiators pump before reactor settlement; reactor heat then enters the same cell network before conduction/radiation; cockpit-cell temperature drives the fossil nonlinear heatstroke/hypothermia accumulation, linear recovery, severe-risk crossings, and ordinary exactly-once destruction with a typed cause; Eve exposes cockpit, risk, heatstroke source-weight, phasing and death-transition facts; EveUnity generically resolves the original severe pulse plus live/reconnect-safe cause-specific death crossfade; Aetheria deterministically translates the five broken legacy profiles into clean URP profiles, advertises them by semantic role through CultMesh CDN, and binds them in the canonical client through a weight-only native sink; rotated equipment topology, parent/child radiation, schematic composition, legacy SSR/AO/roundness equivalents, canonical render-pipeline activation and rendered parity remain incomplete | multi-consumer ordering, multi-radiator visibility, rotated topology, generic schematic meters, renderer-feature parity, active URP capture and live/reconnect death-fade screenshots |
|
||||
| Weapons | ServerShared behaviors + Unity effects | daemon plus Ymir geometry/kinematics | action capability, weapon state, shot/damage receipts | effects/audio/HUD | instant and constant resource/timing lifecycles are daemon-owned; charged weapons accept one semantic request, spool without requiring a solution, hold at full charge, commit automatically when a solution appears, and perform deterministic once-per-second malfunction hazard checks after the authored safe hold interval with increasing persisted risk; generic Eve `weapon.state` exposes charge hold/risk and feedback exposes readiness, commit, refusal, and malfunction chronology; committed direct damage now enters the shared daemon armor-cell transaction | guided persistent payloads, visibility/wear, remaining impact-distribution parity, and Unity effect reconciliation |
|
||||
| Destruction/drops | hull death, 25% equipment rolls, unconditional cargo drops, 25-unit launch, 30-second pickups | daemon | destruction identity, death/drop events, typed pickups | provider-advertised destruction effect and pickups | owner-exists; wired; exclusive; projected: direct and deployable lethal damage commit one deterministic destruction transaction, clear live references, retain only a non-rendered identity tombstone, and emit exact pickups/events; the reserved client `DestroyEntity` command is rejected; Aetheria advertises its original big explosion as `effect.feedback.entity.destroyed`, lowered generically by EveUnity | equipment-destruction-before-hull parity and multiplayer reconnect chronology |
|
||||
| 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; shield contact collects exactly once when capacity permits or applies the fossil 25-unit rejection kick; 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; `beam.presentation` attaches the stripped provider effect to the SoA ship; the generic Unity witness also advances fixed daemon steps and observes Ymir contact remove the starter salvage | improve provider beam visibility, rejected-capacity feedback, and explicit cargo-delta witness fact |
|
||||
| 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; shield contact collects exactly once when capacity permits or applies the fossil 25-unit rejection kick; 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; the warm released witness captures full power and visible beam particles; the generic Unity witness also advances fixed daemon steps and observes Ymir contact remove the starter salvage | polish provider beam shape/attachment, rejected-capacity feedback, and explicit cargo-delta witness fact |
|
||||
| Dock/undock | wormhole-first interact; first eligible bay; component prerequisites | daemon + Ymir placement | dock commands/context | camera/UI transition | live generic Unity witness now proves advertised dock/undock actions, daemon bay assignment, dock-parent inclusion in the SoA view, sharing of the dock parent's equipment-derived contact picture, generic camera retargeting, controlled-subject hiding, movement suppression, and restoration on undock; the starter station and local raider form a deterministic Terminus departure proof | restore fossil component-prerequisite rejection reasons, exact undock placement, wormhole priority, reconnect, and docked inventory/trade surfaces |
|
||||
| Inventory/equipment | inventory panels + ServerShared | daemon | inventory/equipment surfaces | generic UI | owner-exists; wired/projected in fragments; not proven | all transfer directions and rejection |
|
||||
| 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 |
|
||||
|
|
|
|||
|
|
@ -118,7 +118,10 @@ textures and materials. `beam.presentation` carries source identity, provider
|
|||
asset role, daemon power, activation threshold, authored radius/distance,
|
||||
render channel, and an advertised activation action. EveUnity attaches and
|
||||
modulates that prefab; it does not raycast, apply force, infer contact, or move
|
||||
cargo. Ymir contact facts remain the only collection gate.
|
||||
cargo. The provider build removes the fossil's embedded tractor object from
|
||||
ship presentation prefabs, so the standalone `beam.presentation` effect is the
|
||||
only live writer of tractor visuals. Ymir contact facts remain the only
|
||||
collection gate.
|
||||
|
||||
Projectile simulation and projectile presentation are separate. The daemon and
|
||||
Ymir own identity/pose/contact; presentation owns visual asset, trail, impact,
|
||||
|
|
|
|||
Loading…
Reference in a new issue