mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-28 12:40:28 +00:00
cleanup
This commit is contained in:
parent
48e60953c3
commit
45bbdaaa15
@ -21,7 +21,7 @@ namespace QSB.DeathSync.Events
|
||||
AboutId = playerId
|
||||
};
|
||||
|
||||
public override void OnReceiveLocal(bool server, PlayerMessage message)
|
||||
public override void OnReceiveLocal(bool server, PlayerMessage message)
|
||||
=> OnReceiveRemote(server, message);
|
||||
|
||||
public override void OnReceiveRemote(bool server, PlayerMessage message)
|
||||
|
@ -1,6 +1,4 @@
|
||||
using QSB.Events;
|
||||
using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.Patches;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.DeathSync.Patches
|
||||
|
@ -3,7 +3,6 @@ using QSB.Events;
|
||||
using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
@ -19,7 +18,7 @@ namespace QSB.DeathSync
|
||||
private List<PlayerInfo> _playersPendingRespawn = new List<PlayerInfo>();
|
||||
private NotificationData _previousNotification;
|
||||
|
||||
private void Start()
|
||||
private void Start()
|
||||
=> Instance = this;
|
||||
|
||||
public void TriggerRespawnMap()
|
||||
|
@ -103,7 +103,7 @@ namespace QSB.Patches
|
||||
{
|
||||
var dictionary = typeof(HarmonySharedState).Invoke<Dictionary<MethodBase, byte[]>>("GetState", new object[0]);
|
||||
var methodBase = dictionary.Keys.First(m =>
|
||||
m.DeclaringType == method.DeclaringType
|
||||
m.DeclaringType == method.DeclaringType
|
||||
&& m.Name == method.Name);
|
||||
|
||||
var patchInfo = PatchInfoSerialization.Deserialize(dictionary.GetValueSafe(methodBase));
|
||||
|
@ -13,6 +13,7 @@ using QSB.LogSync.Patches;
|
||||
using QSB.OrbSync.Patches;
|
||||
using QSB.Player.Patches;
|
||||
using QSB.PoolSync.Patches;
|
||||
using QSB.ProbeSync.Patches;
|
||||
using QSB.QuantumSync.Patches;
|
||||
using QSB.RoastingSync.Patches;
|
||||
using QSB.ShipSync.Patches;
|
||||
|
@ -1,11 +1,6 @@
|
||||
using QSB.Events;
|
||||
using QSB.Messaging;
|
||||
using QSB.Player;
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace QSB.ProbeSync.Events
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
using UnityEngine;
|
||||
using QSB.Utility;
|
||||
using System.Linq;
|
||||
using QSB.Utility;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.ProbeSync
|
||||
{
|
||||
@ -47,16 +47,16 @@ namespace QSB.ProbeSync
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
_anchorParticles.Play();
|
||||
_anchorParticles.Play();
|
||||
//}
|
||||
_flightLoopAudio.FadeOut(0.5f, OWAudioSource.FadeOutCompleteAction.STOP, 0f);
|
||||
_anchorAudio.PlayOneShot(AudioType.ToolProbeAttach, 1f);
|
||||
}
|
||||
|
||||
private void OnUnanchor()
|
||||
private void OnUnanchor()
|
||||
=> _flightLoopAudio.FadeIn(0.5f, false, false, 1f);
|
||||
|
||||
private void OnStartRetrieve(float retrieveLength)
|
||||
private void OnStartRetrieve(float retrieveLength)
|
||||
=> _flightLoopAudio.FadeOut(retrieveLength, OWAudioSource.FadeOutCompleteAction.STOP, 0f);
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,7 @@
|
||||
using QSB.Events;
|
||||
using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync.Events;
|
||||
using QSB.WorldSync;
|
||||
using QSB.WorldSync.Events;
|
||||
|
||||
namespace QSB.ShipSync.Events.Component
|
||||
{
|
||||
|
@ -1,6 +1,5 @@
|
||||
using QSB.Events;
|
||||
using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
|
||||
namespace QSB.ShipSync.Events.Component
|
||||
|
@ -1,8 +1,7 @@
|
||||
using QSB.Events;
|
||||
using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync.Events;
|
||||
using QSB.WorldSync;
|
||||
using QSB.WorldSync.Events;
|
||||
|
||||
namespace QSB.ShipSync.Events.Component
|
||||
{
|
||||
|
@ -1,6 +1,5 @@
|
||||
using QSB.Events;
|
||||
using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
|
||||
namespace QSB.ShipSync.Events.Hull
|
||||
|
@ -1,6 +1,5 @@
|
||||
using QSB.Events;
|
||||
using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using QSB.WorldSync.Events;
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
using QSB.Events;
|
||||
using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
|
||||
namespace QSB.ShipSync.Events.Hull
|
||||
|
@ -1,8 +1,7 @@
|
||||
using QSB.Events;
|
||||
using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync.Events;
|
||||
using QSB.WorldSync;
|
||||
using QSB.WorldSync.Events;
|
||||
|
||||
namespace QSB.ShipSync.Events.Hull
|
||||
{
|
||||
|
@ -187,7 +187,7 @@ namespace QSB.ShipSync.Patches
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool ShipDamageController_OnImpact()
|
||||
public static bool ShipDamageController_OnImpact()
|
||||
=> ShipManager.Instance.HasAuthority;
|
||||
|
||||
public static void ShipComponent_RepairTick(ShipComponent __instance, float ____repairFraction)
|
||||
|
@ -6,7 +6,6 @@ using QSB.ShipSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using QuantumUNET;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
@ -125,22 +125,22 @@ namespace Popcron
|
||||
}
|
||||
}
|
||||
|
||||
public static void Lines(Vector3[] lines, Color? color = null, bool dashed = false)
|
||||
public static void Lines(Vector3[] lines, Color? color = null, bool dashed = false)
|
||||
=> GizmosInstance.Submit(lines, color, dashed);
|
||||
|
||||
public static void Line(Vector3 a, Vector3 b, Color? color = null, bool dashed = false)
|
||||
public static void Line(Vector3 a, Vector3 b, Color? color = null, bool dashed = false)
|
||||
=> Draw<LineDrawer>(color, dashed, a, b);
|
||||
|
||||
public static void Square(Vector2 position, Vector2 size, Color? color = null, bool dashed = false)
|
||||
public static void Square(Vector2 position, Vector2 size, Color? color = null, bool dashed = false)
|
||||
=> Square(position, Quaternion.identity, size, color, dashed);
|
||||
|
||||
public static void Square(Vector2 position, float diameter, Color? color = null, bool dashed = false)
|
||||
public static void Square(Vector2 position, float diameter, Color? color = null, bool dashed = false)
|
||||
=> Square(position, Quaternion.identity, Vector2.one * diameter, color, dashed);
|
||||
|
||||
public static void Square(Vector2 position, Quaternion rotation, Vector2 size, Color? color = null, bool dashed = false)
|
||||
public static void Square(Vector2 position, Quaternion rotation, Vector2 size, Color? color = null, bool dashed = false)
|
||||
=> Draw<SquareDrawer>(color, dashed, position, rotation, size);
|
||||
|
||||
public static void Cube(Vector3 position, Quaternion rotation, Vector3 size, Color? color = null, bool dashed = false)
|
||||
public static void Cube(Vector3 position, Quaternion rotation, Vector3 size, Color? color = null, bool dashed = false)
|
||||
=> Draw<CubeDrawer>(color, dashed, position, rotation, size);
|
||||
|
||||
public static void Rect(Rect rect, Camera camera, Color? color = null, bool dashed = false)
|
||||
@ -150,7 +150,7 @@ namespace Popcron
|
||||
Draw<SquareDrawer>(color, dashed, corner + (rect.size * 0.5f), Quaternion.identity, rect.size);
|
||||
}
|
||||
|
||||
public static void Bounds(Bounds bounds, Color? color = null, bool dashed = false)
|
||||
public static void Bounds(Bounds bounds, Color? color = null, bool dashed = false)
|
||||
=> Draw<CubeDrawer>(color, dashed, bounds.center, Quaternion.identity, bounds.size);
|
||||
|
||||
public static void Cone(Vector3 position, Quaternion rotation, float length, float angle, Color? color = null, bool dashed = false, int pointsCount = 16)
|
||||
@ -192,7 +192,7 @@ namespace Popcron
|
||||
Draw<PolygonDrawer>(color, dashed, position, pointsCount, radius, offset, rotation);
|
||||
}
|
||||
|
||||
public static void Frustum(OWCamera camera, Color? color = null, bool dashed = false)
|
||||
public static void Frustum(OWCamera camera, Color? color = null, bool dashed = false)
|
||||
=> Draw<FrustumDrawer>(color, dashed, camera);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user