Commit graph Aetheria/Assets/Scripts/ServerShared/Behaviors
Author SHA1 Message Date
Meta Vens
a2b54889b4 Move the ServerShared data model onto CultLib's CultCache
Cut 8b. Aetheria.Shared builds headless against GameCult.Caching and
GameCult.Caching.MessagePack at the pinned CultLib; the pin guard also
checks the Caching project exists.

Documents: [CultDocument("aetheria.<type>", "1")] with [MessagePackObject]
and integer [Key]s on the Q7 concrete types (the eight ItemData leaves,
Faction, FactionProductData, PersonalityAttribute, NameFile, OrbitData, the
four BodyData leaves, SavedZone, SavedGame, PlayerSettings, InputLayout).
SavedGame and PlayerSettings are [CultGlobal]; Name members are [CultName].
ItemData, CraftedItemData, EquippableItemData, BodyData and AgentTask lose
[MessagePackObject]; BodyData and AgentTask lose their [Union]s. InputLayout
moves into ServerShared so AetheriaStores can route it.

References: Guid and DatabaseLink<T> members become CultRecordRef<T>;
Guid-keyed maps become ref-keyed with [CultReference(..., many: true)];
ZonePack holds refs to orbit and body records. Runtime maps (Zone orbits,
bodies and belts, cargo ItemsOfType, agent targets) key by CultRecordKey.
Identity is the record key: ID comparisons become reference or key
comparisons. StatModifierData.RequireBehavior is a simple type name.

AetheriaStores.Open composes the catalog (read-only unless writable), run
and player stores, one home per type. CultRecordRefs carries IsSet, a
null-safe Get(ref), RefOf (key from TryGetHandle) and Upsert.
ItemManager.GetData is the one item resolution path. MathResolver is
declared by [assembly: CultCacheFormatterResolver].

Inspector attributes: text, range and asset path map onto CultLib's
CultInspector attributes (asset path only on string members); every
replaced Aetheria attribute keeps [Inspectable] for the runtime panel.

Builds: Aetheria.Shared. Does not build: AetherDb and the Unity project,
which follow.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 19:00:42 +02:00
Meta Vens
55c3fc6a49 Delete AetheriaMath in favour of CultMath
AetheriaMath predates the CultMath swap and re-implemented helpers CultMath
now owns. Callers use CultMath directly: decay (Ship, AetherDrive, Entity),
damp (VelocityConversion, FieldTester, FieldDriver), first_order_intercept
(TurretController, Combat, GuidedProjectile), quadratic_bezier (FieldDriver)
and smootherstep (Ship). Parameter order matches in every case, and those
formulas have the same float evaluation order, so behaviour is unchanged.
Galaxy's commented-out segment check names distance_to_segment.

The other overloads had no callers and are dropped without a CultMath
counterpart being needed: the double Damp overloads, FindDistanceToSegment,
GetCatmullRomPosition, GetCubicSplinePosition, Smoothstep(x), and the
Deg2Rad/Rad2Deg constants.

