mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
add logging of ship stuff
This commit is contained in:
parent
44191efd20
commit
c50978b68b
@ -1,10 +1,9 @@
|
|||||||
using OWML.Common;
|
using OWML.Common;
|
||||||
using QSB.Player;
|
|
||||||
using QSB.Player.TransformSync;
|
|
||||||
using QSB.ShipSync.TransformSync;
|
using QSB.ShipSync.TransformSync;
|
||||||
using QSB.Utility;
|
using QSB.Utility;
|
||||||
using QSB.WorldSync;
|
using QSB.WorldSync;
|
||||||
using QuantumUNET;
|
using QuantumUNET;
|
||||||
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -58,6 +57,35 @@ namespace QSB.ShipSync
|
|||||||
}
|
}
|
||||||
QNetworkServer.Spawn(Instantiate(QSBNetworkManager.Instance.ShipPrefab));
|
QNetworkServer.Spawn(Instantiate(QSBNetworkManager.Instance.ShipPrefab));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var shipComponents = Resources.FindObjectsOfTypeAll<ShipComponent>();
|
||||||
|
var electricalComponents = Resources.FindObjectsOfTypeAll<ElectricalComponent>();
|
||||||
|
var electricalSystems = Resources.FindObjectsOfTypeAll<ElectricalSystem>();
|
||||||
|
var shipModules = Resources.FindObjectsOfTypeAll<ShipModule>();
|
||||||
|
var shipHulls = Resources.FindObjectsOfTypeAll<ShipHull>();
|
||||||
|
|
||||||
|
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}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user