diff --git a/QSB/ShipSync/ShipManager.cs b/QSB/ShipSync/ShipManager.cs index 50417580..aee3d882 100644 --- a/QSB/ShipSync/ShipManager.cs +++ b/QSB/ShipSync/ShipManager.cs @@ -1,10 +1,9 @@ using OWML.Common; -using QSB.Player; -using QSB.Player.TransformSync; using QSB.ShipSync.TransformSync; using QSB.Utility; using QSB.WorldSync; using QuantumUNET; +using System; using System.Linq; using UnityEngine; @@ -58,6 +57,35 @@ namespace QSB.ShipSync } QNetworkServer.Spawn(Instantiate(QSBNetworkManager.Instance.ShipPrefab)); } + + var shipComponents = Resources.FindObjectsOfTypeAll(); + var electricalComponents = Resources.FindObjectsOfTypeAll(); + var electricalSystems = Resources.FindObjectsOfTypeAll(); + var shipModules = Resources.FindObjectsOfTypeAll(); + var shipHulls = Resources.FindObjectsOfTypeAll(); + + DebugLog.DebugWrite("ShipComponents : "); + PrintAll(shipComponents); + + DebugLog.DebugWrite("Electrical Components : "); + PrintAll(electricalComponents); + + DebugLog.DebugWrite("Electrical Systems : "); + PrintAll(electricalSystems); + + DebugLog.DebugWrite("Ship Modules : "); + PrintAll(shipModules); + + DebugLog.DebugWrite("Ship Hulls : "); + PrintAll(shipHulls); + } + + private void PrintAll(Array array) + { + foreach(var item in array) + { + DebugLog.DebugWrite($" - {(item as MonoBehaviour).name}"); + } } } }