mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 21:32:47 +00:00
cleanup
This commit is contained in:
parent
f137bd37ae
commit
0453666141
@ -3,7 +3,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace QSB.ItemSync
|
namespace QSB.ItemSync
|
||||||
{
|
{
|
||||||
class CustomNomaiRemoteCamera : MonoBehaviour
|
internal class CustomNomaiRemoteCamera : MonoBehaviour
|
||||||
{
|
{
|
||||||
private OWCamera _camera;
|
private OWCamera _camera;
|
||||||
private AudioListener _audioListener;
|
private AudioListener _audioListener;
|
||||||
|
@ -8,7 +8,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace QSB.ItemSync
|
namespace QSB.ItemSync
|
||||||
{
|
{
|
||||||
class CustomNomaiRemoteCameraPlatform : NomaiShared
|
internal class CustomNomaiRemoteCameraPlatform : NomaiShared
|
||||||
{
|
{
|
||||||
private static List<CustomNomaiRemoteCameraPlatform> s_platforms;
|
private static List<CustomNomaiRemoteCameraPlatform> s_platforms;
|
||||||
private static MaterialPropertyBlock s_matPropBlock;
|
private static MaterialPropertyBlock s_matPropBlock;
|
||||||
@ -594,7 +594,7 @@ namespace QSB.ItemSync
|
|||||||
private void DisconnectCamera()
|
private void DisconnectCamera()
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($"{_oldPlatform.name} DisconnectCamera");
|
DebugLog.DebugWrite($"{_oldPlatform.name} DisconnectCamera");
|
||||||
var cameraState = this._cameraState;
|
var cameraState = _cameraState;
|
||||||
if (cameraState != CameraState.Connected && cameraState != CameraState.Connecting_FadeOut)
|
if (cameraState != CameraState.Connected && cameraState != CameraState.Connecting_FadeOut)
|
||||||
{
|
{
|
||||||
if (cameraState == CameraState.Connecting_FadeIn)
|
if (cameraState == CameraState.Connecting_FadeIn)
|
||||||
@ -692,15 +692,9 @@ namespace QSB.ItemSync
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SharedStone GetSocketedStone()
|
public SharedStone GetSocketedStone() => _sharedStone;
|
||||||
{
|
|
||||||
return _sharedStone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsPlatformActive()
|
public bool IsPlatformActive() => _platformActive;
|
||||||
{
|
|
||||||
return _platformActive;
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum CameraState
|
public enum CameraState
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
using OWML.Utils;
|
using OWML.Utils;
|
||||||
using QSB.Utility;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace QSB.ItemSync
|
namespace QSB.ItemSync
|
||||||
{
|
{
|
||||||
class CustomNomaiRemoteCameraStreaming : SectoredMonoBehaviour
|
internal class CustomNomaiRemoteCameraStreaming : SectoredMonoBehaviour
|
||||||
{
|
{
|
||||||
private OWTriggerVolume _owTriggerVolume;
|
private OWTriggerVolume _owTriggerVolume;
|
||||||
public CustomNomaiRemoteCameraPlatform _remoteCameraPlatform
|
public CustomNomaiRemoteCameraPlatform _remoteCameraPlatform
|
||||||
|
@ -33,10 +33,7 @@ namespace QSB.ItemSync.Patches
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool Platform_ReturnFalse()
|
public static bool Platform_ReturnFalse() => false;
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool ItemTool_MoveItemToCarrySocket(OWItem item)
|
public static bool ItemTool_MoveItemToCarrySocket(OWItem item)
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System;
|
using UnityEngine;
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace QSB
|
namespace QSB
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,7 @@ namespace QSB.QuantumSync.WorldObjects
|
|||||||
component.MoveToRelativeLocation(location, AttachedObject.transform);
|
component.MoveToRelativeLocation(location, AttachedObject.transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((QuantumManager.Instance.Shrine as SocketedQuantumObject) != AttachedObject)
|
if (QuantumManager.Instance.Shrine != AttachedObject)
|
||||||
{
|
{
|
||||||
AttachedObject.transform.localRotation = message.LocalRotation;
|
AttachedObject.transform.localRotation = message.LocalRotation;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ namespace QSB.Utility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IDictionary<string, EventData> _eventTable = new Dictionary<string, EventData>(ComparerLibrary.stringEqComparer);
|
private static readonly IDictionary<string, EventData> _eventTable = new Dictionary<string, EventData>(ComparerLibrary.stringEqComparer);
|
||||||
|
|
||||||
private class EventData
|
private class EventData
|
||||||
{
|
{
|
||||||
|
@ -67,7 +67,7 @@ namespace QSB.Utility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IDictionary<string, EventData> _eventTable = new Dictionary<string, EventData>(ComparerLibrary.stringEqComparer);
|
private static readonly IDictionary<string, EventData> _eventTable = new Dictionary<string, EventData>(ComparerLibrary.stringEqComparer);
|
||||||
|
|
||||||
private class EventData
|
private class EventData
|
||||||
{
|
{
|
||||||
|
@ -67,7 +67,7 @@ namespace QSB.Utility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IDictionary<string, EventData> _eventTable = new Dictionary<string, EventData>(ComparerLibrary.stringEqComparer);
|
private static readonly IDictionary<string, EventData> _eventTable = new Dictionary<string, EventData>(ComparerLibrary.stringEqComparer);
|
||||||
|
|
||||||
private class EventData
|
private class EventData
|
||||||
{
|
{
|
||||||
|
@ -141,11 +141,9 @@ namespace Popcron
|
|||||||
|
|
||||||
private void OnDisable() => Camera.onPostRender -= OnRendered;
|
private void OnDisable() => Camera.onPostRender -= OnRendered;
|
||||||
|
|
||||||
private void Update()
|
private void Update() =>
|
||||||
{
|
|
||||||
//always render something
|
//always render something
|
||||||
Gizmos.Line(default, default);
|
Gizmos.Line(default, default);
|
||||||
}
|
|
||||||
|
|
||||||
private void OnRendered(Camera camera)
|
private void OnRendered(Camera camera)
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,7 @@ namespace QSB.WorldSync
|
|||||||
| BindingFlags.Public
|
| BindingFlags.Public
|
||||||
| BindingFlags.NonPublic
|
| BindingFlags.NonPublic
|
||||||
| BindingFlags.DeclaredOnly;
|
| BindingFlags.DeclaredOnly;
|
||||||
private static Dictionary<MonoBehaviour, IWorldObject> WorldObjectsToUnityObjects = new Dictionary<MonoBehaviour, IWorldObject>();
|
private static readonly Dictionary<MonoBehaviour, IWorldObject> WorldObjectsToUnityObjects = new Dictionary<MonoBehaviour, IWorldObject>();
|
||||||
|
|
||||||
public static IEnumerable<TWorldObject> GetWorldObjects<TWorldObject>()
|
public static IEnumerable<TWorldObject> GetWorldObjects<TWorldObject>()
|
||||||
=> WorldObjects.OfType<TWorldObject>();
|
=> WorldObjects.OfType<TWorldObject>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user