mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
cleanup
This commit is contained in:
parent
381df32826
commit
0dd78feb27
@ -5,10 +5,7 @@ using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.Animation.NPC.Patches
|
||||
|
@ -3,11 +3,8 @@ using QSB.WorldSync;
|
||||
|
||||
namespace QSB.EchoesOfTheEye.AirlockSync
|
||||
{
|
||||
class AirlockManager : WorldObjectManager
|
||||
internal class AirlockManager : WorldObjectManager
|
||||
{
|
||||
protected override void RebuildWorldObjects(OWScene scene)
|
||||
{
|
||||
QSBWorldSync.Init<QSBGhostAirlock, GhostAirlock>();
|
||||
}
|
||||
protected override void RebuildWorldObjects(OWScene scene) => QSBWorldSync.Init<QSBGhostAirlock, GhostAirlock>();
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,8 @@
|
||||
using QSB.WorldSync;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace QSB.EchoesOfTheEye.AirlockSync.WorldObjects
|
||||
{
|
||||
class QSBGhostAirlock : WorldObject<GhostAirlock>
|
||||
internal class QSBGhostAirlock : WorldObject<GhostAirlock>
|
||||
{
|
||||
public override void Init(GhostAirlock airlock, int id)
|
||||
{
|
||||
|
@ -3,11 +3,8 @@ using QSB.WorldSync;
|
||||
|
||||
namespace QSB.EchoesOfTheEye.LightSensorSync
|
||||
{
|
||||
class LightSensorManager : WorldObjectManager
|
||||
internal class LightSensorManager : WorldObjectManager
|
||||
{
|
||||
protected override void RebuildWorldObjects(OWScene scene)
|
||||
{
|
||||
QSBWorldSync.Init<QSBSingleLightSensor, SingleLightSensor>();
|
||||
}
|
||||
protected override void RebuildWorldObjects(OWScene scene) => QSBWorldSync.Init<QSBSingleLightSensor, SingleLightSensor>();
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +1,14 @@
|
||||
using HarmonyLib;
|
||||
using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.Tools;
|
||||
using QSB.Tools.FlashlightTool;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.EchoesOfTheEye.LightSensorSync.Patches
|
||||
{
|
||||
[HarmonyPatch]
|
||||
class LightSensorPatches : QSBPatch
|
||||
internal class LightSensorPatches : QSBPatch
|
||||
{
|
||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace QSB.EchoesOfTheEye.LightSensorSync.WorldObjects
|
||||
{
|
||||
class QSBSingleLightSensor : WorldObject<SingleLightSensor>
|
||||
internal class QSBSingleLightSensor : WorldObject<SingleLightSensor>
|
||||
{
|
||||
public override void Init(SingleLightSensor sensor, int id)
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
using QSB.Events;
|
||||
using QSB.ItemSync.WorldObjects;
|
||||
using QSB.ItemSync.WorldObjects.Items;
|
||||
using QSB.ItemSync.WorldObjects.Sockets;
|
||||
using QSB.Player;
|
||||
|
@ -1,5 +1,4 @@
|
||||
using OWML.Utils;
|
||||
using QSB.ItemSync.WorldObjects.Sockets;
|
||||
using QSB.ItemSync.WorldObjects.Sockets;
|
||||
using QSB.Player;
|
||||
using QSB.SectorSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace QSB.ItemSync.WorldObjects.Items
|
||||
{
|
||||
class QSBSimpleLanternItem : QSBOWItem<SimpleLanternItem>
|
||||
internal class QSBSimpleLanternItem : QSBOWItem<SimpleLanternItem>
|
||||
{
|
||||
public override void Init(SimpleLanternItem attachedObject, int id)
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace QSB.ItemSync.WorldObjects.Items
|
||||
{
|
||||
class QSBSlideReelItem : QSBOWItem<SlideReelItem>
|
||||
internal class QSBSlideReelItem : QSBOWItem<SlideReelItem>
|
||||
{
|
||||
public override void Init(SlideReelItem attachedObject, int id)
|
||||
{
|
||||
|
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets
|
||||
{
|
||||
internal class QSBSlideProjectorSocket : QSBOWItemDoubleSocket<SlideProjectorSocket>
|
||||
{
|
||||
|
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets
|
||||
{
|
||||
internal class QSBSlideReelSocket : QSBOWItemSocket<SlideReelSocket>
|
||||
{
|
||||
|
@ -5,12 +5,12 @@ using QSB.Animation.Patches;
|
||||
using QSB.CampfireSync.Patches;
|
||||
using QSB.ConversationSync.Patches;
|
||||
using QSB.DeathSync.Patches;
|
||||
using QSB.EchoesOfTheEye.LightSensorSync.Patches;
|
||||
using QSB.ElevatorSync.Patches;
|
||||
using QSB.FrequencySync.Patches;
|
||||
using QSB.GeyserSync.Patches;
|
||||
using QSB.Inputs.Patches;
|
||||
using QSB.ItemSync.Patches;
|
||||
using QSB.EchoesOfTheEye.LightSensorSync.Patches;
|
||||
using QSB.LogSync.Patches;
|
||||
using QSB.OrbSync.Patches;
|
||||
using QSB.Player.Patches;
|
||||
|
@ -3,7 +3,6 @@ using QSB.Animation.Player;
|
||||
using QSB.Animation.Player.Thrusters;
|
||||
using QSB.CampfireSync.WorldObjects;
|
||||
using QSB.ClientServerStateSync;
|
||||
using QSB.ItemSync.WorldObjects;
|
||||
using QSB.ItemSync.WorldObjects.Items;
|
||||
using QSB.Player.TransformSync;
|
||||
using QSB.QuantumSync;
|
||||
|
@ -2,7 +2,6 @@
|
||||
using QSB.ItemSync.WorldObjects.Items;
|
||||
using QSB.Player.Events;
|
||||
using QSB.Player.TransformSync;
|
||||
using QSB.Tools;
|
||||
using QSB.Tools.FlashlightTool;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
|
@ -6,11 +6,11 @@ using QSB.CampfireSync;
|
||||
using QSB.ConversationSync;
|
||||
using QSB.DeathSync;
|
||||
using QSB.EchoesOfTheEye.AirlockSync;
|
||||
using QSB.EchoesOfTheEye.LightSensorSync;
|
||||
using QSB.ElevatorSync;
|
||||
using QSB.GeyserSync;
|
||||
using QSB.Inputs;
|
||||
using QSB.ItemSync;
|
||||
using QSB.EchoesOfTheEye.LightSensorSync;
|
||||
using QSB.Menus;
|
||||
using QSB.OrbSync;
|
||||
using QSB.Patches;
|
||||
|
@ -2,7 +2,6 @@
|
||||
using QSB.Events;
|
||||
using QSB.Player;
|
||||
using QSB.QuantumSync.WorldObjects;
|
||||
using QSB.Syncs;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System;
|
||||
|
@ -3,7 +3,7 @@ using QSB.Messaging;
|
||||
|
||||
namespace QSB.SatelliteSync.Events
|
||||
{
|
||||
class SatelliteProjectorEvent : QSBEvent<BoolMessage>
|
||||
internal class SatelliteProjectorEvent : QSBEvent<BoolMessage>
|
||||
{
|
||||
public override EventType Type => EventType.SatelliteProjector;
|
||||
|
||||
|
@ -1,25 +1,15 @@
|
||||
using QSB.Events;
|
||||
using QSB.Messaging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace QSB.SatelliteSync.Events
|
||||
{
|
||||
class SatelliteProjectorSnapshotEvent : QSBEvent<BoolMessage>
|
||||
internal class SatelliteProjectorSnapshotEvent : QSBEvent<BoolMessage>
|
||||
{
|
||||
public override EventType Type => EventType.SatelliteProjectorSnapshot;
|
||||
|
||||
public override void SetupListener()
|
||||
{
|
||||
GlobalMessenger<bool>.AddListener(EventNames.QSBSatelliteSnapshot, (bool forward) => Handler(forward));
|
||||
}
|
||||
public override void SetupListener() => GlobalMessenger<bool>.AddListener(EventNames.QSBSatelliteSnapshot, (bool forward) => Handler(forward));
|
||||
|
||||
public override void CloseListener()
|
||||
{
|
||||
GlobalMessenger<bool>.RemoveListener(EventNames.QSBSatelliteSnapshot, (bool forward) => Handler(forward));
|
||||
}
|
||||
public override void CloseListener() => GlobalMessenger<bool>.RemoveListener(EventNames.QSBSatelliteSnapshot, (bool forward) => Handler(forward));
|
||||
|
||||
private void Handler(bool forward) => SendEvent(CreateMessage(forward));
|
||||
|
||||
|
@ -6,7 +6,7 @@ using UnityEngine;
|
||||
namespace QSB.SatelliteSync.Patches
|
||||
{
|
||||
[HarmonyPatch]
|
||||
class SatelliteProjectorPatches : QSBPatch
|
||||
internal class SatelliteProjectorPatches : QSBPatch
|
||||
{
|
||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||
|
||||
|
@ -1,10 +1,9 @@
|
||||
using QSB.Utility;
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.SatelliteSync
|
||||
{
|
||||
class SatelliteProjectorManager : MonoBehaviour
|
||||
internal class SatelliteProjectorManager : MonoBehaviour
|
||||
{
|
||||
public static SatelliteProjectorManager Instance { get; private set; }
|
||||
|
||||
@ -16,10 +15,7 @@ namespace QSB.SatelliteSync
|
||||
QSBSceneManager.OnUniverseSceneLoaded += OnSceneLoaded;
|
||||
}
|
||||
|
||||
public void OnDestroy()
|
||||
{
|
||||
QSBSceneManager.OnUniverseSceneLoaded -= OnSceneLoaded;
|
||||
}
|
||||
public void OnDestroy() => QSBSceneManager.OnUniverseSceneLoaded -= OnSceneLoaded;
|
||||
|
||||
private void OnSceneLoaded(OWScene oldScene, OWScene newScene)
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace QSB.Tools.FlashlightTool
|
||||
{
|
||||
static class FlashlightCreator
|
||||
internal static class FlashlightCreator
|
||||
{
|
||||
private static readonly Vector3 FlashlightOffset = new Vector3(0.7196316f, -0.2697681f, 0.3769455f);
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
using OWML.Utils;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.Tools.FlashlightTool
|
||||
{
|
||||
|
@ -1,12 +1,9 @@
|
||||
using OWML.Utils;
|
||||
using QSB.Player;
|
||||
using QSB.Tools.FlashlightTool;
|
||||
using QSB.Tools.FlashlightTool;
|
||||
using QSB.Tools.ProbeLauncherTool;
|
||||
using QSB.Tools.SignalscopeTool;
|
||||
using QSB.Tools.TranslatorTool;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.PostProcessing;
|
||||
|
||||
namespace QSB.Tools
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace QSB.Tools.ProbeLauncherTool
|
||||
{
|
||||
static class ProbeLauncherCreator
|
||||
internal static class ProbeLauncherCreator
|
||||
{
|
||||
private static readonly Vector3 ProbeLauncherOffset = new Vector3(0.5745087f, -0.26f, 0.4453125f);
|
||||
|
||||
|
@ -1,13 +1,10 @@
|
||||
using QSB.Player;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using UnityEngine.PostProcessing;
|
||||
using UnityEngine;
|
||||
using UnityEngine.PostProcessing;
|
||||
|
||||
namespace QSB.Tools.ProbeTool
|
||||
{
|
||||
static class ProbeCreator
|
||||
internal static class ProbeCreator
|
||||
{
|
||||
public static void CreateProbe(Transform newProbe, PlayerInfo player)
|
||||
{
|
||||
|
@ -2,9 +2,7 @@
|
||||
using OWML.Utils;
|
||||
using QSB.SectorSync;
|
||||
using QSB.Syncs.Sectored.Transforms;
|
||||
using QSB.Tools;
|
||||
using QSB.Tools.ProbeLauncherTool;
|
||||
using QSB.Tools.ProbeTool;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using UnityEngine;
|
||||
|
@ -1,11 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.Tools.SignalscopeTool
|
||||
{
|
||||
static class SignalscopeCreator
|
||||
internal static class SignalscopeCreator
|
||||
{
|
||||
private static readonly Vector3 SignalscopeScale = new Vector3(1.5f, 1.5f, 1.5f);
|
||||
|
||||
|
@ -3,7 +3,7 @@ using UnityEngine;
|
||||
|
||||
namespace QSB.Tools.TranslatorTool
|
||||
{
|
||||
static class TranslatorCreator
|
||||
internal static class TranslatorCreator
|
||||
{
|
||||
private static readonly Vector3 TranslatorScale = new Vector3(0.75f, 0.75f, 0.75f);
|
||||
|
||||
|
@ -66,7 +66,7 @@ namespace QSB.WorldSync
|
||||
return default;
|
||||
}
|
||||
|
||||
return (IWorldObject)returnObject;
|
||||
return returnObject;
|
||||
}
|
||||
|
||||
public static TWorldObject GetWorldFromUnity<TWorldObject>(MonoBehaviour unityObject)
|
||||
|
Loading…
x
Reference in New Issue
Block a user