AetherDb census, factions and hardpoint-fit are byte-identical to the
pre-cut captures.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:02:41 +02:00
Meta Vens
6140a06a0a Swap Unity.Mathematics usings for CultMath
Every Unity.Mathematics using, alias and qualified name under Assets\Scripts
and tools now names CultMath. The nine `using static ...noise;` lines are
gone: snoise lives on CultMath's math. UnityExtensions loses float4.ToColor
and Color.ToFloat4, which duplicate the bridge's ToColor and ToCultMath; the
float3 colour pair stays because the bridge has none.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:39:12 +02:00
Meta Vens
7006a6b0dd Restore the stable legacy Unity project 2026-08-10 14:57:50 +01:00
Meta Vens
be1207c585 Move runtime API namespace to Verse 2026-06-21 09:54:15 +01:00
Meta Vens
39a0dc8737 Sync daemon authority migration 2026-06-21 09:37:54 +01:00
Meta Vens
9c63c0a1af Delete dead PropertiesPanel reflection inspector 2026-06-16 19:38:02 +01:00
Meta Vens
1f12fe0f16 Delete dead inspector metadata specializations 2026-06-16 19:24:01 +01:00
Meta Vens
be3db3d734 Keep orbit consumer edges on typed keys 2026-06-16 16:13:54 +01:00
Meta Vens
65456f09cd Keep behavior body targets on typed keys 2026-06-16 15:08:00 +01:00
Meta Vens
01fc810eb4 Restore behavior runtime state from typed Continue 2026-06-16 09:01:05 +01:00
Meta Vens
18a4ead6f8 Delete runtime behavior config bridge 2026-06-15 20:12:34 +01:00
Meta Vens
6479f6fcfa Bypass config for AetherDrive 2026-06-15 19:54:54 +01:00
Meta Vens
70c9e965a1 Bypass configs for heavy behaviors 2026-06-15 19:29:34 +01:00
Meta Vens
3877b4b263 Bypass configs for medium behaviors 2026-06-15 19:20:06 +01:00
Meta Vens
b97bf31b50 Bypass configs for simple behaviors 2026-06-15 19:06:13 +01:00
Meta Vens
068bc11622 Bypass configs for no-payload behaviors 2026-06-15 18:51:59 +01:00
Meta Vens
6d459c406b Stop weapon behaviors retaining configs 2026-06-15 18:27:29 +01:00
Meta Vens
0ef2e8bbcb Stop AetherDrive retaining config 2026-06-15 18:07:51 +01:00
Meta Vens
f220da035e Stop non-weapon heavy behaviors retaining configs 2026-06-15 18:02:04 +01:00
Meta Vens
85eca69d37 Stop medium behaviors retaining configs 2026-06-15 17:54:59 +01:00
Meta Vens
8930b7945e Stop more simple behaviors retaining configs 2026-06-15 17:48:36 +01:00
Meta Vens
fa7217fcc8 Stop simple behaviors retaining configs 2026-06-15 17:44:06 +01:00
Meta Vens
26148829bd Demote behavior configs from stat authority 2026-06-15 17:38:55 +01:00
Meta Vens
977fa52b18 Hide behavior config runtime authority 2026-06-15 17:01:03 +01:00
Meta Vens
13e7990923 Remove behavior item GUID projections 2026-06-15 02:14:58 +01:00
Meta Vens
95bd76ee91 Use typed item keys in behavior item refs 2026-06-14 23:31:54 +01:00
Meta Vens
df59a9da62 Index cargo by typed item keys 2026-06-14 23:09:49 +01:00
Meta Vens
399efc3851 Delete legacy payload key annotations 2026-06-14 22:39:44 +01:00
Meta Vens
32187038eb Demote behavior construction configs 2026-06-14 21:48:43 +01:00
Meta Vens
191a7dd1c3 Delete zone body shadow state 2026-06-14 19:05:23 +01:00
Meta Vens
a97998f09c Move asteroid belt facts behind runtime owner 2026-06-14 18:27:36 +01:00
Meta Vens
6b8ac0cb07 Move weapon ammo display behind runtime owner 2026-06-14 18:05:26 +01:00
Meta Vens
46e0b6becb Move guided projectile profile behind runtime owner 2026-06-14 18:00:51 +01:00
Meta Vens
d6e478cd5b Move AetherDrive visuals behind runtime owner 2026-06-14 17:54:23 +01:00
Meta Vens
444acc9f30 Move thruster visuals behind runtime owner 2026-06-14 17:50:17 +01:00
Meta Vens
63fe87a91b Move weapon effect binding behind runtime owner 2026-06-14 17:43:42 +01:00
Meta Vens
f151ecedc1 Move weapon damage type behind runtime owner 2026-06-14 17:37:51 +01:00
Meta Vens
a424be6bbc Move turret weapon stats behind runtime owner 2026-06-14 17:32:53 +01:00
Meta Vens
eabe0961e6 Move behavior grouping onto runtime instances 2026-06-14 17:27:16 +01:00
Meta Vens
a639569f72 Move behavior identity onto runtime instances 2026-06-14 17:23:27 +01:00
Meta Vens
6deea479dd Persist turret controller state in typed snapshots 2026-06-14 16:40:08 +01:00
Meta Vens
cd009fa9a9 Persist stat modifier state in typed snapshots 2026-06-14 16:34:40 +01:00
Meta Vens
19fdaab6ab Persist activation state in typed snapshots 2026-06-14 16:25:23 +01:00
Meta Vens
2239d15a38 Persist resource scanner state in typed snapshots 2026-06-14 16:01:36 +01:00
Meta Vens
6a6a19d08f Persist lock weapon state in typed snapshots 2026-06-14 15:47:15 +01:00
Meta Vens
16a92b0173 Persist behavior runtime state in checkpoints 2026-06-14 14:29:04 +01:00
Meta Vens
f98f650ab5 Persist weapon runtime state in checkpoints 2026-06-14 14:19:21 +01:00
Meta Vens
2ad4596d94 Use typed behavior metadata for modifier matching 2026-06-14 10:42:31 +01:00
Meta Vens
f403ab28a7 Target live behavior data for stat modifiers 2026-06-14 10:38:04 +01:00