Publish native action bar control levers
This commit is contained in:
parent
adc72e504c
commit
14fa364336
7 changed files with 97 additions and 31 deletions
|
|
@ -527,6 +527,7 @@ internal sealed class AetheriaDaemonYmirSmokeChecks
|
|||
new AetheriaRuntimeBehaviorField(3, BoolValue(false))
|
||||
]));
|
||||
controls.Name = "Climate Control";
|
||||
controls.ActionBarIcon = "Assets/Resources/Sprites/Icons/Stroked/Power.png";
|
||||
var catalog = new AetheriaRuntimeCatalogSnapshot([controls], [], []);
|
||||
var entity = Entity(0, 0, "player");
|
||||
entity.Equipment = [new AetheriaRuntimeLoadoutItemSlotCommit
|
||||
|
|
@ -560,8 +561,18 @@ internal sealed class AetheriaDaemonYmirSmokeChecks
|
|||
"trigger controls must route their input value into the typed active field");
|
||||
RequireEqual("scalar.v1", thermostatAction.InputValue?.Model ?? "",
|
||||
"adjustable thermostats must advertise a runtime-neutral scalar lever");
|
||||
RequireEqual("300", thermostatAction.Payload["currentValue"],
|
||||
"thermostat controls must publish the daemon-owned current target");
|
||||
RequireNear(300, thermostatAction.InputValue?.CurrentValue ?? double.NaN, 0.000001,
|
||||
"thermostat controls must publish the daemon-owned current target as typed scalar state");
|
||||
RequireEqual("kelvin", thermostatAction.InputValue?.Unit ?? "",
|
||||
"thermostat controls must publish the scalar unit without hiding it in command payload strings");
|
||||
Require(actions.All(value => value.ActionBar && value.IconRef == "item.behavior-controls.icon"),
|
||||
"interactive equipment behaviors must expose provider-icon action-bar suggestions");
|
||||
var portableThermostat = capability.ToEveDocument().Actions
|
||||
.Single(value => value.ActionId == thermostatAction.ActionId);
|
||||
RequireNear(300, portableThermostat.InputValue?.CurrentValue ?? double.NaN, 0.000001,
|
||||
"the portable Eve document must retain typed scalar current state");
|
||||
Require(portableThermostat.ActionBar && portableThermostat.IconRef == "item.behavior-controls.icon",
|
||||
"the portable Eve action must retain the provider action-bar suggestion and asset key");
|
||||
|
||||
var switchRequest = new EveSurfaceCommandRequest(
|
||||
capability.ProviderId,
|
||||
|
|
@ -625,6 +636,7 @@ internal sealed class AetheriaDaemonYmirSmokeChecks
|
|||
repairGel.Category = AetheriaRuntimeItemCategories.Consumable;
|
||||
repairGel.Duration = 4;
|
||||
repairGel.Stackable = false;
|
||||
repairGel.ActionBarIcon = "Assets/Resources/Sprites/Icons/Stroked/Repair.png";
|
||||
var ore = CatalogItem("ore");
|
||||
ore.Category = AetheriaRuntimeItemCategories.SimpleCommodity;
|
||||
var catalog = new AetheriaRuntimeCatalogSnapshot([repairGel, ore], [], []);
|
||||
|
|
@ -664,6 +676,8 @@ internal sealed class AetheriaDaemonYmirSmokeChecks
|
|||
"generic lowerers must receive the fossil action-bar fill semantics explicitly");
|
||||
RequireEqual("available", action.Availability,
|
||||
"a valid consumable in cargo must advertise current command availability");
|
||||
Require(action.ActionBar && action.IconRef == "item.repair-gel.icon",
|
||||
"consumables must suggest an action-bar lever using their provider-owned catalog icon");
|
||||
Require(!capability.Actions.Any(value => value.Category == "consumable" && value.Payload["itemKey"] == "ore"),
|
||||
"non-consumable cargo must not become an action-bar command");
|
||||
|
||||
|
|
@ -713,6 +727,8 @@ internal sealed class AetheriaDaemonYmirSmokeChecks
|
|||
"generic Eve clients must know that weapon firing is a held control");
|
||||
RequireEqual("active", action.InputValue?.PayloadKey ?? "",
|
||||
"weapon press/release values must route into the typed active field");
|
||||
Require(action.ActionBar,
|
||||
"weapon groups must remain suggested action-bar levers without making the client own firing");
|
||||
|
||||
AetheriaRuntimeDaemonCommandDocument Translate(string active)
|
||||
{
|
||||
|
|
@ -810,6 +826,10 @@ internal sealed class AetheriaDaemonYmirSmokeChecks
|
|||
"the generic default profile must preserve the fossil next-target key");
|
||||
RequireEqual("keyboard.r", Control("pilot.target-reticle"),
|
||||
"the generic default profile must preserve the fossil reticle-target key");
|
||||
Require(keyboard.Bindings.Where(value => value.ActionId == "pilot.interact" ||
|
||||
value.ActionId.StartsWith("pilot.target-", StringComparison.Ordinal))
|
||||
.All(value => !value.ActionBar),
|
||||
"ordinary fossil shortcuts must not masquerade as action-bar slot suggestions");
|
||||
var reticleAction = capability.ToEveDocument().Actions.Single(value => value.ActionId == "pilot.target-reticle");
|
||||
RequireEqual("view-direction.v1", reticleAction.InputValue?.Model ?? "",
|
||||
"reticle targeting must advertise the generic active-view direction model");
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
"com.unity.render-pipelines.universal": "17.4.0",
|
||||
"org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.15",
|
||||
"org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3",
|
||||
"org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.3",
|
||||
"org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.64"
|
||||
"org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4",
|
||||
"org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.65"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,27 +135,27 @@
|
|||
"hash": "c5a4a75c1b727499b16c2dae1895f29e2a9f72f0"
|
||||
},
|
||||
"org.gamecult.eve.surface": {
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.3",
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4",
|
||||
"depth": 0,
|
||||
"source": "git",
|
||||
"dependencies": {
|
||||
"org.gamecult.cultlib": "1.0.8"
|
||||
},
|
||||
"hash": "7647d37445cf39447cb607111e215f627db56c80"
|
||||
"hash": "e08fa08335f99e9edddeb706912eecfad07cb281"
|
||||
},
|
||||
"org.gamecult.eve.unity-scene": {
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.64",
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.65",
|
||||
"depth": 0,
|
||||
"source": "git",
|
||||
"dependencies": {
|
||||
"org.gamecult.cultlib": "1.0.15",
|
||||
"org.gamecult.eve.plugin-fields": "0.2.3",
|
||||
"org.gamecult.eve.surface": "0.2.3",
|
||||
"org.gamecult.eve.surface": "0.2.4",
|
||||
"com.unity.mathematics": "1.3.2",
|
||||
"com.unity.render-pipelines.universal": "17.4.0",
|
||||
"com.unity.modules.particlesystem": "1.0.0"
|
||||
},
|
||||
"hash": "7647d37445cf39447cb607111e215f627db56c80"
|
||||
"hash": "e08fa08335f99e9edddeb706912eecfad07cb281"
|
||||
},
|
||||
"com.unity.modules.assetbundle": {
|
||||
"version": "1.0.0",
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ namespace GameCult.Aetheria.State.Verse
|
|||
[Key(6)] public string SourceRef { get; set; } = "";
|
||||
[Key(7)] public Dictionary<string, string> Payload { get; set; } = new Dictionary<string, string>(StringComparer.Ordinal);
|
||||
[Key(8)] public AetheriaRuntimeInputValueDocument? InputValue { get; set; }
|
||||
[Key(9)] public string IconRef { get; set; } = "";
|
||||
[Key(10)] public bool ActionBar { get; set; }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
@ -45,6 +47,11 @@ namespace GameCult.Aetheria.State.Verse
|
|||
[Key(0)] public string Model { get; set; } = "";
|
||||
[Key(1)] public string PayloadKey { get; set; } = "";
|
||||
[Key(2)] public string[] PayloadKeys { get; set; } = Array.Empty<string>();
|
||||
[Key(3)] public double? CurrentValue { get; set; }
|
||||
[Key(4)] public double? MinimumValue { get; set; }
|
||||
[Key(5)] public double? MaximumValue { get; set; }
|
||||
[Key(6)] public double? StepValue { get; set; }
|
||||
[Key(7)] public string Unit { get; set; } = "";
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
@ -92,7 +99,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
}
|
||||
if (entity != null)
|
||||
{
|
||||
actions.AddRange((entity.WeaponGroups ?? Array.Empty<IReadOnlyList<int>>()).Select((_, index) => WeaponGroupAction(run, entity, index)));
|
||||
actions.AddRange((entity.WeaponGroups ?? Array.Empty<IReadOnlyList<int>>()).Select((_, index) => WeaponGroupAction(run, entity, index, catalog)));
|
||||
actions.AddRange(EquipmentBehaviorActions(run, entity, catalog));
|
||||
actions.AddRange(ConsumableActions(run, entity, catalog));
|
||||
actions.AddRange(TradeActions(run, entity, catalog));
|
||||
|
|
@ -153,6 +160,8 @@ namespace GameCult.Aetheria.State.Verse
|
|||
action.Availability = AetheriaRuntimeConsumableSimulation.CanActivate(entity, catalog, itemKey)
|
||||
? "available"
|
||||
: "unavailable";
|
||||
action.ActionBar = true;
|
||||
action.IconRef = ActionBarIconRef(item);
|
||||
yield return action;
|
||||
}
|
||||
}
|
||||
|
|
@ -202,6 +211,8 @@ namespace GameCult.Aetheria.State.Verse
|
|||
("active", "0"),
|
||||
("currentValue", state.SwitchActivated ? "1" : "0"));
|
||||
action.Availability = available ? "available" : "unavailable";
|
||||
action.ActionBar = true;
|
||||
action.IconRef = ActionBarIconRef(item);
|
||||
action.InputValue = new AetheriaRuntimeInputValueDocument
|
||||
{
|
||||
Model = "button-hold.v1",
|
||||
|
|
@ -223,14 +234,16 @@ namespace GameCult.Aetheria.State.Verse
|
|||
("targetEntityKey", run.CurrentEntityKey),
|
||||
("equipmentIndex", equipmentIndex.ToString()),
|
||||
("behaviorIndex", behaviorIndex.ToString()),
|
||||
("scalarValue", state.ThermotoggleTargetTemperature.ToString("R", System.Globalization.CultureInfo.InvariantCulture)),
|
||||
("currentValue", state.ThermotoggleTargetTemperature.ToString("R", System.Globalization.CultureInfo.InvariantCulture)),
|
||||
("unit", "kelvin"));
|
||||
("scalarValue", state.ThermotoggleTargetTemperature.ToString("R", System.Globalization.CultureInfo.InvariantCulture)));
|
||||
thermostat.Availability = available ? "available" : "unavailable";
|
||||
thermostat.ActionBar = true;
|
||||
thermostat.IconRef = ActionBarIconRef(item);
|
||||
thermostat.InputValue = new AetheriaRuntimeInputValueDocument
|
||||
{
|
||||
Model = "scalar.v1",
|
||||
PayloadKey = "scalarValue"
|
||||
PayloadKey = "scalarValue",
|
||||
CurrentValue = state.ThermotoggleTargetTemperature,
|
||||
Unit = "kelvin"
|
||||
};
|
||||
yield return thermostat;
|
||||
}
|
||||
|
|
@ -240,7 +253,8 @@ namespace GameCult.Aetheria.State.Verse
|
|||
private static AetheriaRuntimeInputActionDocument WeaponGroupAction(
|
||||
AetheriaRuntimeRunCheckpointCommit run,
|
||||
AetheriaRuntimeEntitySnapshotCommit entity,
|
||||
int weaponGroup)
|
||||
int weaponGroup,
|
||||
AetheriaRuntimeCatalogSnapshot? catalog)
|
||||
{
|
||||
var activeGroups = entity.ActiveWeaponGroups ?? Array.Empty<bool>();
|
||||
var active = weaponGroup < activeGroups.Count && activeGroups[weaponGroup];
|
||||
|
|
@ -258,9 +272,20 @@ namespace GameCult.Aetheria.State.Verse
|
|||
Model = "button-hold.v1",
|
||||
PayloadKey = "active"
|
||||
};
|
||||
action.ActionBar = true;
|
||||
var equipmentIndex = (entity.WeaponGroups ?? Array.Empty<IReadOnlyList<int>>())
|
||||
.ElementAtOrDefault(weaponGroup)?.Where(index => index >= 0).DefaultIfEmpty(-1).First() ?? -1;
|
||||
var equipment = entity.Equipment ?? Array.Empty<AetheriaRuntimeLoadoutItemSlotCommit>();
|
||||
if (equipmentIndex >= 0 && equipmentIndex < equipment.Count)
|
||||
action.IconRef = ActionBarIconRef(catalog?.FindItem(equipment[equipmentIndex]?.Item?.ItemKey ?? ""));
|
||||
return action;
|
||||
}
|
||||
|
||||
private static string ActionBarIconRef(AetheriaRuntimeCatalogItem? item) =>
|
||||
item != null && !string.IsNullOrWhiteSpace(item.ActionBarIcon)
|
||||
? $"item.{item.ItemKey}.icon"
|
||||
: "";
|
||||
|
||||
private static bool ReadBool(AetheriaRuntimeBehaviorPayload payload, int key) =>
|
||||
(payload.Fields ?? Array.Empty<AetheriaRuntimeBehaviorField>())
|
||||
.FirstOrDefault(field => field != null && field.Key == key)?.Value?.BoolValue ?? false;
|
||||
|
|
@ -441,7 +466,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
var bindings = new List<AetheriaRuntimeInputBindingDocument>();
|
||||
var fire = actions.FirstOrDefault(action => string.Equals(action.Category, "weapon-group", StringComparison.Ordinal));
|
||||
if (fire != null)
|
||||
bindings.Add(Binding("fire.default", fire.ActionId, "direct", keyboard ? keyboardFireControl : gamepadFireControl));
|
||||
bindings.Add(ActionBarBinding("fire.default", fire.ActionId, "direct", keyboard ? keyboardFireControl : gamepadFireControl));
|
||||
bindings.Add(keyboard
|
||||
? Binding("scoop.shift", "pilot.scoop", "direct", "keyboard.leftShift")
|
||||
: Binding("scoop.sequence", "pilot.scoop", "sequence", "gamepad.dpad.down", "gamepad.dpad.right"));
|
||||
|
|
@ -476,6 +501,8 @@ namespace GameCult.Aetheria.State.Verse
|
|||
Category = action.Category,
|
||||
Availability = action.Availability,
|
||||
SourceRef = action.SourceRef,
|
||||
IconRef = action.IconRef,
|
||||
ActionBar = action.ActionBar,
|
||||
Payload = new Dictionary<string, string>(action.Payload, StringComparer.Ordinal),
|
||||
InputValue = action.InputValue == null
|
||||
? null
|
||||
|
|
@ -483,7 +510,12 @@ namespace GameCult.Aetheria.State.Verse
|
|||
{
|
||||
Model = action.InputValue.Model,
|
||||
PayloadKey = action.InputValue.PayloadKey,
|
||||
PayloadKeys = action.InputValue.PayloadKeys ?? Array.Empty<string>()
|
||||
PayloadKeys = action.InputValue.PayloadKeys ?? Array.Empty<string>(),
|
||||
CurrentValue = action.InputValue.CurrentValue,
|
||||
MinimumValue = action.InputValue.MinimumValue,
|
||||
MaximumValue = action.InputValue.MaximumValue,
|
||||
StepValue = action.InputValue.StepValue,
|
||||
Unit = action.InputValue.Unit
|
||||
}
|
||||
}).ToArray(),
|
||||
DefaultProfiles = DefaultProfiles.Select(profile => new EveInputProfileDocument
|
||||
|
|
@ -507,6 +539,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
};
|
||||
|
||||
private static AetheriaRuntimeInputProfileDocument Profile(string id, string device, params AetheriaRuntimeInputBindingDocument[] bindings) => new AetheriaRuntimeInputProfileDocument { ProfileId = id, DeviceClass = device, Bindings = bindings };
|
||||
private static AetheriaRuntimeInputBindingDocument Binding(string id, string action, string kind, params string[] controls) => new AetheriaRuntimeInputBindingDocument { BindingId = id, ActionId = action, Gesture = new AetheriaRuntimeInputGestureDocument { Kind = kind, Controls = controls }, ActionBar = true };
|
||||
private static AetheriaRuntimeInputBindingDocument Binding(string id, string action, string kind, params string[] controls) => new AetheriaRuntimeInputBindingDocument { BindingId = id, ActionId = action, Gesture = new AetheriaRuntimeInputGestureDocument { Kind = kind, Controls = controls } };
|
||||
private static AetheriaRuntimeInputBindingDocument ActionBarBinding(string id, string action, string kind, params string[] controls) => new AetheriaRuntimeInputBindingDocument { BindingId = id, ActionId = action, Gesture = new AetheriaRuntimeInputGestureDocument { Kind = kind, Controls = controls }, ActionBar = true };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2432,6 +2432,16 @@ First Aetheria surfaces to publish:
|
|||
changes or a typed continue run rehydrates the session. Runtime UI may
|
||||
still lower the action bar, but the daemon owns both the binding mutation
|
||||
and the rebind path back onto the live current entity.
|
||||
- Current generic action-bar authority: Aetheria publishes semantic actions,
|
||||
provider icon asset keys, availability, typed live values, and initial
|
||||
action-bar suggestions. EveUnity lowers those documents into buttons,
|
||||
held controls, view-direction controls, and explicit scalar fields; it
|
||||
submits only through advertised operations. Physical bindings, slot order,
|
||||
and user overrides belong to the Eve client profile. The older
|
||||
daemon-persisted `ActionBarBinding` descriptors are no longer an owner for
|
||||
generic clients; they remain a fossil-client compatibility path awaiting
|
||||
deletion when generic binding persistence is available through CultMesh.
|
||||
Aetheria gameplay objects and Unity gear behaviors are forbidden writers.
|
||||
- Done: route inventory double-click transfer and drag/drop placement
|
||||
through typed daemon operations. `InventoryMenu` and `InventoryPanel` no
|
||||
longer drop items, remove cargo, unequip gear, equip gear, or store cargo
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
|
|||
| 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 | `Entity.ItemFits`, `TryEquip`, `TryUnequip`, `EquippedCargoBay.ItemFits`/`TryStore`, inventory panels + ServerShared | daemon atomic inventory transactions | 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. Cargo transfer now uses the same plan-first rule with typed bay interiors, rotated item footprints, deterministic free-cell search, exact stack maxima, and no partial source/destination mutation on rejection; exact reasons reach generic Eve receipts | live generic refit controls, reconnect after accepted and rejected moves, commodity multi-stack chronology, and full fossil inventory feedback parity |
|
||||
| Trade | trade UI/economy | daemon | stock, quote, purchase/sale commands | generic UI | daemon derives station, stock row, catalog item, current price, quantity, credits, target capacity, and hull-vs-cargo result; purchases ignore client opinions about price and destination kind. Docked sales identify only the source stack and quantity: the daemon derives station, instance-sensitive value, payout, deterministic typed stock placement, and commits cargo/credits atomically; generic Eve advertises available buy and sell actions. The generic Unity live witness receives an authoritative purchase receipt while paused | live sale receipt witness, 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; consumable rows are catalog-filtered, expose daemon-owned cargo quantity, active-effect count, exact duration/remaining duration, and the fossil `remaining / duration` fill as `remaining-ratio.v1`. A depleted or non-stackable active consumable remains visible with unavailable command state until its effect ends, so a lowerer never queries Unity gameplay objects. Weapon groups advertise the fossil press/release lifecycle as generic `button-hold.v1` values routed to `SetWeaponGroupActive`; daemon entity state persists the active-group latch, press edges pulse instant/charged weapons once, constant weapons remain selected without client keepalives, release clears the latch, and the one-shot compatibility command is not the public input contract. Equipment actions derive from exact installed catalog payload/state pairs instead of blindly activating behavior zero: Switch and Trigger expose generic hold values, adjustable Thermotoggle exposes a scalar Kelvin target/current value, fixed/non-interactive rows are omitted, and offline rows retain identity as unavailable. Target nearest/previous/next/reticle/clear actions expose daemon-owned current selection, visible-hostile count, and availability; the default profile preserves fossil `R/T/Y/U`, restores the shared wormhole-first/then-dock interaction to `F`, and routes `view-direction.v1` world XYZ through the released generic runtime while target ranking remains daemon policy. Every value form translates through generic Eve requests into typed daemon commands under provider identity `aetheria` | scalar-control lowering and action-bar presentation lowering |
|
||||
| Action bar/input | input shell and rebinding UI | daemon advertises actions; client owns bindings | input capability and action descriptors | universal binding UI | contracts wired; consumable rows are catalog-filtered, expose daemon-owned cargo quantity, active-effect count, exact duration/remaining duration, and the fossil `remaining / duration` fill as `remaining-ratio.v1`. A depleted or non-stackable active consumable remains visible with unavailable command state until its effect ends, so a lowerer never queries Unity gameplay objects. Weapon groups advertise the fossil press/release lifecycle as generic `button-hold.v1` values routed to `SetWeaponGroupActive`; daemon entity state persists the active-group latch, press edges pulse instant/charged weapons once, constant weapons remain selected without client keepalives, release clears the latch, and the one-shot compatibility command is not the public input contract. Equipment actions derive from exact installed catalog payload/state pairs instead of blindly activating behavior zero: Switch and Trigger expose generic hold values, adjustable Thermotoggle exposes a canonical `scalar.v1` Kelvin target/current value, fixed/non-interactive rows are omitted, and offline rows retain identity as unavailable. Target nearest/previous/next/reticle/clear actions expose daemon-owned current selection, visible-hostile count, and availability; the default profile preserves fossil `R/T/Y/U`, restores the shared wormhole-first/then-dock interaction to `F`, and routes `view-direction.v1` world XYZ through the released generic runtime while target ranking remains daemon policy. Released EveUnity lowers provider action-bar suggestions with provider-owned icon asset keys, availability, one-shot, held, view-direction, and explicit scalar controls without importing Aetheria. Every value form translates through generic Eve requests into typed daemon commands under provider identity `aetheria` | generic slot editing/persistence, consumable quantity/progress chrome, provider styling, and live action-bar witness |
|
||||
| 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 |
|
||||
| Render channels | Unity layers/culling masks | provider surface policy + runtime asset variant | semantic channel exclusions | EveUnity native layer mapping | wired, exclusive, and lowered: the pilot surface excludes the semantic `map` channel; the Unity asset variant maps `map` to its authored native layer; EveUnity subtracts that layer from the configured camera mask; portable state contains no Unity layer or mask; provider conversion preserves the source icon shader's unlit lighting model; the released witness proves the pilot camera excludes map glyphs while the map camera retains readable white glyphs without a scene light | preserve the channel proof while world presentation and transport continue to evolve |
|
||||
| Minimap/tactical map | `ZoneRenderer`, map cameras | daemon world facts | explicit map projections | Unity and Electron | facts fragmented; generic lowerers absent | same state in both runtimes |
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@ $expected = @{
|
|||
"https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.15",
|
||||
"419053ebe2325848051c4f4d8ba352cd4286c424")
|
||||
"org.gamecult.eve.surface" = @(
|
||||
"https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.3",
|
||||
"7647d37445cf39447cb607111e215f627db56c80")
|
||||
"https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4",
|
||||
"e08fa08335f99e9edddeb706912eecfad07cb281")
|
||||
"org.gamecult.eve.unity-scene" = @(
|
||||
"https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.64",
|
||||
"7647d37445cf39447cb607111e215f627db56c80")
|
||||
"https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.65",
|
||||
"e08fa08335f99e9edddeb706912eecfad07cb281")
|
||||
}
|
||||
|
||||
foreach ($packageName in $expected.Keys) {
|
||||
|
|
@ -56,23 +56,26 @@ foreach ($apiName in $requiredMeshApiNames) {
|
|||
|
||||
$surfacePackage = Get-ChildItem (Join-Path $ProjectPath "Library/PackageCache") -Directory |
|
||||
Where-Object Name -Like "org.gamecult.eve.surface@*" |
|
||||
Where-Object { (Get-Content (Join-Path $_.FullName "package.json") -Raw | ConvertFrom-Json).version -eq "0.2.3" } |
|
||||
Where-Object { (Get-Content (Join-Path $_.FullName "package.json") -Raw | ConvertFrom-Json).version -eq "0.2.4" } |
|
||||
Select-Object -First 1
|
||||
if (-not $surfacePackage) { throw "Resolved Eve surface 0.2.3 package is missing from Library/PackageCache." }
|
||||
if (-not $surfacePackage) { throw "Resolved Eve surface 0.2.4 package is missing from Library/PackageCache." }
|
||||
$inputContractSource = Get-Content (Join-Path $surfacePackage.FullName "Runtime/EveInputCapabilityDocument.cs") -Raw
|
||||
if ($inputContractSource -notmatch "PayloadKeys") {
|
||||
throw "Resolved Eve surface package does not expose vector input payload keys."
|
||||
foreach ($requiredInputContract in @("PayloadKeys", "CurrentValue", "ActionBar", "IconRef")) {
|
||||
if ($inputContractSource -notmatch $requiredInputContract) {
|
||||
throw "Resolved Eve surface package is missing input contract '$requiredInputContract'."
|
||||
}
|
||||
}
|
||||
|
||||
$scenePackage = Get-ChildItem (Join-Path $ProjectPath "Library/PackageCache") -Directory |
|
||||
Where-Object Name -Like "org.gamecult.eve.unity-scene@*" |
|
||||
Where-Object { (Get-Content (Join-Path $_.FullName "package.json") -Raw | ConvertFrom-Json).version -eq "0.3.64" } |
|
||||
Where-Object { (Get-Content (Join-Path $_.FullName "package.json") -Raw | ConvertFrom-Json).version -eq "0.3.65" } |
|
||||
Select-Object -First 1
|
||||
if (-not $scenePackage) { throw "Resolved Eve Unity scene 0.3.64 package is missing from Library/PackageCache." }
|
||||
if (-not $scenePackage) { throw "Resolved Eve Unity scene 0.3.65 package is missing from Library/PackageCache." }
|
||||
$advertisedInputSource = Get-Content (Join-Path $scenePackage.FullName "Runtime/EveUnityAdvertisedInputAction.cs") -Raw
|
||||
$inputDriverSource = Get-Content (Join-Path $scenePackage.FullName "Runtime/EveUnityPlayableWorldInputDriver.cs") -Raw
|
||||
foreach ($requiredInputContract in @("view-direction.v1", "BuildViewDirectionPayload", "SubmitChangedPerformedActions")) {
|
||||
if (($advertisedInputSource + $inputDriverSource) -notmatch [regex]::Escape($requiredInputContract)) {
|
||||
$actionBarSource = Get-Content (Join-Path $scenePackage.FullName "Runtime/EveUnityInputActionBar.cs") -Raw
|
||||
foreach ($requiredInputContract in @("view-direction.v1", "BuildViewDirectionPayload", "SubmitChangedPerformedActions", "scalar.v1", "BuildScalarPayload", "EveUnityInputActionBar")) {
|
||||
if (($advertisedInputSource + $inputDriverSource + $actionBarSource) -notmatch [regex]::Escape($requiredInputContract)) {
|
||||
throw "Resolved Eve Unity scene package is missing generic input lowering '$requiredInputContract'."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue