From 128b2abd9f2ad13554f85319fa770809e98ed2a2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 13 Jun 2026 20:59:58 +0100 Subject: [PATCH] Delete dead personality projection --- Assets/Scripts/ServerShared/ItemData.cs | 18 ------------------ .../UI/Properties Panel/PropertiesPanel.cs | 12 ------------ docs/aetheria-perfect-machine-map.md | 3 +++ 3 files changed, 3 insertions(+), 30 deletions(-) diff --git a/Assets/Scripts/ServerShared/ItemData.cs b/Assets/Scripts/ServerShared/ItemData.cs index e15edb4de..d5cfbbe6d 100644 --- a/Assets/Scripts/ServerShared/ItemData.cs +++ b/Assets/Scripts/ServerShared/ItemData.cs @@ -608,21 +608,3 @@ public class PerformanceStat } } -[Inspectable] -public class PersonalityAttribute : RuntimeProjectionEntry, INamedEntry -{ - [Inspectable, RuntimeProjectionKey(1)] - public string Name; - - [Inspectable, RuntimeProjectionKey(2)] - public string LowName; - - [Inspectable, RuntimeProjectionKey(3)] - public string HighName; - - public string EntryName - { - get => Name; - set => Name = value; - } -} diff --git a/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs b/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs index d4237157b..eeb854261 100644 --- a/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs +++ b/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs @@ -159,18 +159,6 @@ public class PropertiesPanel : MonoBehaviour return list; } - public AttributeProperty AddPersonalityProperty(PersonalityAttribute attribute, Func read) - { - var attributeInstance = Instantiate(Attribute, Content ?? transform); - attributeInstance.Title.text = attribute.Name; - attributeInstance.HighLabel.text = attribute.HighName; - attributeInstance.LowLabel.text = attribute.LowName; - RefreshPropertyValues += () => attributeInstance.Slider.value = read(); - Properties.Add(attributeInstance.gameObject); - OnPropertyAdded?.Invoke(attributeInstance.gameObject); - return attributeInstance; - } - public CurveField AddCurveField() { var curveInstance = Instantiate(CurveField, Content ?? transform); diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 76da9b24d..5803f996d 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -288,6 +288,9 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. `AetheriaRuntimeItemCatalog` no longer depends on MessagePack attributes. The temporary bridge uses `RuntimeProjectionKeyAttribute` while typed item instances and behavior factories are being built. +- The dead `PersonalityAttribute` projection DTO and its unused property-panel + hook have been deleted; no typed catalog import or runtime caller owned that + shape. - `Aetheria.Shared.Unity` no longer references the vendored `MessagePack` assembly. The embedded `GameCult.Aetheria.State.Unity` package still depends on MessagePackReader to open CultCache `.cc` records; that dependency belongs