From 5196ee4c3c2de96e8866d4be0cae8d8e01715146 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 10:23:09 +0100 Subject: [PATCH] Delete dead RuntimeInspectable metadata --- .voidbot/state/aetheria.cc | Bin 84937 -> 84406 bytes Assets/Scripts/ServerShared/Attributes.cs | 3 +-- .../ServerShared/Behaviors/AetherDrive.cs | 18 +++++++++--------- .../ServerShared/Behaviors/AutoWeapon.cs | 2 +- .../ServerShared/Behaviors/Capacitor.cs | 6 +++--- .../ServerShared/Behaviors/ChargedWeapon.cs | 8 ++++---- .../Scripts/ServerShared/Behaviors/Cockpit.cs | 2 +- .../ServerShared/Behaviors/Cooldown.cs | 4 ++-- .../ServerShared/Behaviors/EnergyDraw.cs | 4 ++-- Assets/Scripts/ServerShared/Behaviors/Heat.cs | 2 +- .../ServerShared/Behaviors/HeatStorage.cs | 2 +- .../ServerShared/Behaviors/InstantWeapon.cs | 4 ++-- .../ServerShared/Behaviors/ItemUsage.cs | 4 ++-- .../ServerShared/Behaviors/Launcher.cs | 4 ++-- .../ServerShared/Behaviors/LockWeapon.cs | 6 +++--- .../ServerShared/Behaviors/Radiator.cs | 14 +++++++------- .../Scripts/ServerShared/Behaviors/Reactor.cs | 10 +++++----- .../ServerShared/Behaviors/Reflector.cs | 4 ++-- .../ServerShared/Behaviors/ResourceScanner.cs | 8 ++++---- .../Scripts/ServerShared/Behaviors/Sensor.cs | 16 ++++++++-------- .../Scripts/ServerShared/Behaviors/Shield.cs | 6 +++--- .../ServerShared/Behaviors/Thruster.cs | 10 +++++----- .../Behaviors/TurretController.cs | 2 -- .../Behaviors/VelocityConversion.cs | 4 +--- .../ServerShared/Behaviors/VelocityLimit.cs | 4 ++-- .../ServerShared/Behaviors/Visibility.cs | 4 ++-- .../Scripts/ServerShared/Behaviors/Weapon.cs | 16 ++++++++-------- Assets/Scripts/ServerShared/Behaviors/Wear.cs | 2 +- docs/aetheria-perfect-machine-map.md | 5 ++++- 29 files changed, 86 insertions(+), 88 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index aa1b7e04b46c07b40c43ae9edd62e1300563331c..726e0aeec49e424adf50eecbed6d550ab7903ced 100644 GIT binary patch delta 1066 zcmZuw%}Z2K6z4ilX$cZzpcZ=3G)g^0BfE3WUJH*@jLz0-a7X%mEq z3m2{8EiMGP>H}(1K?yDTShT2>ZT$}dp~0lFry``GzO!z$wANq0*bgmY2=Pw)1iLr`Dgk&~x zu>_A%AA;L&S`r_!!e~(jV_Zo=eH)_Q%h&{ELc3H6EgR+~!EsI6MpP0{P`Z~WWnR%G zC1aGUj3qUdO6ZRxs7?3wpd-U(AX8pdOF4L25nx7}0XBqUlFtdZ^Fq#m;|0NLb6@c5 zU6*D3XXA)ck}dcOOn?sKEM#UT6~q#lb?8GIt>K0l+l`PKr_g4ptr(ha>bpXUrrs8k zmK}>no1mx8p|;q(%tcNFI~(cX$E^naD1~}s*{dQ#5AR!V{Tri>c+r&u<$=6xJlEniPThyDllsv?*~-ZO1|07Me5>rJ{;Z5)+zMDpX{=`_{W;cV;y+ zo5YeugnHlrCl+ZyNEHkgNc;)S4I~bLK=cnl;;rpZvNBfh(fsww+ zcdix&HVXrU9?s7!&C)t}Y}FT%MiLZo&9pB#4M8)9X-0iTqoll?+fn|+4wxTqk>Aai zM@hAxi#7AhQ8HDfK35u;LxoF$$010B;0?Nbwu^iYah9oy>jU+V;{sE^_Y`;j+*Vd{9NoFh(~c zaH#7;;7|u#pZjTXs{O=ia*Va9ErK}YNG18RSQ;+Umr;Q^;rRGUQpZlwvnWk3dGY{Fw%>FxwV6Vg4E=Z<#MFk~5EulAY&MQSDf!wFFHh;6O>N zaby}XdxbTir~V{m)Qxp4fx67rLN>>h?Lo*eQYmxm7_k!h_3m9;#5yM^7n))ZF$~Nb zPm*C$G(YFbo{f?t{Z-)ih}2Q|zqO`aq9_Sa%wVsef~e~yV3FYME5>camQ7?51a%}@ zrt`3_@1m{=xk8mEViY?RtB8YAYZ*V05+8?ku;Y$!vG#=Yb(0FNh57yzIe2&+ZIOya z9buz`xK{1{MR7gwm1k(4>^~DmN`vsPmq0#i9o#%i^B@xUsuL^m6ph-nZ1hYa@y?v4x-A<=O6qs~l_ zE98~r&Tj>CZHjCkLSv;fzckzS#G|5Zhwj*zZ>PxP=1PI&_g1Xal}fqN`CY!DSwnqb z-Y<~#&C#bwyeHd>6Q|7eGvwg*?&eJX?$4RqXUKQieHHJgNpG`OJ8RUuI78md_OF%P T=|8af#|*hOw4)1SS(pC>_D}+5 diff --git a/Assets/Scripts/ServerShared/Attributes.cs b/Assets/Scripts/ServerShared/Attributes.cs index 32256b858..f2d017a98 100644 --- a/Assets/Scripts/ServerShared/Attributes.cs +++ b/Assets/Scripts/ServerShared/Attributes.cs @@ -1,4 +1,4 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ @@ -15,7 +15,6 @@ public class EntityTypeRestrictionAttribute : Attribute } } -public class RuntimeInspectable : Attribute { } // public class CategoryAttribute : Attribute // { // public readonly Type Type; diff --git a/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs b/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs index 3f1bb0096..625cddf96 100644 --- a/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs +++ b/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs @@ -5,7 +5,7 @@ using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, EntityTypeRestriction(HullType.Ship), RuntimeInspectable] +[Inspectable, EntityTypeRestriction(HullType.Ship)] public class AetherDriveData : BehaviorData { [Inspectable, LegacyPayloadKey(1)] @@ -14,7 +14,7 @@ public class AetherDriveData : BehaviorData [Inspectable, LegacyPayloadKey(2)] public float3 RotorMass; - [Inspectable, LegacyPayloadKey(3), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(3)] public PerformanceStat MaximumRpm; [Inspectable, LegacyPayloadKey(4)] @@ -23,25 +23,25 @@ public class AetherDriveData : BehaviorData [Inspectable, LegacyPayloadKey(5)] public PerformanceStat LambdaMultiplier; - [Inspectable, LegacyPayloadKey(6), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(6)] public PerformanceStat CouplingEfficiency; - [Inspectable, LegacyPayloadKey(7), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(7)] public PerformanceStat Torque; - [Inspectable, LegacyPayloadKey(8), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(8)] public BezierCurve TorqueProfile; - [Inspectable, LegacyPayloadKey(9), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(9)] public PerformanceStat EnergyDraw; - [Inspectable, LegacyPayloadKey(10), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(10)] public PerformanceStat PassiveCoupling; - [InspectableAudioParameter, LegacyPayloadKey(11), RuntimeInspectable] + [InspectableAudioParameter, LegacyPayloadKey(11)] public uint RpmAudioParameter; - [InspectableAudioParameter, LegacyPayloadKey(12), RuntimeInspectable] + [InspectableAudioParameter, LegacyPayloadKey(12)] public uint TorqueRatioAudioParameter; [InspectablePrefab, LegacyPayloadKey(13)] diff --git a/Assets/Scripts/ServerShared/Behaviors/AutoWeapon.cs b/Assets/Scripts/ServerShared/Behaviors/AutoWeapon.cs index fa6a183fa..05f37d5f0 100644 --- a/Assets/Scripts/ServerShared/Behaviors/AutoWeapon.cs +++ b/Assets/Scripts/ServerShared/Behaviors/AutoWeapon.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class AutoWeaponData : InstantWeaponData { public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Capacitor.cs b/Assets/Scripts/ServerShared/Behaviors/Capacitor.cs index 72ed3e937..f3f77960b 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Capacitor.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Capacitor.cs @@ -6,13 +6,13 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class CapacitorData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Capacity = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(2), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(2)] public PerformanceStat Efficiency = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/ChargedWeapon.cs b/Assets/Scripts/ServerShared/Behaviors/ChargedWeapon.cs index 7f3dc8a62..fed140047 100644 --- a/Assets/Scripts/ServerShared/Behaviors/ChargedWeapon.cs +++ b/Assets/Scripts/ServerShared/Behaviors/ChargedWeapon.cs @@ -4,16 +4,16 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class ChargedWeaponData : InstantWeaponData { - [Inspectable, LegacyPayloadKey(21), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(21)] public PerformanceStat ChargeTime = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(22), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(22)] public PerformanceStat ChargeEnergy = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(23), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(23)] public PerformanceStat ChargeHeat = new PerformanceStat(); [Inspectable, LegacyPayloadKey(24)] diff --git a/Assets/Scripts/ServerShared/Behaviors/Cockpit.cs b/Assets/Scripts/ServerShared/Behaviors/Cockpit.cs index 2d229775a..22c12c205 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Cockpit.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Cockpit.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class CockpitData : BehaviorData { public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Cooldown.cs b/Assets/Scripts/ServerShared/Behaviors/Cooldown.cs index fa5260018..7e4b0efec 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Cooldown.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Cooldown.cs @@ -7,10 +7,10 @@ using System.Linq; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, Order(-10), RuntimeInspectable] +[Inspectable, Order(-10)] public class CooldownData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Cooldown = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/EnergyDraw.cs b/Assets/Scripts/ServerShared/Behaviors/EnergyDraw.cs index 67c042cea..a82cd6051 100644 --- a/Assets/Scripts/ServerShared/Behaviors/EnergyDraw.cs +++ b/Assets/Scripts/ServerShared/Behaviors/EnergyDraw.cs @@ -4,10 +4,10 @@ using System; using System.Linq; -[Inspectable, Order(-20), RuntimeInspectable] +[Inspectable, Order(-20)] public class EnergyDrawData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat EnergyDraw = new PerformanceStat(); [Inspectable, LegacyPayloadKey(2)] diff --git a/Assets/Scripts/ServerShared/Behaviors/Heat.cs b/Assets/Scripts/ServerShared/Behaviors/Heat.cs index 66d605efd..1c5cd616d 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Heat.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Heat.cs @@ -7,7 +7,7 @@ using System.Linq; [Inspectable, Order(10)] public class HeatData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Heat = new PerformanceStat(); [Inspectable, LegacyPayloadKey(2)] diff --git a/Assets/Scripts/ServerShared/Behaviors/HeatStorage.cs b/Assets/Scripts/ServerShared/Behaviors/HeatStorage.cs index 7d6bd03d3..bf2c5988e 100644 --- a/Assets/Scripts/ServerShared/Behaviors/HeatStorage.cs +++ b/Assets/Scripts/ServerShared/Behaviors/HeatStorage.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class HeatStorageData : BehaviorData { public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/InstantWeapon.cs b/Assets/Scripts/ServerShared/Behaviors/InstantWeapon.cs index 0a3710f38..b5842a1b0 100644 --- a/Assets/Scripts/ServerShared/Behaviors/InstantWeapon.cs +++ b/Assets/Scripts/ServerShared/Behaviors/InstantWeapon.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class InstantWeaponData : WeaponData { [Inspectable, LegacyPayloadKey(17)] @@ -13,7 +13,7 @@ public class InstantWeaponData : WeaponData [Inspectable, LegacyPayloadKey(18)] public PerformanceStat BurstTime = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(19), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(19)] public PerformanceStat Cooldown = new PerformanceStat(); [InspectablePrefab, LegacyPayloadKey(20)] diff --git a/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs b/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs index c044e6274..95942d727 100644 --- a/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs +++ b/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs @@ -4,10 +4,10 @@ using System; using System.Linq; -[Inspectable, Order(-5), RuntimeInspectable] +[Inspectable, Order(-5)] public class ItemUsageData : BehaviorData { - [LegacyPayloadKey(1), RuntimeInspectable] + [LegacyPayloadKey(1)] public Guid Item; public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Launcher.cs b/Assets/Scripts/ServerShared/Behaviors/Launcher.cs index 34e215a83..6cc8e9246 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Launcher.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Launcher.cs @@ -22,7 +22,7 @@ public class LauncherData : LockWeaponData [Inspectable, LegacyPayloadKey(30)] public float DodgeFrequency; - [Inspectable, LegacyPayloadKey(31), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(31)] public PerformanceStat MissileVelocity = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) @@ -49,7 +49,7 @@ public class GuidedWeaponData : InstantWeaponData [Inspectable, LegacyPayloadKey(25)] public float DodgeFrequency; - [Inspectable, LegacyPayloadKey(26), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(26)] public PerformanceStat MissileVelocity = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/LockWeapon.cs b/Assets/Scripts/ServerShared/Behaviors/LockWeapon.cs index 9cd63a8db..a9c2b3a04 100644 --- a/Assets/Scripts/ServerShared/Behaviors/LockWeapon.cs +++ b/Assets/Scripts/ServerShared/Behaviors/LockWeapon.cs @@ -4,16 +4,16 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class LockWeaponData : InstantWeaponData { - [Inspectable, LegacyPayloadKey(21), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(21)] public PerformanceStat LockSpeed = new PerformanceStat(); [Inspectable, LegacyPayloadKey(22)] public PerformanceStat SensorImpact = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(23), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(23)] public PerformanceStat LockAngle = new PerformanceStat(); [Inspectable, LegacyPayloadKey(24)] diff --git a/Assets/Scripts/ServerShared/Behaviors/Radiator.cs b/Assets/Scripts/ServerShared/Behaviors/Radiator.cs index becfb736c..136bddd84 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Radiator.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Radiator.cs @@ -5,25 +5,25 @@ using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class RadiatorData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Emissivity = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(2), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(2)] public PerformanceStat PumpedHeat = new PerformanceStat(); - [InspectableTemperature, LegacyPayloadKey(3), RuntimeInspectable] + [InspectableTemperature, LegacyPayloadKey(3)] public float TemperatureFloor; - [Inspectable, LegacyPayloadKey(4), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(4)] public PerformanceStat WasteHeat = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(5), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(5)] public PerformanceStat EnergyUsage = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(6), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(6)] public PerformanceStat ThermalMass = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Reactor.cs b/Assets/Scripts/ServerShared/Behaviors/Reactor.cs index 3d04a5ecb..b2cb8d971 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Reactor.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Reactor.cs @@ -9,19 +9,19 @@ using UniRx; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class ReactorData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Charge = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(2), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(2)] public PerformanceStat Efficiency = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(3), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(3)] public PerformanceStat OverloadEfficiency = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(4), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(4)] public PerformanceStat ThrottlingFactor = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Reflector.cs b/Assets/Scripts/ServerShared/Behaviors/Reflector.cs index 4f34533ef..faaf953da 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Reflector.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Reflector.cs @@ -5,10 +5,10 @@ using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class ReflectorData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat CrossSection = new PerformanceStat(); // [InspectableAnimationCurve, LegacyPayloadKey(1)] diff --git a/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs b/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs index 442ab7aa9..f2d657267 100644 --- a/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs +++ b/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs @@ -7,16 +7,16 @@ using System.Linq; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class ResourceScannerData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Range = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(2), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(2)] public PerformanceStat MinimumDensity = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(3), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(3)] public PerformanceStat ScanDuration = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Sensor.cs b/Assets/Scripts/ServerShared/Behaviors/Sensor.cs index e98addf87..d8156c217 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Sensor.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Sensor.cs @@ -7,28 +7,28 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class SensorData : BehaviorData { - [Inspectable, LegacyPayloadKey(3), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(3)] public PerformanceStat Sensitivity = new PerformanceStat(); - [InspectableAnimationCurve, LegacyPayloadKey(4), RuntimeInspectable] + [InspectableAnimationCurve, LegacyPayloadKey(4)] public BezierCurve SensitivityCurve; - [Inspectable, LegacyPayloadKey(5), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(5)] public PerformanceStat PingBoost; - [Inspectable, LegacyPayloadKey(6), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(6)] public PerformanceStat PingEnergy; - [Inspectable, LegacyPayloadKey(7), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(7)] public PerformanceStat PingVisibility; - [Inspectable, LegacyPayloadKey(8), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(8)] public PerformanceStat PingRange; - [Inspectable, LegacyPayloadKey(9), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(9)] public PerformanceStat PingCooldown; [Inspectable, LegacyPayloadKey(10)] diff --git a/Assets/Scripts/ServerShared/Behaviors/Shield.cs b/Assets/Scripts/ServerShared/Behaviors/Shield.cs index cb21a5eda..59995dc16 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Shield.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Shield.cs @@ -5,13 +5,13 @@ using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class ShieldData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Efficiency = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(2), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(2)] public PerformanceStat EnergyUsage = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Thruster.cs b/Assets/Scripts/ServerShared/Behaviors/Thruster.cs index 1429d802b..7e5da7f8e 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Thruster.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Thruster.cs @@ -5,19 +5,19 @@ using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, EntityTypeRestriction(HullType.Ship), RuntimeInspectable] +[Inspectable, EntityTypeRestriction(HullType.Ship)] public class ThrusterData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Thrust = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(2), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(2)] public PerformanceStat Visibility = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(3), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(3)] public PerformanceStat Heat = new PerformanceStat(); - [Inspectable, LegacyPayloadKey(4), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(4)] public PerformanceStat EnergyUsage = new PerformanceStat(); [InspectablePrefab, LegacyPayloadKey(5)] diff --git a/Assets/Scripts/ServerShared/Behaviors/TurretController.cs b/Assets/Scripts/ServerShared/Behaviors/TurretController.cs index 579f01eab..f1458d412 100644 --- a/Assets/Scripts/ServerShared/Behaviors/TurretController.cs +++ b/Assets/Scripts/ServerShared/Behaviors/TurretController.cs @@ -8,8 +8,6 @@ using UniRx; using Unity.Mathematics; using static Unity.Mathematics.math; using float3 = Unity.Mathematics.float3; - -[RuntimeInspectable] public class TurretControllerData : BehaviorData { public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/VelocityConversion.cs b/Assets/Scripts/ServerShared/Behaviors/VelocityConversion.cs index 43f613f67..b40599ff7 100644 --- a/Assets/Scripts/ServerShared/Behaviors/VelocityConversion.cs +++ b/Assets/Scripts/ServerShared/Behaviors/VelocityConversion.cs @@ -4,11 +4,9 @@ using Unity.Mathematics; using static Unity.Mathematics.math; - -[RuntimeInspectable] public class VelocityConversionData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Lambda = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/VelocityLimit.cs b/Assets/Scripts/ServerShared/Behaviors/VelocityLimit.cs index 9c9a97908..e709515c8 100644 --- a/Assets/Scripts/ServerShared/Behaviors/VelocityLimit.cs +++ b/Assets/Scripts/ServerShared/Behaviors/VelocityLimit.cs @@ -5,10 +5,10 @@ using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public class VelocityLimitData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat TopSpeed = new PerformanceStat(); public override Behavior CreateInstance(EquippedItem item) diff --git a/Assets/Scripts/ServerShared/Behaviors/Visibility.cs b/Assets/Scripts/ServerShared/Behaviors/Visibility.cs index 9c0dd411c..694040e81 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Visibility.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Visibility.cs @@ -4,10 +4,10 @@ using System; using System.Linq; -[Inspectable, RuntimeInspectable] +[Inspectable] public class VisibilityData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public PerformanceStat Visibility = new PerformanceStat(); [Inspectable, LegacyPayloadKey(2)] diff --git a/Assets/Scripts/ServerShared/Behaviors/Weapon.cs b/Assets/Scripts/ServerShared/Behaviors/Weapon.cs index b2a3cd960..a780eacda 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Weapon.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Weapon.cs @@ -8,16 +8,16 @@ using System.Linq; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, RuntimeInspectable] +[Inspectable] public abstract class WeaponData : BehaviorData { - [Inspectable, LegacyPayloadKey(1), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(1)] public DamageType DamageType; - [Inspectable, LegacyPayloadKey(2), RuntimeInspectable] + [Inspectable, LegacyPayloadKey(2)] public PerformanceStat Damage = new PerformanceStat(); - [InspectableRangedFloat(0,1), LegacyPayloadKey(3), RuntimeInspectable] + [InspectableRangedFloat(0,1), LegacyPayloadKey(3)] public PerformanceStat Penetration = new PerformanceStat(); [InspectableRangedFloat(0,1), LegacyPayloadKey(4)] @@ -35,16 +35,16 @@ public abstract class WeaponData : BehaviorData [InspectablePrefab, LegacyPayloadKey(8)] public string EffectPrefab; - [InspectablePrefab, LegacyPayloadKey(9), RuntimeInspectable] + [InspectablePrefab, LegacyPayloadKey(9)] public PerformanceStat Energy = new PerformanceStat(); - [InspectablePrefab, LegacyPayloadKey(10), RuntimeInspectable] + [InspectablePrefab, LegacyPayloadKey(10)] public PerformanceStat Heat = new PerformanceStat(); - [InspectablePrefab, LegacyPayloadKey(11), RuntimeInspectable] + [InspectablePrefab, LegacyPayloadKey(11)] public PerformanceStat Visibility = new PerformanceStat(); - [LegacyPayloadKey(12), RuntimeInspectable] + [LegacyPayloadKey(12)] public Guid AmmoType; [InspectablePrefab, LegacyPayloadKey(13)] diff --git a/Assets/Scripts/ServerShared/Behaviors/Wear.cs b/Assets/Scripts/ServerShared/Behaviors/Wear.cs index b5b6a690a..57a4dc9e4 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Wear.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Wear.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using Unity.Mathematics; using static Unity.Mathematics.math; -[Inspectable, Order(1000), RuntimeInspectable] +[Inspectable, Order(1000)] public class WearData : BehaviorData { [InspectableTemperature, LegacyPayloadKey(1)] diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index b393f66a7..e15d642a4 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -169,7 +169,8 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. filters store typed behavior kind keys and match typed behavior payloads through package-owned typed behavior metadata, including parent-kind matching for behavior families. PropertiesPanel and TradeMenu display metadata are now - package-owned typed behavior metadata. + package-owned typed behavior metadata. The obsolete `RuntimeInspectable` + attribute has been deleted from behavior classes and fields. Dynamic behavior columns read typed behavior payload fields by legacy payload key instead of hydrating `BehaviorData` DTOs. Trade buy decisions for crafted price, ship-hull classification, simple commodity base price, and simple commodity @@ -775,6 +776,8 @@ First Aetheria surfaces to publish: - Done: move TradeMenu behavior filter options, behavior family matching, and dynamic behavior columns off `BehaviorData` reflection and onto package-owned typed behavior metadata. + - Done: delete the dead `RuntimeInspectable` attribute and annotations after + the UI behavior metadata owner moved into the typed runtime package. - Done: remove the loot pickup presentation fallback to legacy `ItemData`; typed category/name rows now decide pickup visuals and scan labels, and missing typed rows render generic unknown gear pickup presentation.