|
|
@@ -9,7 +9,6 @@ using TechbloxModdingAPI.Blocks; |
|
|
|
using TechbloxModdingAPI.Commands; |
|
|
|
using TechbloxModdingAPI.Utility; |
|
|
|
using IllusionPlugin; |
|
|
|
using Techblox.Services.GameDetails; |
|
|
|
using TechbloxModdingAPI.App; |
|
|
|
using Unity.Mathematics; |
|
|
|
using Main = TechbloxModdingAPI.Main; |
|
|
@@ -234,6 +233,7 @@ namespace BuildingTools |
|
|
|
}).Build(); |
|
|
|
|
|
|
|
_mirrorModeEngine.Init(); |
|
|
|
UI.Init(); |
|
|
|
|
|
|
|
new Harmony("BuildTools").PatchAll(Assembly.GetExecutingAssembly()); |
|
|
|
} |
|
|
@@ -258,10 +258,12 @@ namespace BuildingTools |
|
|
|
return $"Block: {block.Type} at {pos.x:F} {pos.y:F} {pos.z:F}\n" + |
|
|
|
$"- Rotation: {rot.x:F}° {rot.y:F}° {rot.z:F}°\n" + |
|
|
|
$"- Color: {block.Color.Color} darkness: {block.Color.Darkness}\n" + |
|
|
|
$"- Material: {block.Material}\n" + |
|
|
|
$"- Scale: {scale.x:F} {scale.y:F} {scale.z:F}\n" + |
|
|
|
$"- Label: {block.Label}\n" + |
|
|
|
$"- ID: {block.Id}\n" + |
|
|
|
$"- Group: {block.BlockGroup.Id}"; |
|
|
|
(block.BlockGroup != null ? $"- Group: {block.BlockGroup.Id}\n" : "") + |
|
|
|
$"- Mass: {block.Mass}"; |
|
|
|
} |
|
|
|
|
|
|
|
private static string GetWireInfoInBuildMode() |
|
|
@@ -296,7 +298,8 @@ namespace BuildingTools |
|
|
|
$"- Chunk health: {body.CurrentHealth:F} / {body.InitialHealth:F} - Multiplier: {body.HealthMultiplier:F}\n" + |
|
|
|
(cluster == null |
|
|
|
? "" |
|
|
|
: $"- Cluster health: {cluster.CurrentHealth:F} / {cluster.InitialHealth:F} - Multiplier: {cluster.HealthMultiplier:F}" |
|
|
|
: $"- Cluster health: {cluster.CurrentHealth:F} / {cluster.InitialHealth:F} - Multiplier: {cluster.HealthMultiplier:F}\n" + |
|
|
|
$"- Cluster mass: {cluster.Mass}" |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|