From 87891f989685439390672a6d06a0dc3182c83a7b Mon Sep 17 00:00:00 2001 From: gamer147 Date: Fri, 3 Jul 2026 23:46:27 -0400 Subject: [PATCH] cull(engine-cleanup): pass-9 cascade round 2 after UILabel stub --- SVSim.BattleEngine/Engine/BMSymbol.cs | 15 --------------- SVSim.BattleEngine/Engine/UIGeometry.cs | 6 ------ SVSim.BattleEngine/Engine/UIRect.cs | 1 - SVSim.BattleEngine/Engine/UIRoot.cs | 18 ------------------ 4 files changed, 40 deletions(-) diff --git a/SVSim.BattleEngine/Engine/BMSymbol.cs b/SVSim.BattleEngine/Engine/BMSymbol.cs index 07518d34..16f94bb9 100644 --- a/SVSim.BattleEngine/Engine/BMSymbol.cs +++ b/SVSim.BattleEngine/Engine/BMSymbol.cs @@ -4,24 +4,9 @@ using UnityEngine; [Serializable] public class BMSymbol { - public string sequence; private bool mIsValid; - private int mLength; - - private int mOffsetX; - - private int mOffsetY; - - private int mWidth; - - private int mHeight; - - private int mAdvance; - - private Rect mUV; - public void MarkAsChanged() { mIsValid = false; diff --git a/SVSim.BattleEngine/Engine/UIGeometry.cs b/SVSim.BattleEngine/Engine/UIGeometry.cs index 23df1fb9..d310371c 100644 --- a/SVSim.BattleEngine/Engine/UIGeometry.cs +++ b/SVSim.BattleEngine/Engine/UIGeometry.cs @@ -4,11 +4,5 @@ public class UIGeometry { public BetterList verts = new BetterList(); - public BetterList uvs = new BetterList(); - - public BetterList cols = new BetterList(); - - private BetterList mRtpVerts = new BetterList(); - public bool hasVertices => verts.size > 0; } diff --git a/SVSim.BattleEngine/Engine/UIRect.cs b/SVSim.BattleEngine/Engine/UIRect.cs index 39c25132..8a0f2181 100644 --- a/SVSim.BattleEngine/Engine/UIRect.cs +++ b/SVSim.BattleEngine/Engine/UIRect.cs @@ -86,7 +86,6 @@ public abstract class UIRect : MonoBehaviour public enum AnchorUpdate { - OnEnable, OnUpdate } public AnchorPoint leftAnchor = new AnchorPoint(); diff --git a/SVSim.BattleEngine/Engine/UIRoot.cs b/SVSim.BattleEngine/Engine/UIRoot.cs index 321118a2..9dc9a658 100644 --- a/SVSim.BattleEngine/Engine/UIRoot.cs +++ b/SVSim.BattleEngine/Engine/UIRoot.cs @@ -128,24 +128,6 @@ public class UIRoot : MonoBehaviour } } - public float GetPixelSizeAdjustment(int height) - { - height = Mathf.Max(2, height); - if (activeScaling == Scaling.Constrained) - { - return (float)activeHeight / (float)height; - } - if (height < minimumHeight) - { - return (float)minimumHeight / (float)height; - } - if (height > maximumHeight) - { - return (float)maximumHeight / (float)height; - } - return 1f; - } - protected virtual void Awake() { mTrans = base.transform;